Class CaseDefinitionStartDeployContext
java.lang.Object
org.flowable.cmmn.engine.impl.deployer.CaseDefinitionStartDeployContext
Context passed to
CaseDefinitionStartLifecycleHandler.deploy(CaseDefinitionStartDeployContext) carrying the freshly-deployed
case definition together with its parsed Case model.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CaseDefinitionEntityprotected final Caseprotected final CmmnEngineConfigurationprotected final CommandContextprotected final boolean -
Constructor Summary
ConstructorsConstructorDescriptionCaseDefinitionStartDeployContext(CaseDefinitionEntity caseDefinition, Case caseModel, CmmnEngineConfiguration cmmnEngineConfiguration, CommandContext commandContext) CaseDefinitionStartDeployContext(CaseDefinitionEntity caseDefinition, Case caseModel, CmmnEngineConfiguration cmmnEngineConfiguration, CommandContext commandContext, boolean restoringPreviousVersion) -
Method Summary
Modifier and TypeMethodDescriptionbooleantruewhen this deploy is restoring a previous (earlier-version) case definition's start triggers because the latest version's deployment was just deleted.
-
Field Details
-
caseDefinition
-
caseModel
-
cmmnEngineConfiguration
-
commandContext
-
restoringPreviousVersion
protected final boolean restoringPreviousVersion
-
-
Constructor Details
-
CaseDefinitionStartDeployContext
public CaseDefinitionStartDeployContext(CaseDefinitionEntity caseDefinition, Case caseModel, CmmnEngineConfiguration cmmnEngineConfiguration, CommandContext commandContext) -
CaseDefinitionStartDeployContext
public CaseDefinitionStartDeployContext(CaseDefinitionEntity caseDefinition, Case caseModel, CmmnEngineConfiguration cmmnEngineConfiguration, CommandContext commandContext, boolean restoringPreviousVersion)
-
-
Method Details
-
getCaseDefinition
-
getCaseModel
-
getCmmnEngineConfiguration
-
getCommandContext
-
getEventSubscriptionService
-
isRestoringPreviousVersion
public boolean isRestoringPreviousVersion()truewhen this deploy is restoring a previous (earlier-version) case definition's start triggers because the latest version's deployment was just deleted. Behaviors should skip duplicate- subscription validation in this mode — the just-deleted case definition's subscriptions may still be 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.
-