Package jadex.bpmn.runtime
Class ExecuteProcessThread
- java.lang.Object
-
- jadex.bpmn.runtime.ExecuteProcessThread
-
- All Implemented Interfaces:
IComponentStep<java.lang.Void>
,IConditionalComponentStep<java.lang.Void>
public class ExecuteProcessThread extends java.lang.Object implements IConditionalComponentStep<java.lang.Void>
Execute the next step of a process thread.
-
-
Field Summary
Fields Modifier and Type Field Description protected ProcessThread
thread
The process thread.protected java.lang.String
threadid
The thread id.
-
Constructor Summary
Constructors Constructor Description ExecuteProcessThread(ProcessThread thread)
Create a new step.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>
execute(IInternalAccess ia)
Execute the command.ProcessThread
getThread()
Get the thread.boolean
isValid()
Test if the action is valid.
-
-
-
Field Detail
-
thread
protected ProcessThread thread
The process thread.
-
threadid
protected java.lang.String threadid
The thread id. Needed for bpmn debugger.
-
-
Constructor Detail
-
ExecuteProcessThread
public ExecuteProcessThread(ProcessThread thread)
Create a new step.- Parameters:
thread
- The thread.
-
-
Method Detail
-
isValid
public boolean isValid()
Test if the action is valid.- Specified by:
isValid
in interfaceIConditionalComponentStep<java.lang.Void>
- Returns:
- True, if action is valid.
-
execute
public IFuture<java.lang.Void> execute(IInternalAccess ia)
Execute the command.- Specified by:
execute
in interfaceIComponentStep<java.lang.Void>
- Parameters:
args
- The argument(s) for the call.- Returns:
- The result of the command.
-
getThread
public ProcessThread getThread()
Get the thread.- Returns:
- The thread
-
-