Class ExternalTaskWrapper

java.lang.Object
jadex.bpmn.runtime.exttask.ExternalTaskWrapper
All Implemented Interfaces:
ITask

public class ExternalTaskWrapper extends Object implements ITask
Wrapper for executing a task on a worker agent. Workers have to implement ITaskExecutionService.
  • Field Details

    • task

      protected ITask task
      The pojo task.
  • Constructor Details

    • ExternalTaskWrapper

      public ExternalTaskWrapper(ITask task)
      Create a new wrapper task.
  • Method Details

    • execute

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

      public jadex.future.IFuture<Void> cancel(jadex.core.IComponent process)
      Cleanup in case the task is cancelled.
      Specified by:
      cancel in interface ITask
      Returns:
      A future to indicate when cancellation has completed.