Class 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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • task

        protected jadex.bpmn.model.task.ITask task
        The pojo task.
    • Constructor Detail

      • ExternalTaskWrapper

        public ExternalTaskWrapper​(jadex.bpmn.model.task.ITask task)
        Create a new wrapper 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 interface jadex.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 interface jadex.bpmn.model.task.ITask
        Returns:
        A future to indicate when cancellation has completed.