|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.cmmn.CaseInstanceBuilderImpl
public class CaseInstanceBuilderImpl
| Field Summary | |
|---|---|
protected String |
businessKey
|
protected String |
caseDefinitionId
|
protected String |
caseDefinitionKey
|
protected CommandContext |
commandContext
|
protected CommandExecutor |
commandExecutor
|
protected VariableMap |
variables
|
| Constructor Summary | |
|---|---|
CaseInstanceBuilderImpl(CommandContext commandContext,
String caseDefinitionKey,
String caseDefinitionId)
|
|
CaseInstanceBuilderImpl(CommandExecutor commandExecutor,
String caseDefinitionKey,
String caseDefinitionId)
|
|
| Method Summary | |
|---|---|
CaseInstanceBuilder |
businessKey(String businessKey)
A business key can be provided to associate the case instance with a certain identifier that has a clear business meaning. |
CaseInstance |
create()
Creates a new CaseInstance, which will be in the ACTIVE state. |
String |
getBusinessKey()
|
String |
getCaseDefinitionId()
|
String |
getCaseDefinitionKey()
|
VariableMap |
getVariables()
|
CaseInstanceBuilder |
setVariable(String variableName,
Object variableValue)
Pass a variable to the case instance. |
CaseInstanceBuilder |
setVariables(Map<String,Object> variables)
Pass a map of variables to the case instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CommandExecutor commandExecutor
protected CommandContext commandContext
protected String caseDefinitionKey
protected String caseDefinitionId
protected String businessKey
protected VariableMap variables
| Constructor Detail |
|---|
public CaseInstanceBuilderImpl(CommandExecutor commandExecutor,
String caseDefinitionKey,
String caseDefinitionId)
public CaseInstanceBuilderImpl(CommandContext commandContext,
String caseDefinitionKey,
String caseDefinitionId)
| Method Detail |
|---|
public CaseInstanceBuilder businessKey(String businessKey)
CaseInstanceBuilderA business key can be provided to associate the case instance with a
certain identifier that has a clear business meaning. This business key can
then be used to easily look up that case instance, see
CaseInstanceQuery.caseInstanceBusinessKey(String). Providing such a
business key is definitely a best practice.
Note that a business key MUST be unique for the given case definition WHEN you have added a database constraint for it. In this case, only case instance from different case definition are allowed to have the same business key and the combination of caseDefinitionKey-businessKey must be unique.
businessKey in interface CaseInstanceBuilderbusinessKey - a key that uniquely identifies the case instance in the context
of the given case definition.
public CaseInstanceBuilder setVariable(String variableName,
Object variableValue)
CaseInstanceBuilderPass a variable to the case instance.
Invoking this method multiple times allows passing multiple variables.
setVariable in interface CaseInstanceBuildervariableName - the name of the variable to setvariableValue - the value of the variable to set
public CaseInstanceBuilder setVariables(Map<String,Object> variables)
CaseInstanceBuilderPass a map of variables to the case instance.
Invoking this method multiple times allows passing multiple variables.
setVariables in interface CaseInstanceBuildervariables - the map of variables
public CaseInstance create()
CaseInstanceBuilderCreates a new CaseInstance, which will be in the ACTIVE state.
create in interface CaseInstanceBuilderpublic String getCaseDefinitionKey()
public String getCaseDefinitionId()
public String getBusinessKey()
public VariableMap getVariables()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||