Interface ITask

All Known Implementing Classes:
AbstractTask, CreateComponentTask, DestroyComponentTask, ExecuteStepTask, ExternalTaskWrapper, InvokeMethodTask, LoggerTask, MethodCallTask, PojoTaskWrapper, UserInteractionTask, WriteContextTask, WriteParameterTask

public interface ITask
Interface for domain specific tasks. The implementation of a task is annotated in BPMN using the 'class' property.
  • Method Summary

    Modifier and Type
    Method
    Description
    jadex.future.IFuture<Void>
    cancel(jadex.core.IComponent instance)
    Cleanup in case the task is cancelled.
    jadex.future.IFuture<Void>
    execute(ITaskContext context, jadex.core.IComponent process)
    Execute the task.
  • Method Details

    • execute

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

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