Class InjectedPlanItemInstanceBuilderImpl
java.lang.Object
org.flowable.cmmn.engine.impl.runtime.InjectedPlanItemInstanceBuilderImpl
- All Implemented Interfaces:
InjectedPlanItemInstanceBuilder
public class InjectedPlanItemInstanceBuilderImpl
extends Object
implements InjectedPlanItemInstanceBuilder
Implementation of the dynamically created and injected plan item into a running stage instance.
- Author:
- Micha Kiener
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseDefinitionId
(String caseDefinitionId) The id of the case definition from which the referenced plan item model should be taken as the model for the new plan item to be created dynamically.createInCase
(String caseInstanceId) Create the newly setup plan item, add it to the parent running case instance and plan it for activation and further processing in the case engine.createInStage
(String stagePlanItemInstanceId) Create the newly setup plan item, add it to the parent running stage and plan it for activation and further processing in the case engine.The id of the referenced element within the case model to be used as the base line for the new dynamic plan item to be created.getName()
boolean
boolean
The explicit name for the new plan item to be created, if this is not set, the name of the referenced element is taken instead.protected void
-
Field Details
-
commandExecutor
-
stagePlanItemInstanceId
-
caseInstanceId
-
caseDefinitionId
-
elementId
-
name
-
-
Constructor Details
-
InjectedPlanItemInstanceBuilderImpl
-
-
Method Details
-
name
Description copied from interface:InjectedPlanItemInstanceBuilder
The explicit name for the new plan item to be created, if this is not set, the name of the referenced element is taken instead.- Specified by:
name
in interfaceInjectedPlanItemInstanceBuilder
- Parameters:
name
- the explicit name to be used for the new plan item, which supersedes the one from the referenced plan item model- Returns:
- the builder reference for method chaining
-
caseDefinitionId
Description copied from interface:InjectedPlanItemInstanceBuilder
The id of the case definition from which the referenced plan item model should be taken as the model for the new plan item to be created dynamically.- Specified by:
caseDefinitionId
in interfaceInjectedPlanItemInstanceBuilder
- Parameters:
caseDefinitionId
- the id of the case definition where the referenced plan item model is taken from- Returns:
- the builder reference for method chaining
-
elementId
Description copied from interface:InjectedPlanItemInstanceBuilder
The id of the referenced element within the case model to be used as the base line for the new dynamic plan item to be created.- Specified by:
elementId
in interfaceInjectedPlanItemInstanceBuilder
- Parameters:
elementId
- the id of the referenced plan item element within the case model- Returns:
- the builder reference for method chaining
-
createInStage
Description copied from interface:InjectedPlanItemInstanceBuilder
Create the newly setup plan item, add it to the parent running stage and plan it for activation and further processing in the case engine.- Specified by:
createInStage
in interfaceInjectedPlanItemInstanceBuilder
- Parameters:
stagePlanItemInstanceId
- the id of the running stage plan item instance to inject a new plan item into- Returns:
- the plan item instance dynamically be created
-
createInCase
Description copied from interface:InjectedPlanItemInstanceBuilder
Create the newly setup plan item, add it to the parent running case instance and plan it for activation and further processing in the case engine.- Specified by:
createInCase
in interfaceInjectedPlanItemInstanceBuilder
- Parameters:
caseInstanceId
- the id of the running case instance to inject a new plan item into- Returns:
- the plan item instance dynamically be created
-
validateData
protected void validateData() -
injectInStage
public boolean injectInStage() -
injectInCase
public boolean injectInCase() -
getStagePlanItemInstanceId
-
getCaseInstanceId
-
getName
-
getCaseDefinitionId
-
getElementId
-