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