when configuring a
<resource/> in a
<process-archive/> inside the
processes.xml the process is being referenced twice. Running the project from IDE works but running the project from jar results in an error. I assume that the reason behind this is that the auto-deployment as well as the code running the processes.xml are trying to deploy the BPMN. Setting
application.properties has no effect, though.
2020-10-14 14:02:39.315 INFO 20256 --- [ main] org.camunda.bpm.container : ENGINE-08023 Deployment summary for process archive 'Demo: Deploying process error': processes/hello_world.bpmn BOOT-INF/classes/processes/hello_world.bpmn 2020-10-14 14:02:39.580 ERROR 20256 --- [ main] org.camunda.bpm.engine.context : ENGINE-16004 Exception while closing command context: The deployment contains definitions with the same key 'Process_0un69zw' (id attribute), this is not allowed org.camunda.bpm.engine.ProcessEngineException: The deployment contains definitions with the same key 'Process_0un69zw' (id attribute), this is not allowed
<process-application xmlns="http://www.camunda.org/schema/1.0/ProcessApplication" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <process-archive name="Demo: Deploying process error"> <resource>processes/hello_world.bpmn</resource> <properties> <property name="isDeleteUponUndeploy">false</property> <property name="isScanForProcessDefinitions">true</property> </properties> </process-archive> </process-application>
Github-Project for reproduction: https://github.com/cit-gruenewald/camunda-sb-process-error
Is this a bug or am I missing something rather critical? Any help appreciated.