Class EventSubProcessStartEventInitializerContext

java.lang.Object
org.flowable.engine.impl.bpmn.behavior.EventSubProcessStartEventInitializerContext

public class EventSubProcessStartEventInitializerContext extends Object
Context passed to EventSubProcessStartEventActivityBehavior.initializeEventSubProcessStart(EventSubProcessStartEventInitializerContext) when a parent process or sub-process becomes active and its event-sub-process start events need to register their subscriptions / timers / waiting executions.
  • Field Details

  • Constructor Details

  • Method Details

    • getParentExecution

      public ExecutionEntity getParentExecution()
    • getStartEvent

      public StartEvent getStartEvent()
    • getProcessEngineConfiguration

      public ProcessEngineConfigurationImpl getProcessEngineConfiguration()
    • getCommandContext

      public CommandContext getCommandContext()
    • createEventSubscriptionBuilder

      public EventSubscriptionBuilder createEventSubscriptionBuilder(ExecutionEntity eventScopeExecution)
      Returns an EventSubscriptionBuilder pre-filled with the execution / process-instance / activity / process-definition / tenant ids of the supplied event-scope execution. Subscription- registering initializers chain on it with the type-specific fields (eventType, eventName, etc.) before calling create().
    • createEventScopeChildExecution

      public ExecutionEntity createEventScopeChildExecution()
      Creates a child execution of the parent that represents the waiting state for this event-sub-process start event: pointed at the start event, marked as event scope, and inactive. This is the four-line pattern repeated by every built-in event-sub-process start initializer.
    • recordWaitingMessageSubscription

      public void recordWaitingMessageSubscription(EventSubscriptionEntity subscription)
      Records a message event subscription so that processEventSubProcess can dispatch ACTIVITY_MESSAGE_WAITING for it after every start event in the same sub-process has registered. No-op if the caller didn't supply a collection (e.g. dynamic state migration paths).
    • recordWaitingSignalSubscription

      public void recordWaitingSignalSubscription(EventSubscriptionEntity subscription)
      Records a signal event subscription so that processEventSubProcess can dispatch ACTIVITY_SIGNAL_WAITING for it after every start event in the same sub-process has registered. No-op if the caller didn't supply a collection (e.g. dynamic state migration paths).