Package jadex.bpmn.runtime.task
Class AbstractTask
java.lang.Object
jadex.bpmn.runtime.task.AbstractTask
- All Implemented Interfaces:
ITask
- Direct Known Subclasses:
ExecuteStepTask,InvokeMethodTask,LoggerTask,WriteContextTask,WriteParameterTask
Simple task implementation with basic result and exception handling.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjadex.future.IFuture<Void> cancel(jadex.core.IComponent instance) Cleanup in case the task is cancelled.abstract voiddoExecute(ITaskContext context, jadex.core.IComponent instance) Execute the task.jadex.future.IFuture<Void> execute(ITaskContext context, jadex.core.IComponent instance) Execute the task.
-
Constructor Details
-
AbstractTask
public AbstractTask()
-
-
Method Details
-
execute
Execute the task. -
cancel
Cleanup in case the task is cancelled. -
doExecute
public abstract void doExecute(ITaskContext context, jadex.core.IComponent instance) throws Exception Execute the task. Implement this method for synchroneous tasks, which are finished, when the method returns.- Parameters:
context- The accessible values.instance- The process instance executing the task.- Throws:
Exception- When task execution fails.
-