public interface MessageCorrelationBuilder
A fluent builder for defining message correlation
| Modifier and Type | Method and Description |
|---|---|
void |
correlate()
Executes the message correlation.
|
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.
|
MessageCorrelationBuilder processInstanceBusinessKey(String businessKey)
Correlate the message such that the process instance has a business with the given name and value.
businessKey - the businessKey to correlate on.MessageCorrelationBuilder processInstanceVariableEquals(String variableName, Object variableValue)
Correlate the message such that the process instance has a variable with the given name and value.
variableName - the name of the process instance variable to correlate on.variableValue - the value of the process instance variable to correlate on.MessageCorrelationBuilder processInstanceId(String id)
Correlate the message such that a process instance with the given id is selected.
id - the id of the process instance to correlate on.MessageCorrelationBuilder setVariable(String variableName, Object variableValue)
Pass 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.
variableName - the name of the variable to setvariableValue - the value of the variable to setMessageCorrelationBuilder setVariables(Map<String,Object> variables)
Pass a map of variables to the execution waiting on the message. Use this method for passing the message's payload
variables - the map of variablesvoid correlate()
This will result in either:
MismatchingMessageCorrelationException - if none or more than one execution or process definition is matched by the correlationCopyright © 2015. All rights reserved.