|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.MessageCorrelationBuilderImpl
public class MessageCorrelationBuilderImpl
| Field Summary | |
|---|---|
protected String |
businessKey
|
protected CommandContext |
commandContext
|
protected CommandExecutor |
commandExecutor
|
protected Map<String,Object> |
correlationProcessInstanceVariables
|
protected String |
messageName
|
protected Map<String,Object> |
payloadProcessInstanceVariables
|
protected String |
processInstanceId
|
| Constructor Summary | |
|---|---|
MessageCorrelationBuilderImpl(CommandContext commandContext,
String messageName)
|
|
MessageCorrelationBuilderImpl(CommandExecutor commandExecutor,
String messageName)
|
|
| Method Summary | |
|---|---|
void |
correlate()
Executes the message correlation. |
void |
correlateAll()
Executes the message correlation for multiple messages. |
String |
getBusinessKey()
|
CommandContext |
getCommandContext()
|
CommandExecutor |
getCommandExecutor()
|
Map<String,Object> |
getCorrelationProcessInstanceVariables()
|
String |
getMessageName()
|
Map<String,Object> |
getPayloadProcessInstanceVariables()
|
String |
getProcessInstanceId()
|
MessageCorrelationBuilder |
processInstanceBusinessKey(String businessKey)
Correlate the message such that the process instance has a business with the given name and value. |
MessageCorrelationBuilder |
processInstanceId(String id)
Correlate the message such that a process instance with the given id is selected. |
MessageCorrelationBuilder |
processInstanceVariableEquals(String variableName,
Object variableValue)
Correlate the message such that the process instance has a variable with the given name and value. |
MessageCorrelationBuilder |
setVariable(String variableName,
Object variableValue)
Pass a variable to the execution waiting on the message. |
MessageCorrelationBuilder |
setVariables(Map<String,Object> variables)
Pass a map of variables to the execution waiting on the message. |
| 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 messageName
protected String businessKey
protected String processInstanceId
protected Map<String,Object> correlationProcessInstanceVariables
protected Map<String,Object> payloadProcessInstanceVariables
| Constructor Detail |
|---|
public MessageCorrelationBuilderImpl(CommandExecutor commandExecutor,
String messageName)
public MessageCorrelationBuilderImpl(CommandContext commandContext,
String messageName)
| Method Detail |
|---|
public MessageCorrelationBuilder processInstanceBusinessKey(String businessKey)
MessageCorrelationBuilderCorrelate the message such that the process instance has a business with the given name and value.
processInstanceBusinessKey in interface MessageCorrelationBuilderbusinessKey - the businessKey to correlate on.
public MessageCorrelationBuilder processInstanceVariableEquals(String variableName,
Object variableValue)
MessageCorrelationBuilderCorrelate the message such that the process instance has a variable with the given name and value.
processInstanceVariableEquals in interface MessageCorrelationBuildervariableName - the name of the process instance variable to correlate on.variableValue - the value of the process instance variable to correlate on.
public MessageCorrelationBuilder processInstanceId(String id)
MessageCorrelationBuilderCorrelate the message such that a process instance with the given id is selected.
processInstanceId in interface MessageCorrelationBuilderid - the id of the process instance to correlate on.
public MessageCorrelationBuilder setVariable(String variableName,
Object variableValue)
MessageCorrelationBuilderPass a variable to the execution waiting on the message. Use this method for passing the message's payload.
Invoking this method multiple times allows passing multiple variables.
setVariable in interface MessageCorrelationBuildervariableName - the name of the variable to setvariableValue - the value of the variable to set
public MessageCorrelationBuilder setVariables(Map<String,Object> variables)
MessageCorrelationBuilderPass a map of variables to the execution waiting on the message. Use this method for passing the message's payload
setVariables in interface MessageCorrelationBuildervariables - the map of variables
public void correlate()
MessageCorrelationBuilderThis will result in either:
correlate in interface MessageCorrelationBuilderpublic void correlateAll()
MessageCorrelationBuilderThis will result in any number of the following:
correlateAll in interface MessageCorrelationBuilderpublic CommandExecutor getCommandExecutor()
public CommandContext getCommandContext()
public String getMessageName()
public String getBusinessKey()
public String getProcessInstanceId()
public Map<String,Object> getCorrelationProcessInstanceVariables()
public Map<String,Object> getPayloadProcessInstanceVariables()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||