public abstract class AbstractTask
extends java.lang.Object
implements jadex.bpmn.model.task.ITask
Constructor and Description |
---|
AbstractTask() |
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<java.lang.Void> |
cancel(jadex.bridge.IInternalAccess instance)
Cleanup in case the task is cancelled.
|
abstract void |
doExecute(jadex.bpmn.model.task.ITaskContext context,
jadex.bridge.IInternalAccess instance)
Execute the task.
|
jadex.commons.future.IFuture<java.lang.Void> |
execute(jadex.bpmn.model.task.ITaskContext context,
jadex.bridge.IInternalAccess instance)
Execute the task.
|
public jadex.commons.future.IFuture<java.lang.Void> execute(jadex.bpmn.model.task.ITaskContext context, jadex.bridge.IInternalAccess instance)
execute
in interface jadex.bpmn.model.task.ITask
context
- The accessible values.instance
- The process instance executing the task.listener
- To be notified, when the task has completed.public jadex.commons.future.IFuture<java.lang.Void> cancel(jadex.bridge.IInternalAccess instance)
cancel
in interface jadex.bpmn.model.task.ITask
public abstract void doExecute(jadex.bpmn.model.task.ITaskContext context, jadex.bridge.IInternalAccess instance) throws java.lang.Exception
context
- The accessible values.instance
- The process instance executing the task.java.lang.Exception
- When task execution fails.