Package jadex.bpmn.runtime.exttask
Class ExternalTaskWrapper
- java.lang.Object
-
- jadex.bpmn.runtime.exttask.ExternalTaskWrapper
-
- All Implemented Interfaces:
jadex.bpmn.model.task.ITask
public class ExternalTaskWrapper extends java.lang.Object implements jadex.bpmn.model.task.ITask
Wrapper for executing a task on a worker agent. Workers have to implement ITaskExecutionService.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExternalTaskWrapper.ExternalTaskContext
Transferrable context.
-
Field Summary
Fields Modifier and Type Field Description protected jadex.bpmn.model.task.ITask
task
The pojo task.
-
Constructor Summary
Constructors Constructor Description ExternalTaskWrapper(jadex.bpmn.model.task.ITask task)
Create a new wrapper task.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>
cancel(IInternalAccess process)
Cleanup in case the task is cancelled.IFuture<java.lang.Void>
execute(jadex.bpmn.model.task.ITaskContext context, IInternalAccess process)
Execute the task.
-
-
-
Method Detail
-
execute
public IFuture<java.lang.Void> execute(jadex.bpmn.model.task.ITaskContext context, IInternalAccess process)
Execute the task.- Specified by:
execute
in interfacejadex.bpmn.model.task.ITask
- Parameters:
context
- The accessible values.process
- The process instance executing the task.- Returns:
- To be notified, when the task has completed.
-
cancel
public IFuture<java.lang.Void> cancel(IInternalAccess process)
Cleanup in case the task is cancelled.- Specified by:
cancel
in interfacejadex.bpmn.model.task.ITask
- Returns:
- A future to indicate when cancellation has completed.
-
-