Class AbstractTask

    • Constructor Detail

      • AbstractTask

        public AbstractTask()
    • Method Detail

      • execute

        public IFuture<java.lang.Void> execute​(ITaskContext context,
                                               IInternalAccess instance)
        Execute the task.
        Specified by:
        execute in interface ITask
        Parameters:
        context - The accessible values.
        instance - The process instance executing the task.
        listener - To be notified, when the task has completed.
        Returns:
        To be notified, when the task has completed.
      • cancel

        public IFuture<java.lang.Void> cancel​(IInternalAccess instance)
        Cleanup in case the task is cancelled.
        Specified by:
        cancel in interface ITask
        Returns:
        A future to indicate when cancellation has completed.
      • doExecute

        public abstract void doExecute​(ITaskContext context,
                                       IInternalAccess instance)
                                throws java.lang.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:
        java.lang.Exception - When task execution fails.