|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cle.process.Process | +--oracle.cle.process.GenericProcess | +--oracle.cle.process.ParentProcess
Represents a Process that contains others processes as Children. The Child processes are staged in a CLEStateMachine and are usually genericProcesses run in the MVC Framework.
Service and DisplayGroup are examples of ParentProcesses. The ParentProcess knows how to process parameters on a Child, start the child and process th results of the Child's execution.
Fields inherited from class oracle.cle.process.GenericProcess |
parent |
Fields inherited from class oracle.cle.process.Process |
condition, DEBUG, endState, FAILURE, name, processes, service, stateMachine, SUCCESS, TRANSITION_CONDITION_FAILURE, TRANSITION_CONDITION_SUCCESS |
Constructor Summary | |
ParentProcess()
|
|
ParentProcess(Service aService)
|
Method Summary | |
void |
addTransition(java.lang.String sourceName,
java.lang.String destinationName,
java.lang.String conditionName)
A convenient way to add a Transition to this Parent Process's Transition Table. |
void |
buildTransitionTable(TransitionTable aTransisitionTable)
This is an empty implementation to allow ParentProcesses to be instantiated in a runtime scenario (loaded from XML definition). |
java.lang.Object |
clone()
|
protected void |
doSkip()
Encapsulates functionality for checking whether Service should bypass its StateMachine's TransitionTable or not. |
java.util.Vector |
getChildren()
Returns all the children, grandchildren, etc. |
java.util.Vector |
getEndStates()
Returns all of this Parent's children that are specified as End States |
protected State |
getInitialState()
|
protected boolean |
getSkipable()
Returns the value of the skipable attribute. |
boolean |
isReady()
Returns true if all the ProcessParameters for this Process are ready. |
void |
processParameters(Child aChildProcess)
Ask for, receive and provide the missing parameters for the current child Process. |
void |
processResults(Child aChildProcess)
Ask for, receive and process the results for the current child Process. |
protected void |
registerProcess(Process aProcess,
java.lang.String identifier,
boolean isEndState)
Sets up a process in a Parent. |
protected void |
registerProcesses()
This is an empty implementation to Parent Processes to be instantiated in a runtime scenario (loaded from XML definition). |
protected void |
setInitialState(State anInitialState)
|
protected void |
setSkipable(boolean aBoolean)
If the skipable attribute is set to true
then this ParentProcess may bypass its StateMachine's TransitionTable
by running the skip() method. |
protected void |
skip()
This gets run when this ParentProcess is made to bypass it's StateMachine's TransitionTable. |
void |
start()
Calls super.start() |
Methods inherited from class oracle.cle.process.Process |
addCondition, addProcess, cloneProcess, debug, generateFailureCondition, generateSuccessCondition, getClassname, getCondition, getConditions, getIconName, getImageName, getName, getProcesses, getProcessNamed, getStateMachine, hashCode, isEndState, removeCondition, removeCondition, reportException, returnCondition, setCondition, setCondition, setEndState, setName, setService, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.cle.process.Parent |
getInfo, getName, getParents |
Methods inherited from interface oracle.cle.process.Child |
getParameters, getParent, getParents, getResults, setParent |
Constructor Detail |
public ParentProcess()
public ParentProcess(Service aService)
Method Detail |
public void processParameters(Child aChildProcess)
processParameters
in interface Parent
oracle.cle.process.Parent
Child
- child on which the processing is madepublic void processResults(Child aChildProcess)
processResults
in interface Parent
oracle.cle.process.Parent
Child
- child on which the processecing is madeprotected void registerProcess(Process aProcess, java.lang.String identifier, boolean isEndState) throws CLERuntimeException
public void start() throws TransitionConditionException
start
in class GenericProcess
public void buildTransitionTable(TransitionTable aTransisitionTable)
buildTransitionTable
in interface Parent
public void addTransition(java.lang.String sourceName, java.lang.String destinationName, java.lang.String conditionName) throws CLEException
CLEException
- protected void registerProcesses()
public boolean isReady()
public java.util.Vector getEndStates()
protected void setSkipable(boolean aBoolean)
skipable
attribute is set to true
then this ParentProcess may bypass its StateMachine's TransitionTable
by running the skip()
method.protected boolean getSkipable()
skipable
attribute.
If the skipable
attribute is set to true
then this ParentProcess may bypass its StateMachine's TransitionTable
by running the skip()
method.protected void skip()
protected void doSkip()
skip()
method.protected void setInitialState(State anInitialState)
protected final State getInitialState()
public java.util.Vector getChildren()
Parent
getChildren
in interface Parent
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class GenericProcess
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |