Class ProcessLevelStartEventUndeployContext
java.lang.Object
org.flowable.engine.impl.bpmn.behavior.ProcessLevelStartEventUndeployContext
Context passed to
ProcessLevelStartEventActivityBehavior.undeploy(ProcessLevelStartEventUndeployContext) when a process definition
is being superseded by a new version. Carries both the previous (now-superseded) process definition
and the new one — most behaviors only need the previous process definition, but the EventRegistry "manual" re-point
branch updates subscriptions to point at getNewProcessDefinition().
Behaviors register their obsolete event subscription / timer job handler types via
registerObsoleteEventSubscriptionType(String) and
registerObsoleteTimerJobHandlerType(String). The deployer issues one mass-delete per
unique registered type after the undeploy iteration — fewer DB round-trips than per-start-event
deletes, and tighter than the historical fixed Message+Signal+EventRegistry sweep that always
ran regardless of which types the previous process definition actually used.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CommandContextprotected final ProcessDefinitionEntityprotected final ProcessDefinitionEntityprotected final ProcessEngineConfigurationImplprotected final StartEvent -
Constructor Summary
ConstructorsConstructorDescriptionProcessLevelStartEventUndeployContext(ProcessDefinitionEntity previousProcessDefinition, ProcessDefinitionEntity newProcessDefinition, StartEvent startEvent, ProcessEngineConfigurationImpl processEngineConfiguration, CommandContext commandContext, Set<String> obsoleteEventSubscriptionTypes, Set<String> obsoleteTimerJobHandlerTypes) -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterObsoleteEventSubscriptionType(String eventHandlerType) Registers an event subscription handler type that the deployer should mass-delete for the previous process definition after the undeploy pass.voidregisterObsoleteTimerJobHandlerType(String timerJobHandlerType) Registers a timer job handler type that the deployer should mass-cancel for the previous process definition after the undeploy pass.
-
Field Details
-
previousProcessDefinition
-
newProcessDefinition
-
startEvent
-
processEngineConfiguration
-
commandContext
-
obsoleteEventSubscriptionTypes
-
obsoleteTimerJobHandlerTypes
-
-
Constructor Details
-
ProcessLevelStartEventUndeployContext
public ProcessLevelStartEventUndeployContext(ProcessDefinitionEntity previousProcessDefinition, ProcessDefinitionEntity newProcessDefinition, StartEvent startEvent, ProcessEngineConfigurationImpl processEngineConfiguration, CommandContext commandContext, Set<String> obsoleteEventSubscriptionTypes, Set<String> obsoleteTimerJobHandlerTypes)
-
-
Method Details
-
getPreviousProcessDefinition
-
getNewProcessDefinition
-
getStartEvent
-
getProcessEngineConfiguration
-
getCommandContext
-
registerObsoleteEventSubscriptionType
Registers an event subscription handler type that the deployer should mass-delete for the previous process definition after the undeploy pass. Multiple behaviors registering the same type result in a single DB sweep. -
registerObsoleteTimerJobHandlerType
Registers a timer job handler type that the deployer should mass-cancel for the previous process definition after the undeploy pass. Multiple behaviors registering the same type result in a single DB sweep.
-