Class CreateComponentTask

  • All Implemented Interfaces:
    ITask

    public class CreateComponentTask
    extends java.lang.Object
    implements ITask
    Task for creating a component.
    • Field Detail

      • creationfuture

        protected Future<IComponentIdentifier> creationfuture
        Future called when the component is created to allow compensation (i.e. killing the component).
    • Constructor Detail

      • CreateComponentTask

        public CreateComponentTask()
    • 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.
        Returns:
        To be notified, when the task has completed.
      • cancel

        public IFuture<java.lang.Void> cancel​(IInternalAccess 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.