Class EventSubProcessStartEventInitializerContext
java.lang.Object
org.flowable.engine.impl.bpmn.behavior.EventSubProcessStartEventInitializerContext
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 Summary
FieldsModifier and TypeFieldDescriptionprotected final CommandContextprotected final List<EventSubscriptionEntity> protected final ExecutionEntityprotected final ProcessEngineConfigurationImplprotected final List<EventSubscriptionEntity> protected final StartEvent -
Constructor Summary
ConstructorsConstructorDescriptionEventSubProcessStartEventInitializerContext(ExecutionEntity parentExecution, StartEvent startEvent, ProcessEngineConfigurationImpl processEngineConfiguration, CommandContext commandContext, List<EventSubscriptionEntity> messageEventSubscriptions, List<EventSubscriptionEntity> signalEventSubscriptions) -
Method Summary
Modifier and TypeMethodDescriptionCreates 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.createEventSubscriptionBuilder(ExecutionEntity eventScopeExecution) Returns anEventSubscriptionBuilderpre-filled with the execution / process-instance / activity / process-definition / tenant ids of the supplied event-scope execution.voidrecordWaitingMessageSubscription(EventSubscriptionEntity subscription) Records a message event subscription so thatprocessEventSubProcesscan dispatchACTIVITY_MESSAGE_WAITINGfor it after every start event in the same sub-process has registered.voidrecordWaitingSignalSubscription(EventSubscriptionEntity subscription) Records a signal event subscription so thatprocessEventSubProcesscan dispatchACTIVITY_SIGNAL_WAITINGfor it after every start event in the same sub-process has registered.
-
Field Details
-
parentExecution
-
startEvent
-
processEngineConfiguration
-
commandContext
-
messageEventSubscriptions
-
signalEventSubscriptions
-
-
Constructor Details
-
EventSubProcessStartEventInitializerContext
public EventSubProcessStartEventInitializerContext(ExecutionEntity parentExecution, StartEvent startEvent, ProcessEngineConfigurationImpl processEngineConfiguration, CommandContext commandContext, List<EventSubscriptionEntity> messageEventSubscriptions, List<EventSubscriptionEntity> signalEventSubscriptions)
-
-
Method Details
-
getParentExecution
-
getStartEvent
-
getProcessEngineConfiguration
-
getCommandContext
-
createEventSubscriptionBuilder
Returns anEventSubscriptionBuilderpre-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 callingcreate(). -
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
Records a message event subscription so thatprocessEventSubProcesscan dispatchACTIVITY_MESSAGE_WAITINGfor 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
Records a signal event subscription so thatprocessEventSubProcesscan dispatchACTIVITY_SIGNAL_WAITINGfor 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).
-