public class StartProcessInstanceByMessageAndProcessDefinitionIdCmd extends Object implements Command<ProcessInstance>
StartProcessInstanceByMessageCmd
. In addition, this command allows
specifying the exactly version of the process definition with the given id.Modifier and Type | Field and Description |
---|---|
protected String |
businessKey |
protected String |
messageName |
protected String |
processDefinitionId |
protected Map<String,Object> |
processVariables |
Constructor and Description |
---|
StartProcessInstanceByMessageAndProcessDefinitionIdCmd(String messageName,
String processDefinitionId,
String businessKey,
Map<String,Object> processVariables) |
Modifier and Type | Method and Description |
---|---|
ProcessInstance |
execute(CommandContext commandContext) |
protected String |
findStartActivityIdByMessage(ProcessDefinitionEntity processDefinition) |
protected boolean |
isMessageStartEventWithName(EventSubscriptionDeclaration declaration,
String messageName) |
protected final String messageName
protected final String businessKey
protected final String processDefinitionId
public ProcessInstance execute(CommandContext commandContext)
execute
in interface Command<ProcessInstance>
protected String findStartActivityIdByMessage(ProcessDefinitionEntity processDefinition)
protected boolean isMessageStartEventWithName(EventSubscriptionDeclaration declaration, String messageName)
Copyright © 2018. All rights reserved.