Interface AdHocSubProcess

All Superinterfaces:
Activity, BaseElement, BpmnModelElementInstance, FlowElement, FlowNode, InteractionNode, ModelElementInstance, SubProcess
All Known Implementing Classes:
AdHocSubProcessImpl

public interface AdHocSubProcess extends SubProcess
The BPMN 2.0 adHocSubProcess element.

An Ad-Hoc Sub-Process is a specialized type of Sub-Process that has a set of Activities that can be performed in any order, and some of which may not be performed at all. It is intended to be used in cases where the sequence and number of performances are determined by the performers of the Activities.

  • Method Details

    • getOrdering

      AdHocOrdering getOrdering()
      Returns the BPMN ordering attribute of the ad-hoc activities, AdHocOrdering.Parallel when the attribute is absent.

      The engine implements AdHocOrdering.Parallel only. A model declaring AdHocOrdering.Sequential is rejected at deployment naming the attribute, rather than being accepted and executed in parallel.

    • setOrdering

      void setOrdering(AdHocOrdering ordering)
    • isCancelRemainingInstances

      boolean isCancelRemainingInstances()
      If true, which is the default, then when the completionCondition is met any remaining running Activity instances within the Ad-Hoc Sub-Process are cancelled.
    • setCancelRemainingInstances

      void setCancelRemainingInstances(boolean cancelRemainingInstances)
    • getCompletionCondition

      CompletionCondition getCompletionCondition()
      The Expression that, when it evaluates to true, signals that the Ad-Hoc Sub-Process should complete.
    • setCompletionCondition

      void setCompletionCondition(CompletionCondition completionCondition)