Class CreateComponentTask

java.lang.Object
jadex.bpmn.runtime.task.CreateComponentTask
All Implemented Interfaces:
ITask

public class CreateComponentTask extends Object implements ITask
Task for creating a component.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected jadex.future.Future<jadex.core.ComponentIdentifier>
    Future called when the component is created to allow compensation (i.e.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jadex.future.IFuture<Void>
    cancel(jadex.core.IComponent instance)
    Compensate in case the task is canceled.
    jadex.future.IFuture<Void>
    execute(ITaskContext context, jadex.core.IComponent instance)
    Execute the task.
    Get the meta information about the agent.

    Methods inherited from class java.lang.Object

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

    • creationfuture

      protected jadex.future.Future<jadex.core.ComponentIdentifier> creationfuture
      Future called when the component is created to allow compensation (i.e. killing the component).
  • Constructor Details

    • CreateComponentTask

      public CreateComponentTask()
  • Method Details

    • execute

      public jadex.future.IFuture<Void> execute(ITaskContext context, jadex.core.IComponent instance)
      Execute the task.
      Specified by:
      execute in interface ITask
      Parameters:
      context - The accessible values.
      instance - 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 instance)
      Compensate in case the task is canceled.
      Specified by:
      cancel in interface ITask
      Returns:
      To be notified, when the compensation has completed.
    • getMetaInfo

      public static TaskMetaInfo getMetaInfo()
      Get the meta information about the agent.