Package org.flowable.cmmn.api.runtime
Interface PlanItemInstanceTransitionBuilder
public interface PlanItemInstanceTransitionBuilder
A builder that allows to execute a transition for a plan item instance from one state to another,
optionally passing variables before the transition.
- Author:
- Joram Barrez
-
Method Summary
Modifier and TypeMethodDescriptionchildTaskFormVariables
(Map<String, Object> variables, org.flowable.form.api.FormInfo formInfo, String outcome) The form variables that should be used when creating a new 'child entity'.childTaskVariable
(String variableName, Object variableValue) Behaviors that create a new 'child entity' can take in specialized variables.childTaskVariables
(Map<String, Object> childTaskVariables) void
Completes the plan item instance, which needs to be a stage instance.void
disable()
Disables a manually activated plan item instance.void
enable()
Enables a manually activated plan item instance.void
Completes the plan item instance, which needs to be a stage instance.formVariables
(Map<String, Object> variables, org.flowable.form.api.FormInfo formInfo, String outcome) The form variables that should be set before the transition is executed.localVariable
(String variableName, Object variableValue) Sets a local variable before the transition is executed.localVariables
(Map<String, Object> localVariables) void
start()
Starts a plan item instance, this typically will executes it associated behavior.void
Manually terminates a plan item instance.transientVariable
(String variableName, Object variableValue) Sets a non-persisted variable before the transition is executed.transientVariables
(Map<String, Object> transientVariables) void
trigger()
Triggers a plan item to continue, e.g. a human task completion, a service task wait state that continues, etc.Sets a variable before the transition is executed.
-
Method Details
-
variable
Sets a variable before the transition is executed. The variable will be stored on the case instance. -
variables
-
formVariables
PlanItemInstanceTransitionBuilder formVariables(Map<String, Object> variables, org.flowable.form.api.FormInfo formInfo, String outcome) The form variables that should be set before the transition is executed. -
localVariable
Sets a local variable before the transition is executed. The variable will be stored locally on the plan item instance. -
localVariables
-
transientVariable
Sets a non-persisted variable before the transition is executed. The transient variable will not be persisted at the end of the database transaction. -
transientVariables
-
childTaskVariable
Behaviors that create a new 'child entity' can take in specialized variables. For example: the case task can pass variables that will be set on the child case instance and not on the parent case instance. Only allowed when starting a plan item instance. -
childTaskVariables
-
childTaskFormVariables
PlanItemInstanceTransitionBuilder childTaskFormVariables(Map<String, Object> variables, org.flowable.form.api.FormInfo formInfo, String outcome) The form variables that should be used when creating a new 'child entity'.- See Also:
-
completeStage
void completeStage()Completes the plan item instance, which needs to be a stage instance. The stage needs to be completable, otherwise an exception will be thrown. -
forceCompleteStage
void forceCompleteStage()Completes the plan item instance, which needs to be a stage instance. The stage is completed, irregardless whether it is completable or not. -
trigger
void trigger()Triggers a plan item to continue, e.g. a human task completion, a service task wait state that continues, etc. -
enable
void enable()Enables a manually activated plan item instance. -
disable
void disable()Disables a manually activated plan item instance. -
start
void start()Starts a plan item instance, this typically will executes it associated behavior. -
terminate
void terminate()Manually terminates a plan item instance.
-