A fluent builder for defining a command to execute for a case execution.
This fluent builder offers different points to execute a defined command:
The entry point to use this fluent builder is {@link CaseService#withCaseExecution(String)}. It expects an id of a case execution as parameter.
This fluent builder can be used as follows:
(1) Set and remove case execution variables:
caseService
.withCaseExecution("aCaseDefinitionId")
.setVariable("aVariableName", "aVariableValue")
.setVariable("anotherVariableName", 999)
.removeVariable("aVariableNameToRemove")
.execute();
(2) Set case execution variable and start the case execution manually:
caseService
.withCaseExecution("aCaseDefinitionId")
.setVariable("aVariableName", "aVariableValue")
.manualStart();
etc.
Note: All defined changes for a case execution within this fluent builder will be performed in one command. So for example: if you set and remove variables of a case execution this happens in a single command. This has the effect that if anything went wrong the whole command will be rolled back.
@author Roman Smirnov
|
|
|
|
|
|
|
|
|
|
|
|
|
|