AnsweredAssumed Answered

Exclusive Gateway has no outgoing sequence flows - Activiti 5.12 upgrade

Question asked by dp on May 14, 2013
Latest reply on May 16, 2013 by trademak

We have a workflow with subprocesses and multiple exclusive gateways.
We upgraded the activiti from 5.10 to 5.12. After the upgrade our test failed with the following error:
Exclusive Gateway 'gatewayAAA' has no outgoing sequence flows. | gatewayAAA | line 176 | column 9

   at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(
   at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(
   at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(
   at org.activiti.engine.impl.cmd.DeployCmd.execute(
   at org.activiti.engine.impl.cmd.DeployCmd.execute(
   at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(
   at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(
   at org.activiti.spring.SpringTransactionInterceptor.execute(
   at org.activiti.engine.impl.interceptor.LogInterceptor.execute(
   at org.activiti.engine.impl.RepositoryServiceImpl.deploy(
   at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(
   at org.activiti.spring.SpringProcessEngineConfiguration.autoDeployResources(
   at org.activiti.spring.SpringProcessEngineConfiguration.buildProcessEngine(
   at org.activiti.spring.ProcessEngineFactoryBean.getObject(
   at org.activiti.spring.ProcessEngineFactoryBean.getObject(
   … 57 more

Examining the xml for the process definition we saw that the sequence flows definitions are described outside of the sub process element (even if they are part of that subprocess).
We fixed the XML by moving the sequence flows definitions inside the sub process and after that the tests passed. But, as soon as we change something using the activiti designer(eclipse plugin 5.12), the XML is regenerated and the problem reappears.

Thank you!