AnsweredAssumed Answered

Custom BpmnParseHandler - duplicate activity error

Question asked by pkromolowski on Mar 14, 2013
Latest reply on May 31, 2013 by jbarrez

After upgrading to 5.12 I get the following exception when parsing the process definition:

org.activiti.engine.ActivitiException: Error parsing XML
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(
   at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(
Caused by: org.activiti.engine.impl.pvm.PvmException: duplicate activity id 'usertask12'
   at org.activiti.engine.impl.pvm.process.ScopeImpl.createActivity(
   at org.activiti.engine.impl.bpmn.parser.handler.AbstractBpmnParseHandler.createActivityOnScope(

The problem occurs when I use a custom BpmnParseHandler AND a task within a subprocess (both conditions must be met to replicate the problem).
The custom parse handler doesn't do any processing, it simply calls super.XXX() methods
   protected void executeParse(BpmnParse bpmnParse, UserTask userTask)
      super.executeParse(bpmnParse, userTask);

The process gets parsed correctly when I disable all custom parse handlers. Ten processes without subprocesses are parsed correctly as well.