org.camunda.bpm.engine.impl.cmd
Class StartProcessInstanceByMessageAndProcessDefinitionIdCmd
java.lang.Object
org.camunda.bpm.engine.impl.cmd.StartProcessInstanceByMessageAndProcessDefinitionIdCmd
- All Implemented Interfaces:
- Command<ProcessInstance>
public class StartProcessInstanceByMessageAndProcessDefinitionIdCmd
- extends Object
- implements Command<ProcessInstance>
Command to start a process instance by message.
See StartProcessInstanceByMessageCmd. In addition, this command allows
specifying the exactly version of the process definition with the given id.
- Author:
- Philipp Ossler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
messageName
protected final String messageName
businessKey
protected final String businessKey
processVariables
protected final Map<String,Object> processVariables
processDefinitionId
protected final String processDefinitionId
StartProcessInstanceByMessageAndProcessDefinitionIdCmd
public StartProcessInstanceByMessageAndProcessDefinitionIdCmd(String messageName,
String processDefinitionId,
String businessKey,
Map<String,Object> processVariables)
execute
public ProcessInstance execute(CommandContext commandContext)
- Specified by:
execute in interface Command<ProcessInstance>
findStartActivityIdByMessage
protected String findStartActivityIdByMessage(ProcessDefinitionEntity processDefinition)
isMessageStartEventWithName
protected boolean isMessageStartEventWithName(EventSubscriptionDeclaration declaration,
String messageName)
Copyright © 2015 camunda services GmbH. All rights reserved.