Class SequentialMultiInstanceActivityBehavior

    • Constructor Detail

      • SequentialMultiInstanceActivityBehavior

        public SequentialMultiInstanceActivityBehavior()
    • Method Detail

      • concurrentChildExecutionEnded

        public void concurrentChildExecutionEnded​(ActivityExecution scopeExecution,
                                                  ActivityExecution endedExecution)
        Description copied from interface: CompositeActivityBehavior
        Invoked when an execution is ended within the scope of the composite
        Parameters:
        scopeExecution - scope execution for the activity which defined the behavior
        endedExecution - the execution which ended
      • prepareScope

        protected void prepareScope​(ActivityExecution scopeExecution,
                                    int totalNumberOfInstances)
      • initializeScope

        public java.util.List<ActivityExecution> initializeScope​(ActivityExecution scopeExecution,
                                                                 int nrOfInstances)
        Description copied from interface: ModificationObserverBehavior
        Implement to customize initialization of the scope. Called with the scope execution already created. Implementations may set variables, etc. Implementations should provide return as many executions as there are requested by the argument. Valid number of instances are >= 0.
      • createInnerInstance

        public ActivityExecution createInnerInstance​(ActivityExecution scopeExecution)
        Description copied from interface: ModificationObserverBehavior
        Returns an execution that can be used to execute an activity within that scope. May reorganize other executions in that scope (e.g. implement to override the default pruning behavior).
      • destroyInnerInstance

        public void destroyInnerInstance​(ActivityExecution scopeExecution)
        Description copied from interface: ModificationObserverBehavior
        implement to destroy an execution in this scope and handle the scope's reorganization (e.g. implement to override the default pruning behavior). The argument execution is not yet removed.