AnsweredAssumed Answered

Activiti 5.9 can't deploy process definition w/ BPMNDiagram

Question asked by chris.joelly on Mar 17, 2012
Latest reply on Mar 24, 2012 by chris.joelly
Hello,

i just upgraded to 5.9 and it seems that simple processes are not deployable anymore. It seems that the parser does not see the process definition when it parses the BPMNDiagram information.


[#|2012-03-17T19:45:06.121+0100|INFO|glassfish3.1.1|org.activiti.engine.impl.bpmn.deployer.BpmnDeployer|_ThreadID=26;_ThreadName=Thread-2;|Processing resource testModel1.bpmn20.xml|#]

[#|2012-03-17T19:45:06.141+0100|INFO|glassfish3.1.1|org.activiti.engine.impl.bpmn.parser.BpmnParse|_ThreadID=26;_ThreadName=Thread-2;|XMLSchema currently not supported as typeLanguage|#]

[#|2012-03-17T19:45:06.141+0100|INFO|glassfish3.1.1|org.activiti.engine.impl.bpmn.parser.BpmnParse|_ThreadID=26;_ThreadName=Thread-2;|XPath currently not supported as expressionLanguage|#]

[#|2012-03-17T19:45:06.142+0100|SEVERE|glassfish3.1.1|org.activiti.engine.impl.interceptor.CommandContext|_ThreadID=26;_ThreadName=Thread-2;|Error while closing command context
org.activiti.engine.ActivitiException: Invalid reference in 'bpmnElement' attribute, process sid-7ab1fea3-d32a-48cd-9ca9-e19aa56ee2e0 not found | testModel1.bpmn20.xml | line 70 | column 126

   at org.activiti.engine.impl.util.xml.Parse.throwActivitiExceptionForErrors(Parse.java:186)
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:222)
   at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:86)
   at org.activiti.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:38)
   at org.activiti.engine.impl.persistence.entity.DeploymentManager.insertDeployment(DeploymentManager.java:42)
   at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:58)
   at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)
   at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)
   at org.activiti.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:59)
   at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
   at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:46)
   at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:106)
   at erp.domain.activiti.mgnt.ProcessImporterEJB.importProcess(ProcessImporterEJB.java:40)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
   at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
   at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5366)
   at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
   at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
   at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
   at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:46)
   at sun.reflect.GeneratedMethodAccessor480.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
   at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
   at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
   at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
   at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
   at sun.reflect.GeneratedMethodAccessor479.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
   at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
   at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)
   at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5338)
   at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5326)
   at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
   at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
   at $Proxy274.importProcess(Unknown Source)
   at erp.domain.activiti.mgnt.__EJB31_Generated__ProcessImporterEJB__Intf____Bean__.importProcess(Unknown Source)
   at erp.web.faces.beans.activiti.ProcessImporter.processFile(ProcessImporter.java:36)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)

The process is a bpmn20.xml file which is exported using the current Signavio core components from GoogleCode SVN out of which i build the Activiti Modeler:


<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:signavio="http://www.signavio.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exporter="Signavio Process Editor, http://www.signavio.com" exporterVersion="" expressionLanguage="http://www.w3.org/1999/XPath" id="sid-0b943c6c-9006-4d8f-910d-136c89c77efc" targetNamespace="http://www.signavio.com/bpmn20" typeLanguage="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/2.0/20100501/BPMN20.xsd">
   <process id="sid-7ab1fea3-d32a-48cd-9ca9-e19aa56ee2e0" isExecutable="false">
      <startEvent id="sid-E7CACDB0-840B-4811-84A1-E647070E00E5" name="Start">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"/>
         </extensionElements>
         <outgoing>sid-5961A893-641D-4325-8300-40F9ED8913B7</outgoing>
      </startEvent>
      <task completionQuantity="1" id="sid-557C4A5B-0C7F-4D03-A74E-E291523BCC84" isForCompensation="false" name="task1" startQuantity="1">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"/>
         </extensionElements>
         <incoming>sid-5961A893-641D-4325-8300-40F9ED8913B7</incoming>
         <outgoing>sid-FDA1856E-A5AF-426B-AA7F-1478EE4C7D03</outgoing>
      </task>
      <exclusiveGateway gatewayDirection="Diverging" id="sid-C84F890F-CF63-4DB0-9E0A-07C048282835" name="">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"/>
         </extensionElements>
         <incoming>sid-FDA1856E-A5AF-426B-AA7F-1478EE4C7D03</incoming>
         <outgoing>sid-1FD70E66-2D3A-4ECA-A0D5-D22AA973A37B</outgoing>
         <outgoing>sid-231C868B-35C9-44E9-A094-2979703FCE5B</outgoing>
      </exclusiveGateway>
      <task completionQuantity="1" id="sid-13A46CF6-677C-4E0A-B032-FAD6B183B2A6" isForCompensation="false" name="task3" startQuantity="1">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"/>
         </extensionElements>
         <incoming>sid-1FD70E66-2D3A-4ECA-A0D5-D22AA973A37B</incoming>
         <outgoing>sid-41E72AC5-3884-4F29-A3FD-B7E958AAE9FC</outgoing>
      </task>
      <exclusiveGateway gatewayDirection="Converging" id="sid-878C93C6-DFE4-4C73-9DDD-9E392471F5B9" name="">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"/>
         </extensionElements>
         <incoming>sid-41E72AC5-3884-4F29-A3FD-B7E958AAE9FC</incoming>
         <incoming>sid-5D4170CB-6312-4B88-B16D-470272E68B62</incoming>
         <outgoing>sid-38F53A4F-3170-4188-A626-62C54A0BEEE5</outgoing>
      </exclusiveGateway>
      <task completionQuantity="1" id="sid-8316137A-D5C1-4148-8A3C-7D8758FC243A" isForCompensation="false" name="task2" startQuantity="1">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"/>
         </extensionElements>
         <incoming>sid-231C868B-35C9-44E9-A094-2979703FCE5B</incoming>
         <outgoing>sid-5D4170CB-6312-4B88-B16D-470272E68B62</outgoing>
      </task>
      <task completionQuantity="1" id="sid-B6D4CC3D-56A2-4FCB-A206-2B17F376504B" isForCompensation="false" name="task4" startQuantity="1">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"/>
         </extensionElements>
         <incoming>sid-38F53A4F-3170-4188-A626-62C54A0BEEE5</incoming>
         <outgoing>sid-3797E674-B054-4FBA-AEDE-015F6DF6A6E1</outgoing>
      </task>
      <endEvent id="sid-3F3056B7-FB22-4F14-996F-25DABF675F92" name="Ende">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"/>
         </extensionElements>
         <incoming>sid-3797E674-B054-4FBA-AEDE-015F6DF6A6E1</incoming>
      </endEvent>
      <sequenceFlow id="sid-5961A893-641D-4325-8300-40F9ED8913B7" name="" sourceRef="sid-E7CACDB0-840B-4811-84A1-E647070E00E5" targetRef="sid-557C4A5B-0C7F-4D03-A74E-E291523BCC84"/>
      <sequenceFlow id="sid-FDA1856E-A5AF-426B-AA7F-1478EE4C7D03" name="" sourceRef="sid-557C4A5B-0C7F-4D03-A74E-E291523BCC84" targetRef="sid-C84F890F-CF63-4DB0-9E0A-07C048282835"/>
      <sequenceFlow id="sid-1FD70E66-2D3A-4ECA-A0D5-D22AA973A37B" name="" sourceRef="sid-C84F890F-CF63-4DB0-9E0A-07C048282835" targetRef="sid-13A46CF6-677C-4E0A-B032-FAD6B183B2A6"/>
      <sequenceFlow id="sid-231C868B-35C9-44E9-A094-2979703FCE5B" name="" sourceRef="sid-C84F890F-CF63-4DB0-9E0A-07C048282835" targetRef="sid-8316137A-D5C1-4148-8A3C-7D8758FC243A"/>
      <sequenceFlow id="sid-41E72AC5-3884-4F29-A3FD-B7E958AAE9FC" name="" sourceRef="sid-13A46CF6-677C-4E0A-B032-FAD6B183B2A6" targetRef="sid-878C93C6-DFE4-4C73-9DDD-9E392471F5B9"/>
      <sequenceFlow id="sid-5D4170CB-6312-4B88-B16D-470272E68B62" name="" sourceRef="sid-8316137A-D5C1-4148-8A3C-7D8758FC243A" targetRef="sid-878C93C6-DFE4-4C73-9DDD-9E392471F5B9"/>
      <sequenceFlow id="sid-38F53A4F-3170-4188-A626-62C54A0BEEE5" name="" sourceRef="sid-878C93C6-DFE4-4C73-9DDD-9E392471F5B9" targetRef="sid-B6D4CC3D-56A2-4FCB-A206-2B17F376504B"/>
      <sequenceFlow id="sid-3797E674-B054-4FBA-AEDE-015F6DF6A6E1" name="" sourceRef="sid-B6D4CC3D-56A2-4FCB-A206-2B17F376504B" targetRef="sid-3F3056B7-FB22-4F14-996F-25DABF675F92"/>
   </process>
   <bpmndi:BPMNDiagram id="sid-f2a5ccae-b85a-4ffb-9b2c-b8ee1267cc30">
      <bpmndi:BPMNPlane bpmnElement="sid-7ab1fea3-d32a-48cd-9ca9-e19aa56ee2e0" id="sid-499c01c0-ad65-4145-af82-f2bd80d517e8">
         <bpmndi:BPMNShape bpmnElement="sid-E7CACDB0-840B-4811-84A1-E647070E00E5" id="sid-E7CACDB0-840B-4811-84A1-E647070E00E5_gui">
            <omgdc:Bounds height="30.0" width="30.0" x="149.0" y="190.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-557C4A5B-0C7F-4D03-A74E-E291523BCC84" id="sid-557C4A5B-0C7F-4D03-A74E-E291523BCC84_gui">
            <omgdc:Bounds height="80.0" width="100.0" x="224.0" y="165.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-C84F890F-CF63-4DB0-9E0A-07C048282835" id="sid-C84F890F-CF63-4DB0-9E0A-07C048282835_gui" isMarkerVisible="true">
            <omgdc:Bounds height="40.0" width="40.0" x="369.0" y="185.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-13A46CF6-677C-4E0A-B032-FAD6B183B2A6" id="sid-13A46CF6-677C-4E0A-B032-FAD6B183B2A6_gui">
            <omgdc:Bounds height="80.0" width="100.0" x="454.0" y="255.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-878C93C6-DFE4-4C73-9DDD-9E392471F5B9" id="sid-878C93C6-DFE4-4C73-9DDD-9E392471F5B9_gui" isMarkerVisible="true">
            <omgdc:Bounds height="40.0" width="40.0" x="615.0" y="185.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-8316137A-D5C1-4148-8A3C-7D8758FC243A" id="sid-8316137A-D5C1-4148-8A3C-7D8758FC243A_gui">
            <omgdc:Bounds height="80.0" width="100.0" x="454.0" y="75.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-B6D4CC3D-56A2-4FCB-A206-2B17F376504B" id="sid-B6D4CC3D-56A2-4FCB-A206-2B17F376504B_gui">
            <omgdc:Bounds height="80.0" width="100.0" x="700.0" y="165.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-3F3056B7-FB22-4F14-996F-25DABF675F92" id="sid-3F3056B7-FB22-4F14-996F-25DABF675F92_gui">
            <omgdc:Bounds height="28.0" width="28.0" x="845.0" y="191.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNEdge bpmnElement="sid-38F53A4F-3170-4188-A626-62C54A0BEEE5" id="sid-38F53A4F-3170-4188-A626-62C54A0BEEE5_gui">
            <omgdi:waypoint x="655.0" y="205.0"/>
            <omgdi:waypoint x="700.0" y="205.0"/>
         </bpmndi:BPMNEdge>
         <bpmndi:BPMNEdge bpmnElement="sid-1FD70E66-2D3A-4ECA-A0D5-D22AA973A37B" id="sid-1FD70E66-2D3A-4ECA-A0D5-D22AA973A37B_gui">
            <omgdi:waypoint x="389.0" y="225.0"/>
            <omgdi:waypoint x="389.5" y="295.0"/>
            <omgdi:waypoint x="454.0" y="295.0"/>
         </bpmndi:BPMNEdge>
         <bpmndi:BPMNEdge bpmnElement="sid-5961A893-641D-4325-8300-40F9ED8913B7" id="sid-5961A893-641D-4325-8300-40F9ED8913B7_gui">
            <omgdi:waypoint x="179.0" y="205.0"/>
            <omgdi:waypoint x="224.0" y="205.0"/>
         </bpmndi:BPMNEdge>
         <bpmndi:BPMNEdge bpmnElement="sid-231C868B-35C9-44E9-A094-2979703FCE5B" id="sid-231C868B-35C9-44E9-A094-2979703FCE5B_gui">
            <omgdi:waypoint x="389.0" y="185.0"/>
            <omgdi:waypoint x="389.5" y="115.0"/>
            <omgdi:waypoint x="454.0" y="115.0"/>
         </bpmndi:BPMNEdge>
         <bpmndi:BPMNEdge bpmnElement="sid-5D4170CB-6312-4B88-B16D-470272E68B62" id="sid-5D4170CB-6312-4B88-B16D-470272E68B62_gui">
            <omgdi:waypoint x="554.0" y="115.0"/>
            <omgdi:waypoint x="635.0" y="115.0"/>
            <omgdi:waypoint x="635.0" y="185.0"/>
         </bpmndi:BPMNEdge>
         <bpmndi:BPMNEdge bpmnElement="sid-3797E674-B054-4FBA-AEDE-015F6DF6A6E1" id="sid-3797E674-B054-4FBA-AEDE-015F6DF6A6E1_gui">
            <omgdi:waypoint x="800.0" y="205.0"/>
            <omgdi:waypoint x="845.0" y="205.0"/>
         </bpmndi:BPMNEdge>
         <bpmndi:BPMNEdge bpmnElement="sid-FDA1856E-A5AF-426B-AA7F-1478EE4C7D03" id="sid-FDA1856E-A5AF-426B-AA7F-1478EE4C7D03_gui">
            <omgdi:waypoint x="324.0" y="205.0"/>
            <omgdi:waypoint x="369.0" y="205.0"/>
         </bpmndi:BPMNEdge>
         <bpmndi:BPMNEdge bpmnElement="sid-41E72AC5-3884-4F29-A3FD-B7E958AAE9FC" id="sid-41E72AC5-3884-4F29-A3FD-B7E958AAE9FC_gui">
            <omgdi:waypoint x="554.0" y="295.0"/>
            <omgdi:waypoint x="635.5" y="295.0"/>
            <omgdi:waypoint x="635.0" y="225.0"/>
         </bpmndi:BPMNEdge>
      </bpmndi:BPMNPlane>
   </bpmndi:BPMNDiagram>
</definitions>

Is the only way to go to manually remove the diagram information?

thanks

Chris

Outcomes