Class ProcessLevelStartEventUndeployContext

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

public class ProcessLevelStartEventUndeployContext extends Object
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 Details

  • Constructor Details

  • Method Details

    • getPreviousProcessDefinition

      public ProcessDefinitionEntity getPreviousProcessDefinition()
    • getNewProcessDefinition

      public ProcessDefinitionEntity getNewProcessDefinition()
    • getStartEvent

      public StartEvent getStartEvent()
    • getProcessEngineConfiguration

      public ProcessEngineConfigurationImpl getProcessEngineConfiguration()
    • getCommandContext

      public CommandContext getCommandContext()
    • registerObsoleteEventSubscriptionType

      public void registerObsoleteEventSubscriptionType(String eventHandlerType)
      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

      public void registerObsoleteTimerJobHandlerType(String timerJobHandlerType)
      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.