|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.javasteps.engine.ProcessImpl
public class ProcessImpl
The Process implementation class
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.javasteps.ProcessContext |
---|
ProcessContext.ProcessStatus |
Field Summary | |
---|---|
protected Map<String,Object> |
params
|
protected StepsList |
topLevelSteps
|
Constructor Summary | |
---|---|
ProcessImpl()
|
Method Summary | |
---|---|
void |
addProcessListener(ProcessListener listener)
Adds a ProcessListener to the process to get process execution events. |
int |
getActionStepsCount()
Gets the total number of ActionSteps in this process |
StepAction |
getExceptionHandler()
|
String |
getName()
|
Object |
getParameter(String key)
Gets a process wide parameter |
Map<String,Object> |
getParameters()
Gets the process wide parameters' map |
ProcessContext.ProcessStatus |
getStatus()
Gets the current process status |
StepsList |
getStepsList()
|
boolean |
isStopped()
Check if the process was stoped before it was finished |
void |
notifyActionStepFinish(ActionStep step)
|
void |
notifyActionStepStart(ActionStep step)
|
void |
registerExceptionHandler(StepAction handler)
Registers a process exception handler. |
void |
reset()
Resets the process state. |
void |
setActionStepCount(int actionStepCount)
|
void |
setName(String name)
|
void |
setParameter(String key,
Object value)
Sets a process wide parameter |
ProcessContext.ProcessStatus |
start()
Starts the process from the first step |
void |
stop(boolean failed)
Stop the running process, will not continue to the next step. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected StepsList topLevelSteps
protected Map<String,Object> params
Constructor Detail |
---|
public ProcessImpl()
Method Detail |
---|
public void setActionStepCount(int actionStepCount)
actionStepCount
- The actionStepCount to set.public int getActionStepsCount()
ProcessContext
getActionStepsCount
in interface ProcessContext
ProcessContext.getActionStepsCount()
public ProcessContext.ProcessStatus start()
Process
start
in interface Process
Process.start()
public void setName(String name)
public String getName()
public StepsList getStepsList()
public void stop(boolean failed)
ProcessContext
stop
in interface ProcessContext
failed
- true if the process was stopped because of a failure. Will set the Status to FAILED.ProcessContext.stop(boolean)
public boolean isStopped()
ProcessContext
isStopped
in interface ProcessContext
ProcessContext.isStopped()
public ProcessContext.ProcessStatus getStatus()
ProcessContext
getStatus
in interface ProcessContext
ProcessContext.getStatus()
public Object getParameter(String key)
ProcessContext
getParameter
in interface ProcessContext
key
- The parameter's key
ProcessContext.getParameter(java.lang.String)
public void setParameter(String key, Object value)
ProcessContext
setParameter
in interface ProcessContext
key
- The parameter's keyvalue
- The parameter's valueProcessContext.setParameter(java.lang.String, java.lang.Object)
public Map<String,Object> getParameters()
ProcessContext
getParameters
in interface ProcessContext
ProcessContext.getParameters()
public void registerExceptionHandler(StepAction handler)
Process
registerExceptionHandler
in interface Process
handler
- The exception handlerProcess.registerExceptionHandler(org.javasteps.StepAction)
public StepAction getExceptionHandler()
getExceptionHandler
in interface Process
Process.getExceptionHandler()
public void reset()
Process
reset
in interface Process
Process.reset()
public void addProcessListener(ProcessListener listener)
Process
addProcessListener
in interface Process
listener
- The process listenerProcess.addProcessListener(org.javasteps.event.ProcessListener)
public void notifyActionStepStart(ActionStep step)
public void notifyActionStepFinish(ActionStep step)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |