Improve error message if process definition with Message Start Events gets started by "startProcessInstanceByKey"

Description

15:20:31,261 Schwerwiegend [org.activiti.engine.impl.interceptor.CommandContext] (http--127.0.0.1-8080-4) Error while closing command context: org.activiti.engine.ActivitiException: Cannot start process instance, initial is null
at org.activiti.engine.impl.pvm.process.ProcessDefinitionImpl.createProcessInstanceForInitial(ProcessDefinitionImpl.java:56) [fox-engine-6.0.3.jar:6.0.3]
at org.activiti.engine.impl.pvm.process.ProcessDefinitionImpl.createProcessInstance(ProcessDefinitionImpl.java:49) [fox-engine-6.0.3.jar:6.0.3]
at org.activiti.engine.impl.persistence.entity.ProcessDefinitionEntity.createProcessInstance(ProcessDefinitionEntity.java:68) [fox-engine-6.0.3.jar:6.0.3]
at org.activiti.engine.impl.persistence.entity.ProcessDefinitionEntity.createProcessInstance(ProcessDefinitionEntity.java:127) [fox-engine-6.0.3.jar:6.0.3]
at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:66) [fox-engine-6.0.3.jar:6.0.3]
at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:31) [fox-engine-6.0.3.jar:6.0.3]
at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24) [fox-engine-6.0.3.jar:6.0.3]
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42) [fox-engine-6.0.3.jar:6.0.3]
at org.activiti.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:59) [fox-engine-6.0.3.jar:6.0.3]
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33) [fox-engine-6.0.3.jar:6.0.3]
at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:54) [fox-engine-6.0.3.jar:6.0.3]

Assignee

Bernd Ruecker (camunda)

Reporter

Bernd Ruecker (camunda)

Labels

None

Components

Fix versions

Priority

Major
Configure