jpl.mipl.pgs.jbpm.exe
Class AsyncTaskRunner
java.lang.Object
jpl.mipl.pgs.jbpm.exe.ProcessController
jpl.mipl.pgs.jbpm.exe.TaskRunner
jpl.mipl.pgs.jbpm.exe.AsyncTaskRunner
- All Implemented Interfaces:
- Serializable, org.jbpm.graph.def.ActionHandler
public class AsyncTaskRunner
- extends TaskRunner
This class runs the given task in a separate thread, which
return the control back to the TokenRunner engine.
This class enables the parallel execution of different branches (if the PD
contains a fork in it).
- Author:
- Raj Patel
- See Also:
- Serialized Form
|
Method Summary |
void |
execute(org.jbpm.graph.exe.ExecutionContext executionContext)
This method runs the given task in a separate thread,
which returns the control back to the TokenRunner class. |
void |
setTaskClassName(String taskClassName)
Set the task class name that is to be executed. |
void |
setTaskName(String taskName)
|
void |
setTaskParam(String taskParam)
A string containing different parameters that is used
to initialize the task class. |
| Methods inherited from class jpl.mipl.pgs.jbpm.exe.ProcessController |
abort, aborted, pause, pause, paused, paused, reason, resume, resume, resumed, resumed, status, stop, stopped, waitTillResume, waitTillResume |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
AsyncTaskRunner
public AsyncTaskRunner()
execute
public void execute(org.jbpm.graph.exe.ExecutionContext executionContext)
throws Exception
- This method runs the given task in a separate thread,
which returns the control back to the TokenRunner class.
- Specified by:
execute in interface org.jbpm.graph.def.ActionHandler- Overrides:
execute in class TaskRunner
- Throws:
Exception- See Also:
ActionHandler.execute(org.jbpm.graph.exe.ExecutionContext)
setTaskClassName
public void setTaskClassName(String taskClassName)
throws Exception
- Set the task class name that is to be executed.
- Overrides:
setTaskClassName in class TaskRunner
- Parameters:
taskClassName - name of task class
- Throws:
if - the supre class throws an exception
Exception
setTaskName
public void setTaskName(String taskName)
- Overrides:
setTaskName in class TaskRunner
- Parameters:
taskName - A logical name of the task class that with messages
(log, notification, etc.) to distinguish them.
setTaskParam
public void setTaskParam(String taskParam)
- A string containing different parameters that is used
to initialize the task class.
- Overrides:
setTaskParam in class TaskRunner
- Parameters:
taskParam - an encoded string of parameters. The task class
should know how to decode the string.