Package org.camunda.bpm.engine.impl
Class MessageCorrelationAsyncBuilderImpl
- java.lang.Object
- 
- org.camunda.bpm.engine.impl.MessageCorrelationAsyncBuilderImpl
 
- 
- All Implemented Interfaces:
- MessageCorrelationAsyncBuilder
 
 public class MessageCorrelationAsyncBuilderImpl extends Object implements MessageCorrelationAsyncBuilder 
- 
- 
Field SummaryFields Modifier and Type Field Description protected CommandExecutorcommandExecutorprotected HistoricProcessInstanceQueryhistoricProcessInstanceQueryprotected StringmessageNameprotected Map<String,Object>payloadProcessInstanceVariablesprotected List<String>processInstanceIdsprotected ProcessInstanceQueryprocessInstanceQuery
 - 
Constructor SummaryConstructors Constructor Description MessageCorrelationAsyncBuilderImpl(CommandExecutor commandExecutor, String messageName)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchcorrelateAllAsync()Correlates a message asynchronously to executions that are waiting for this message based on the provided queries and list of process instance ids, whereby query results and list of ids will be merged.protected voidensurePayloadProcessInstanceVariablesInitialized()CommandExecutorgetCommandExecutor()HistoricProcessInstanceQuerygetHistoricProcessInstanceQuery()StringgetMessageName()Map<String,Object>getPayloadProcessInstanceVariables()List<String>getProcessInstanceIds()ProcessInstanceQuerygetProcessInstanceQuery()MessageCorrelationAsyncBuilderhistoricProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)Correlate the message such that the process instances found by the given query are selected.MessageCorrelationAsyncBuilderprocessInstanceIds(List<String> ids)Correlate the message such that the process instances with the given ids are selected.MessageCorrelationAsyncBuilderprocessInstanceQuery(ProcessInstanceQuery processInstanceQuery)Correlate the message such that the process instances found by the given query are selected.MessageCorrelationAsyncBuildersetVariable(String variableName, Object variableValue)Pass a variable to the execution waiting on the message.MessageCorrelationAsyncBuildersetVariables(Map<String,Object> variables)Pass a map of variables to the execution waiting on the message.
 
- 
- 
- 
Field Detail- 
commandExecutorprotected CommandExecutor commandExecutor 
 - 
messageNameprotected String messageName 
 - 
processInstanceQueryprotected ProcessInstanceQuery processInstanceQuery 
 - 
historicProcessInstanceQueryprotected HistoricProcessInstanceQuery historicProcessInstanceQuery 
 
- 
 - 
Constructor Detail- 
MessageCorrelationAsyncBuilderImplpublic MessageCorrelationAsyncBuilderImpl(CommandExecutor commandExecutor, String messageName) 
 
- 
 - 
Method Detail- 
processInstanceIdspublic MessageCorrelationAsyncBuilder processInstanceIds(List<String> ids) Description copied from interface:MessageCorrelationAsyncBuilderCorrelate the message such that the process instances with the given ids are selected. - Specified by:
- processInstanceIdsin interface- MessageCorrelationAsyncBuilder
- Parameters:
- ids- the ids of the process instances to correlate to; at least one of- MessageCorrelationAsyncBuilder.processInstanceIds(List),- MessageCorrelationAsyncBuilder.processInstanceQuery(ProcessInstanceQuery), or- MessageCorrelationAsyncBuilder.historicProcessInstanceQuery(HistoricProcessInstanceQuery)has to be set.
- Returns:
- the builder
 
 - 
processInstanceQuerypublic MessageCorrelationAsyncBuilder processInstanceQuery(ProcessInstanceQuery processInstanceQuery) Description copied from interface:MessageCorrelationAsyncBuilderCorrelate the message such that the process instances found by the given query are selected. - Specified by:
- processInstanceQueryin interface- MessageCorrelationAsyncBuilder
- Parameters:
- processInstanceQuery- the query to select process instances to correlate to; at least one of- MessageCorrelationAsyncBuilder.processInstanceIds(List),- MessageCorrelationAsyncBuilder.processInstanceQuery(ProcessInstanceQuery), or- MessageCorrelationAsyncBuilder.historicProcessInstanceQuery(HistoricProcessInstanceQuery)has to be set.
- Returns:
- the builder
 
 - 
historicProcessInstanceQuerypublic MessageCorrelationAsyncBuilder historicProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery) Description copied from interface:MessageCorrelationAsyncBuilderCorrelate the message such that the process instances found by the given query are selected. - Specified by:
- historicProcessInstanceQueryin interface- MessageCorrelationAsyncBuilder
- Parameters:
- historicProcessInstanceQuery- the query to select process instances to correlate to; at least one of- MessageCorrelationAsyncBuilder.processInstanceIds(List),- MessageCorrelationAsyncBuilder.processInstanceQuery(ProcessInstanceQuery), or- MessageCorrelationAsyncBuilder.historicProcessInstanceQuery(HistoricProcessInstanceQuery)has to be set.
- Returns:
- the builder
 
 - 
setVariablepublic MessageCorrelationAsyncBuilder setVariable(String variableName, Object variableValue) Description copied from interface:MessageCorrelationAsyncBuilderPass 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. - Specified by:
- setVariablein interface- MessageCorrelationAsyncBuilder
- Parameters:
- variableName- the name of the variable to set
- variableValue- the value of the variable to set
- Returns:
- the builder
 
 - 
setVariablespublic MessageCorrelationAsyncBuilder setVariables(Map<String,Object> variables) Description copied from interface:MessageCorrelationAsyncBuilderPass a map of variables to the execution waiting on the message. Use this method for passing the message's payload - Specified by:
- setVariablesin interface- MessageCorrelationAsyncBuilder
- Parameters:
- variables- the map of variables
- Returns:
- the builder
 
 - 
ensurePayloadProcessInstanceVariablesInitializedprotected void ensurePayloadProcessInstanceVariablesInitialized() 
 - 
correlateAllAsyncpublic Batch correlateAllAsync() Description copied from interface:MessageCorrelationAsyncBuilderCorrelates a message asynchronously to executions that are waiting for this message based on the provided queries and list of process instance ids, whereby query results and list of ids will be merged.- Specified by:
- correlateAllAsyncin interface- MessageCorrelationAsyncBuilder
- Returns:
- the batch which correlates the message asynchronously
 
 - 
getCommandExecutorpublic CommandExecutor getCommandExecutor() 
 - 
getMessageNamepublic String getMessageName() 
 - 
getProcessInstanceQuerypublic ProcessInstanceQuery getProcessInstanceQuery() 
 - 
getHistoricProcessInstanceQuerypublic HistoricProcessInstanceQuery getHistoricProcessInstanceQuery() 
 
- 
 
-