|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CaseService
Service which provides access to case instances
and case executions.
| Method Summary | |
|---|---|
CaseExecutionQuery |
createCaseExecutionQuery()
Creates a new CaseExecutionQuery instance,
that can be used to query the executions and case instances. |
CaseInstanceQuery |
createCaseInstanceQuery()
Creates a new CaseInstanceQuery instance, that can be used
to query case instances. |
CaseSentryPartQuery |
createCaseSentryPartQuery()
Creates a new CaseSentryPartQuery instance,
that can be used to query the sentry parts. |
Object |
getVariable(String caseExecutionId,
String variableName)
Searching for the variable is done in all scopes that are visible to the given case execution (including parent scopes). |
Object |
getVariableLocal(String caseExecutionId,
String variableName)
The variable value for an case execution. |
Map<String,Object> |
getVariables(String caseExecutionId)
All variables visible from the given execution scope (including parent scopes). |
Map<String,Object> |
getVariables(String caseExecutionId,
Collection<String> variableNames)
The variable values for all given variableNames, takes all variables into account which are visible from the given case execution scope (including parent scopes). |
Map<String,Object> |
getVariablesLocal(String caseExecutionId)
All variable values that are defined in the case execution scope, without taking outer scopes into account. |
Map<String,Object> |
getVariablesLocal(String caseExecutionId,
Collection<String> variableNames)
The variable values for the given variableNames only taking the given case execution scope into account, not looking in outer scopes. |
CaseInstanceBuilder |
withCaseDefinition(String caseDefinitionId)
Define a CaseInstance using a fluent builder. |
CaseInstanceBuilder |
withCaseDefinitionByKey(String caseDefinitionKey)
Define a CaseInstance using a fluent builder. |
CaseExecutionCommandBuilder |
withCaseExecution(String caseExecutionId)
Define a command to be executed for a CaseExecution using a fluent builder. |
| Method Detail |
|---|
CaseInstanceBuilder withCaseDefinitionByKey(String caseDefinitionKey)
Define a CaseInstance using a fluent builder.
Starts a new case instance with the latest version of the corresponding case definition.
caseDefinitionKey - the key of a case definition to create a new case instance of, cannot be null
fluent builder for defining a new case instanceCaseInstanceBuilder withCaseDefinition(String caseDefinitionId)
Define a CaseInstance using a fluent builder.
Starts a new case instance with the case definition version corresponding to the given id.
caseDefinitionId - the id of a case definition to create a new case instance, cannot be null
fluent builder for defining a new case instanceCaseInstanceQuery createCaseInstanceQuery()
Creates a new CaseInstanceQuery instance, that can be used
to query case instances.
CaseExecutionQuery createCaseExecutionQuery()
Creates a new CaseExecutionQuery instance,
that can be used to query the executions and case instances.
CaseSentryPartQuery createCaseSentryPartQuery()
Creates a new CaseSentryPartQuery instance,
that can be used to query the sentry parts.
CaseExecutionCommandBuilder withCaseExecution(String caseExecutionId)
Define a command to be executed for a CaseExecution using a fluent builder.
caseExecutionId - the id of a case execution to define a command for it
fluent builder for defining a command
for a case executionMap<String,Object> getVariables(String caseExecutionId)
All variables visible from the given execution scope (including parent scopes).
If you have many local variables and you only need a few, consider
using getVariables(String, Collection) for better performance.
caseExecutionId - the id of a case instance or case execution, cannot be null
NotValidException - when the given case execution id is null
NotFoundException - when no case execution is found for the given case execution id
ProcessEngineException - when an internal exception happens during the execution of the commandMap<String,Object> getVariablesLocal(String caseExecutionId)
All variable values that are defined in the case execution scope, without taking outer scopes into account.
If you have many local variables and you only need a few, consider
using getVariablesLocal(String, Collection) for better performance.
caseExecutionId - the id of a case execution, cannot be null
NotValidException - when the given case execution id is null
NotFoundException - when no case execution is found for the given case execution id
ProcessEngineException - when an internal exception happens during the execution of the command
Map<String,Object> getVariables(String caseExecutionId,
Collection<String> variableNames)
The variable values for all given variableNames, takes all variables into account which are visible from the given case execution scope (including parent scopes).
caseExecutionId - the id of a case instance or case execution, cannot be nullvariableNames - the collection of variable names that should be retrieved
NotValidException - when the given case execution id is null
NotFoundException - when no case execution is found for the given case execution id
ProcessEngineException - when an internal exception happens during the execution of the command
Map<String,Object> getVariablesLocal(String caseExecutionId,
Collection<String> variableNames)
The variable values for the given variableNames only taking the given case execution scope into account, not looking in outer scopes.
caseExecutionId - the id of a case execution, cannot be nullvariableNames - the collection of variable names that should be retrieved
NotValidException - when the given case execution id is null
NotFoundException - when no case execution is found for the given case execution id
ProcessEngineException - when an internal exception happens during the execution of the command
Object getVariable(String caseExecutionId,
String variableName)
Searching for the variable is done in all scopes that are visible to the given case execution (including parent scopes).
Returns null when no variable value is found with the given name or when the value is set to null.
caseExecutionId - the id of a case instance or case execution, cannot be nullvariableName - the name of a variable, cannot be null
NotValidException - when the given case execution id or variable name is null
NotFoundException - when no case execution is found for the given case execution id
ProcessEngineException - when an internal exception happens during the execution of the command
Object getVariableLocal(String caseExecutionId,
String variableName)
The variable value for an case execution. Returns the value when the variable is set for the case execution (and not searching parent scopes).
Returns null when no variable value is found with the given name or when the value is set to null.
caseExecutionId - the id of a case instance or case execution, cannot be nullvariableName - the name of a variable, cannot be null
NotValidException - when the given case execution id or variable name is null
NotFoundException - when no case execution is found for the given case execution id
ProcessEngineException - when an internal exception happens during the execution of the command
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||