|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.ServiceImpl
org.camunda.bpm.engine.impl.cmmn.CaseServiceImpl
public class CaseServiceImpl
| Field Summary |
|---|
| Fields inherited from class org.camunda.bpm.engine.impl.ServiceImpl |
|---|
commandExecutor |
| Constructor Summary | |
|---|---|
CaseServiceImpl()
|
|
| 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. |
| Methods inherited from class org.camunda.bpm.engine.impl.ServiceImpl |
|---|
getCommandExecutor, setCommandExecutor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CaseServiceImpl()
| Method Detail |
|---|
public CaseInstanceBuilder withCaseDefinitionByKey(String caseDefinitionKey)
CaseServiceDefine a CaseInstance using a fluent builder.
Starts a new case instance with the latest version of the corresponding case definition.
withCaseDefinitionByKey in interface CaseServicecaseDefinitionKey - the key of a case definition to create a new case instance of, cannot be null
fluent builder for defining a new case instancepublic CaseInstanceBuilder withCaseDefinition(String caseDefinitionId)
CaseServiceDefine a CaseInstance using a fluent builder.
Starts a new case instance with the case definition version corresponding to the given id.
withCaseDefinition in interface CaseServicecaseDefinitionId - the id of a case definition to create a new case instance, cannot be null
fluent builder for defining a new case instancepublic CaseInstanceQuery createCaseInstanceQuery()
CaseServiceCreates a new CaseInstanceQuery instance, that can be used
to query case instances.
createCaseInstanceQuery in interface CaseServicepublic CaseExecutionQuery createCaseExecutionQuery()
CaseServiceCreates a new CaseExecutionQuery instance,
that can be used to query the executions and case instances.
createCaseExecutionQuery in interface CaseServicepublic CaseSentryPartQuery createCaseSentryPartQuery()
CaseServiceCreates a new CaseSentryPartQuery instance,
that can be used to query the sentry parts.
createCaseSentryPartQuery in interface CaseServicepublic CaseExecutionCommandBuilder withCaseExecution(String caseExecutionId)
CaseServiceDefine a command to be executed for a CaseExecution using a fluent builder.
withCaseExecution in interface CaseServicecaseExecutionId - the id of a case execution to define a command for it
fluent builder for defining a command
for a case executionpublic Map<String,Object> getVariables(String caseExecutionId)
CaseServiceAll variables visible from the given execution scope (including parent scopes).
If you have many local variables and you only need a few, consider
using CaseService.getVariables(String, Collection) for better performance.
getVariables in interface CaseServicecaseExecutionId - the id of a case instance or case execution, cannot be null
public Map<String,Object> getVariablesLocal(String caseExecutionId)
CaseServiceAll 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 CaseService.getVariablesLocal(String, Collection) for better performance.
getVariablesLocal in interface CaseServicecaseExecutionId - the id of a case execution, cannot be null
public Map<String,Object> getVariables(String caseExecutionId,
Collection<String> variableNames)
CaseServiceThe variable values for all given variableNames, takes all variables into account which are visible from the given case execution scope (including parent scopes).
getVariables in interface CaseServicecaseExecutionId - the id of a case instance or case execution, cannot be nullvariableNames - the collection of variable names that should be retrieved
public Map<String,Object> getVariablesLocal(String caseExecutionId,
Collection<String> variableNames)
CaseServiceThe variable values for the given variableNames only taking the given case execution scope into account, not looking in outer scopes.
getVariablesLocal in interface CaseServicecaseExecutionId - the id of a case execution, cannot be nullvariableNames - the collection of variable names that should be retrieved
public Object getVariable(String caseExecutionId,
String variableName)
CaseServiceSearching 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.
getVariable in interface CaseServicecaseExecutionId - the id of a case instance or case execution, cannot be nullvariableName - the name of a variable, cannot be null
public Object getVariableLocal(String caseExecutionId,
String variableName)
CaseServiceThe 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.
getVariableLocal in interface CaseServicecaseExecutionId - the id of a case instance or case execution, cannot be nullvariableName - the name of a variable, cannot be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||