public class ExternalTaskWrapper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ExternalTaskWrapper.ExternalTaskContext
Transferrable context.
|
Modifier and Type | Field and Description |
---|---|
protected ITask |
task
The pojo task.
|
Constructor and Description |
---|
ExternalTaskWrapper(ITask task)
Create a new wrapper task.
|
Modifier and Type | Method and Description |
---|---|
IFuture<java.lang.Void> |
cancel(IInternalAccess process)
Cleanup in case the task is cancelled.
|
IFuture<java.lang.Void> |
execute(ITaskContext context,
IInternalAccess process)
Execute the task.
|
public ExternalTaskWrapper(ITask task)
public IFuture<java.lang.Void> execute(ITaskContext context, IInternalAccess process)
context
- The accessible values.process
- The process instance executing the task.public IFuture<java.lang.Void> cancel(IInternalAccess process)