SetProcessDefinitionVersionCmd should work with CallActivities as well

Description

Currently a CallActivity in the main path of execution leads to two Executions:

  • The Process Instance (root): current activity = null

  • Execution in CallActivity (child): current activity = call activity

This leads to a NPE:
11:19:35,295 Schwerwiegend [UpdateToNewProcessDefinitionVersion] (http--127.0.0.1-8080-4) Could not update Processdefinition version: java.lang.NullPointerException
at org.activiti.engine.impl.pvm.process.ScopeImpl.contains(ScopeImpl.java:76) [fox-engine-6.1.0-alpha3.jar:6.1.0-alpha3]
at org.activiti.engine.impl.cmd.SetProcessDefinitionVersionCmd.execute(SetProcessDefinitionVersionCmd.java:111) [fox-engine-6.1.0-alpha3.jar:6.1.0-alpha3]
at org.activiti.engine.impl.cmd.SetProcessDefinitionVersionCmd.execute(SetProcessDefinitionVersionCmd.java:59) [fox-engine-6.1.0-alpha3.jar:6.1.0-alpha3]

Assignee

Bernd Ruecker (camunda)

Reporter

Bernd Ruecker (camunda)

Labels

None

Fix versions

Priority

Major
Configure