Hi,
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(BpmnParse.java:188)
at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:86)
….
Caused by: org.activiti.engine.impl.pvm.PvmException: duplicate activity id 'usertask12'
at org.activiti.engine.impl.pvm.process.ScopeImpl.createActivity(ScopeImpl.java:66)
at org.activiti.engine.impl.bpmn.parser.handler.AbstractBpmnParseHandler.createActivityOnScope(AbstractBpmnParseHandler.java:97)
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
(ie.
@Override
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.
Thanks,
Przemek