Class ProcessLevelStartEventDeployContext
java.lang.Object
org.flowable.engine.impl.bpmn.behavior.ProcessLevelStartEventDeployContext
Context passed to
ProcessLevelStartEventActivityBehavior.deploy(ProcessLevelStartEventDeployContext) carrying the freshly-deployed
process definition together with its parsed model and the start event in scope.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BpmnModelprotected final CommandContextprotected final Processprotected final ProcessDefinitionEntityprotected final ProcessEngineConfigurationImplprotected final booleanprotected final StartEvent -
Constructor Summary
ConstructorsConstructorDescriptionProcessLevelStartEventDeployContext(ProcessDefinitionEntity processDefinition, Process process, BpmnModel bpmnModel, StartEvent startEvent, ProcessEngineConfigurationImpl processEngineConfiguration, CommandContext commandContext) ProcessLevelStartEventDeployContext(ProcessDefinitionEntity processDefinition, Process process, BpmnModel bpmnModel, StartEvent startEvent, ProcessEngineConfigurationImpl processEngineConfiguration, CommandContext commandContext, boolean restoringPreviousVersion) -
Method Summary
Modifier and TypeMethodDescriptionbooleantruewhen this deploy is restoring a previous (earlier-version) process definition's start events because the latest version's deployment was just deleted.
-
Field Details
-
processDefinition
-
process
-
bpmnModel
-
startEvent
-
processEngineConfiguration
-
commandContext
-
restoringPreviousVersion
protected final boolean restoringPreviousVersion
-
-
Constructor Details
-
ProcessLevelStartEventDeployContext
public ProcessLevelStartEventDeployContext(ProcessDefinitionEntity processDefinition, Process process, BpmnModel bpmnModel, StartEvent startEvent, ProcessEngineConfigurationImpl processEngineConfiguration, CommandContext commandContext) -
ProcessLevelStartEventDeployContext
public ProcessLevelStartEventDeployContext(ProcessDefinitionEntity processDefinition, Process process, BpmnModel bpmnModel, StartEvent startEvent, ProcessEngineConfigurationImpl processEngineConfiguration, CommandContext commandContext, boolean restoringPreviousVersion)
-
-
Method Details
-
getProcessDefinition
-
getProcess
-
getBpmnModel
-
getStartEvent
-
getProcessEngineConfiguration
-
getCommandContext
-
getEventSubscriptionService
-
isRestoringPreviousVersion
public boolean isRestoringPreviousVersion()truewhen this deploy is restoring a previous (earlier-version) process definition's start events because the latest version's deployment was just deleted. Behaviors should skip duplicate- subscription validation in this mode — the just-deleted process definition's subscriptions are still in the in- session entity cache (the bulk delete hasn't been flushed yet) so a re-insert would otherwise trip a false-positive conflict. The fresh-deployment path leaves thisfalse.
-