cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot deploy diagram with swimlane inside to engine 5.3

hery1
Champ in-the-making
Champ in-the-making
Hi,

I used the activiti modeler based on signavio to draw a simple diagram with a swim lane inside the diagram but the resulting bpmn20.xml file cannot be deployed on the engine version 5.3.
Please see the attachment for the screenshot of the 2 diagrams (with and without swimlane) and the exception message.

This is the resulting diagram bpmn20.xml file

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn" 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="" id="sid-09ba8bdd-a419-4674-b78a-f6c99744d08c" targetNamespace="http://www.signavio.com/bpmn20" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/2.0/20100501/BPMN20.xsd">
   <process id="testActiviti53Key" isClosed="false" isExecutable="false" name="testActiviti53" processType="None">
      <laneSet id="sid-34a111c9-158c-466b-a204-0eb1cb5a47d0">
         <lane id="sid-5BE82672-BF71-462F-B3BD-2103379D1D68">
            <extensionElements>
               <signavio:signavioMetaData metaKey="bgcolor" metaValue=""/>
            </extensionElements>
            <flowNodeRef>sid-61BF5017-7D15-47F6-8EAC-A478EB9A05D2</flowNodeRef>
            <flowNodeRef>sid-F576E162-50A0-4202-A77C-8E9D2949EB35</flowNodeRef>
            <flowNodeRef>sid-4D1BC5C4-02B2-41FB-BF14-57CDD6402663</flowNodeRef>
            <flowNodeRef>sid-BF68F82D-D515-4642-994E-B668C7D5D9EA</flowNodeRef>
         </lane>
      </laneSet>
      <manualTask id="sid-61BF5017-7D15-47F6-8EAC-A478EB9A05D2" isForCompensation="false" name="manual task">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"/>
         </extensionElements>
         <incoming>sid-E34FF502-AC6F-4BF4-B6B0-8BB5237CC7AC</incoming>
         <outgoing>sid-BC778E85-AB5A-42F9-A4C9-C4BE5D7603B2</outgoing>
      </manualTask>
      <userTask activiti:formKey="" id="sid-F576E162-50A0-4202-A77C-8E9D2949EB35" isForCompensation="false" name="task 1">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"/>
         </extensionElements>
         <incoming>sid-BC778E85-AB5A-42F9-A4C9-C4BE5D7603B2</incoming>
         <outgoing>sid-48CFAC5E-C78E-44C4-AF19-2481CCAF3835</outgoing>
         <potentialOwner id="sid-f013eee9-619a-4b97-95b2-94ca7ad66c72">
            <resourceAssignmentExpression id="sid-a79085b5-a848-4bbe-9e5a-0d6b9cd93a9a">
               <formalExpression id="sid-7114c64a-60c6-45f3-b49f-53c11984ada0">group(management)</formalExpression>
            </resourceAssignmentExpression>
         </potentialOwner>
      </userTask>
      <endEvent id="sid-4D1BC5C4-02B2-41FB-BF14-57CDD6402663" name="">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"/>
         </extensionElements>
         <incoming>sid-48CFAC5E-C78E-44C4-AF19-2481CCAF3835</incoming>
      </endEvent>
      <startEvent id="sid-BF68F82D-D515-4642-994E-B668C7D5D9EA" name="">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"/>
         </extensionElements>
         <outgoing>sid-E34FF502-AC6F-4BF4-B6B0-8BB5237CC7AC</outgoing>
      </startEvent>
      <sequenceFlow id="sid-E34FF502-AC6F-4BF4-B6B0-8BB5237CC7AC" name="" sourceRef="sid-BF68F82D-D515-4642-994E-B668C7D5D9EA" targetRef="sid-61BF5017-7D15-47F6-8EAC-A478EB9A05D2"/>
      <sequenceFlow id="sid-48CFAC5E-C78E-44C4-AF19-2481CCAF3835" name="" sourceRef="sid-F576E162-50A0-4202-A77C-8E9D2949EB35" targetRef="sid-4D1BC5C4-02B2-41FB-BF14-57CDD6402663"/>
      <sequenceFlow id="sid-BC778E85-AB5A-42F9-A4C9-C4BE5D7603B2" name="" sourceRef="sid-61BF5017-7D15-47F6-8EAC-A478EB9A05D2" targetRef="sid-F576E162-50A0-4202-A77C-8E9D2949EB35"/>
   </process>
   <collaboration id="sid-f96018c8-2e82-4e5a-86d2-140d8ea96734">
      <participant id="sid-24F68080-7675-4C2C-B078-DD0ED77D8BBF" name="poolname" processRef="testActiviti53Key">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"/>
         </extensionElements>
      </participant>
   </collaboration>
   <bpmndi:BPMNDiagram id="sid-8a52ec7a-9438-4e14-804f-1c5a045d9a97">
      <bpmndi:BPMNPlane bpmnElement="sid-f96018c8-2e82-4e5a-86d2-140d8ea96734" id="sid-40d84498-6e3a-461b-890b-8772f50a14e0">
         <bpmndi:BPMNShape bpmnElement="sid-5BE82672-BF71-462F-B3BD-2103379D1D68" id="sid-5BE82672-BF71-462F-B3BD-2103379D1D68_gui" isHorizontal="true">
            <omgdc:Bounds height="250.0" width="570.0" x="135.0" y="165.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-61BF5017-7D15-47F6-8EAC-A478EB9A05D2" id="sid-61BF5017-7D15-47F6-8EAC-A478EB9A05D2_gui">
            <omgdc:Bounds height="80.0" width="100.0" x="294.0" y="255.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-F576E162-50A0-4202-A77C-8E9D2949EB35" id="sid-F576E162-50A0-4202-A77C-8E9D2949EB35_gui">
            <omgdc:Bounds height="80.0" width="100.0" x="443.0" y="255.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-4D1BC5C4-02B2-41FB-BF14-57CDD6402663" id="sid-4D1BC5C4-02B2-41FB-BF14-57CDD6402663_gui">
            <omgdc:Bounds height="28.0" width="28.0" x="593.0" y="281.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-BF68F82D-D515-4642-994E-B668C7D5D9EA" id="sid-BF68F82D-D515-4642-994E-B668C7D5D9EA_gui">
            <omgdc:Bounds height="30.0" width="30.0" x="219.0" y="280.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-24F68080-7675-4C2C-B078-DD0ED77D8BBF" id="sid-24F68080-7675-4C2C-B078-DD0ED77D8BBF_gui" isHorizontal="false">
            <omgdc:Bounds height="250.0" width="600.0" x="105.0" y="165.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNEdge bpmnElement="sid-E34FF502-AC6F-4BF4-B6B0-8BB5237CC7AC" id="sid-E34FF502-AC6F-4BF4-B6B0-8BB5237CC7AC_gui">
            <omgdi:waypoint x="249.0" y="295.0"/>
            <omgdi:waypoint x="294.0" y="295.0"/>
         </bpmndi:BPMNEdge>
         <bpmndi:BPMNEdge bpmnElement="sid-BC778E85-AB5A-42F9-A4C9-C4BE5D7603B2" id="sid-BC778E85-AB5A-42F9-A4C9-C4BE5D7603B2_gui">
            <omgdi:waypoint x="394.0" y="295.0"/>
            <omgdi:waypoint x="443.0" y="295.0"/>
         </bpmndi:BPMNEdge>
         <bpmndi:BPMNEdge bpmnElement="sid-48CFAC5E-C78E-44C4-AF19-2481CCAF3835" id="sid-48CFAC5E-C78E-44C4-AF19-2481CCAF3835_gui">
            <omgdi:waypoint x="543.0" y="295.0"/>
            <omgdi:waypoint x="593.0" y="295.0"/>
         </bpmndi:BPMNEdge>
      </bpmndi:BPMNPlane>
   </bpmndi:BPMNDiagram>
</definitions>

This is the diagram bpmn20.xml file without swimlane. It can be deployed just fine and started just fine.

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn" 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="" id="sid-866fc2ee-1202-443f-90b0-046223c91655" targetNamespace="http://www.signavio.com/bpmn20" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/2.0/20100501/BPMN20.xsd">
   <process id="testActiviti53Key" isExecutable="false" name="testActiviti53">
      <manualTask id="sid-61BF5017-7D15-47F6-8EAC-A478EB9A05D2" isForCompensation="false" name="manual task">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"/>
         </extensionElements>
         <incoming>sid-E34FF502-AC6F-4BF4-B6B0-8BB5237CC7AC</incoming>
         <outgoing>sid-BC778E85-AB5A-42F9-A4C9-C4BE5D7603B2</outgoing>
      </manualTask>
      <startEvent id="sid-BF68F82D-D515-4642-994E-B668C7D5D9EA" name="">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"/>
         </extensionElements>
         <outgoing>sid-E34FF502-AC6F-4BF4-B6B0-8BB5237CC7AC</outgoing>
      </startEvent>
      <userTask activiti:formKey="" id="sid-F576E162-50A0-4202-A77C-8E9D2949EB35" isForCompensation="false" name="task 1">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"/>
         </extensionElements>
         <incoming>sid-BC778E85-AB5A-42F9-A4C9-C4BE5D7603B2</incoming>
         <outgoing>sid-48CFAC5E-C78E-44C4-AF19-2481CCAF3835</outgoing>
         <potentialOwner id="sid-d7d447b9-dfc9-4605-92d8-5a23c5abb808">
            <resourceAssignmentExpression id="sid-34feb416-7d58-44cd-a8e6-0cf98fecdd5c">
               <formalExpression id="sid-a0510528-ae48-4803-9fa1-060c25121985">group(management)</formalExpression>
            </resourceAssignmentExpression>
         </potentialOwner>
      </userTask>
      <endEvent id="sid-4D1BC5C4-02B2-41FB-BF14-57CDD6402663" name="">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"/>
         </extensionElements>
         <incoming>sid-48CFAC5E-C78E-44C4-AF19-2481CCAF3835</incoming>
      </endEvent>
      <sequenceFlow id="sid-E34FF502-AC6F-4BF4-B6B0-8BB5237CC7AC" name="" sourceRef="sid-BF68F82D-D515-4642-994E-B668C7D5D9EA" targetRef="sid-61BF5017-7D15-47F6-8EAC-A478EB9A05D2"/>
      <sequenceFlow id="sid-48CFAC5E-C78E-44C4-AF19-2481CCAF3835" name="" sourceRef="sid-F576E162-50A0-4202-A77C-8E9D2949EB35" targetRef="sid-4D1BC5C4-02B2-41FB-BF14-57CDD6402663"/>
      <sequenceFlow id="sid-BC778E85-AB5A-42F9-A4C9-C4BE5D7603B2" name="" sourceRef="sid-61BF5017-7D15-47F6-8EAC-A478EB9A05D2" targetRef="sid-F576E162-50A0-4202-A77C-8E9D2949EB35"/>
   </process>
   <bpmndi:BPMNDiagram id="sid-22575a87-0fdd-4232-9212-3e70c0e170e5">
      <bpmndi:BPMNPlane bpmnElement="testActiviti53Key" id="sid-38e0ef2b-a4b8-4e9c-b296-377626b55c0e">
         <bpmndi:BPMNShape bpmnElement="sid-61BF5017-7D15-47F6-8EAC-A478EB9A05D2" id="sid-61BF5017-7D15-47F6-8EAC-A478EB9A05D2_gui">
            <omgdc:Bounds height="80.0" width="100.0" x="435.0" y="180.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-BF68F82D-D515-4642-994E-B668C7D5D9EA" id="sid-BF68F82D-D515-4642-994E-B668C7D5D9EA_gui">
            <omgdc:Bounds height="30.0" width="30.0" x="360.0" y="205.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-F576E162-50A0-4202-A77C-8E9D2949EB35" id="sid-F576E162-50A0-4202-A77C-8E9D2949EB35_gui">
            <omgdc:Bounds height="80.0" width="100.0" x="584.0" y="180.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-4D1BC5C4-02B2-41FB-BF14-57CDD6402663" id="sid-4D1BC5C4-02B2-41FB-BF14-57CDD6402663_gui">
            <omgdc:Bounds height="28.0" width="28.0" x="734.0" y="206.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNEdge bpmnElement="sid-E34FF502-AC6F-4BF4-B6B0-8BB5237CC7AC" id="sid-E34FF502-AC6F-4BF4-B6B0-8BB5237CC7AC_gui">
            <omgdi:waypoint x="390.0" y="220.0"/>
            <omgdi:waypoint x="435.0" y="220.0"/>
         </bpmndi:BPMNEdge>
         <bpmndi:BPMNEdge bpmnElement="sid-BC778E85-AB5A-42F9-A4C9-C4BE5D7603B2" id="sid-BC778E85-AB5A-42F9-A4C9-C4BE5D7603B2_gui">
            <omgdi:waypoint x="535.0" y="220.0"/>
            <omgdi:waypoint x="584.0" y="220.0"/>
         </bpmndi:BPMNEdge>
         <bpmndi:BPMNEdge bpmnElement="sid-48CFAC5E-C78E-44C4-AF19-2481CCAF3835" id="sid-48CFAC5E-C78E-44C4-AF19-2481CCAF3835_gui">
            <omgdi:waypoint x="684.0" y="220.0"/>
            <omgdi:waypoint x="734.0" y="220.0"/>
         </bpmndi:BPMNEdge>
      </bpmndi:BPMNPlane>
   </bpmndi:BPMNDiagram>
</definitions>

My question is, is there anything wrong with the xml files generated?
I keep comparing the xml file with the xml in section 7.1.2 from the pdf available from http://www.omg.org/cgi-bin/doc?dtc/10-06-02 but I don't see anything wrong…
Note that the activiti modeler that I used is customized a little bit. But still, I don't see anything wrong with the xml file so it doesn't seem that the customization is the cause of error.

Or is it because the activiti engine currently does not support the existence of swimlane?
8 REPLIES 8

jbarrez
Star Contributor
Star Contributor
This is presumably a bug. I created an isse for it: http://jira.codehaus.org/browse/ACT-738

I suspect that it's due to the following: the engine ignors the swimlanes, as it has no execution meaning.
However, the BPMN diagram interchange does refer to it, hence the exception.

Thank you for the excellent explanation. This is how bug reports should be (including the research where you tried it without the swimlanes) !

hery1
Champ in-the-making
Champ in-the-making
Thanks for filing the bug.
I will try again after the v5.5 engine is released.

simonetogno
Champ in-the-making
Champ in-the-making
Hello, I resume this post because i have the same problem with the 5.5 engine version.
Isn't this bug already fixed?

Regards
Simone

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
the issue referred to is still open, so it is clearly not fixed

udoderk
Champ in-the-making
Champ in-the-making
Hi,

I used the activiti modeler based on signavio to draw a simple diagram with a swim lane inside the diagram but the resulting bpmn20.xml file cannot be deployed on the engine version 5.3…..My question is, is there anything wrong with the xml files generated?
I keep comparing the xml file with the xml in section 7.1.2 from the pdf available from http://www.omg.org/cgi-bin/doc?dtc/10-06-02 but I don't see anything wrong…
Note that the activiti modeler that I used is customized a little bit. But still, I don't see anything wrong with the xml file so it doesn't seem that the customization is the cause of error.

Or is it because the activiti engine currently does not support the existence of swimlane?

I also have a problem with activiti 5.10, if I use this XML file and activiti explorer to deploy: but it' seems, that other exception will be thrown:NullPointerException.
I looked at JIRA (Activiti, ACT-738), this swimlane-Bug has the status Resolved , but the fix has no info about release, only Fix Version/s: Sooner..

P.S
The exception stack trace
java.lang.NullPointerException
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseBPMNEdge(BpmnParse.java:3059)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseBPMNPlane(BpmnParse.java:2995)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseBPMNDiagram(BpmnParse.java:2976)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseDiagramInterchangeElements(BpmnParse.java:2967)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseRootElement(BpmnParse.java:261)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:228)
        at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:90)
        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:59)
        at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:31)
        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.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:42)
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
        at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40)
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
        at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:54)
        at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:106)
        at org.activiti.explorer.ui.management.deployment.DeploymentUploadReceiver.deployUploadedFile(DeploymentUploadReceiver.java:83)
        at org.activiti.explorer.ui.management.deployment.DeploymentUploadReceiver.uploadFinished(DeploymentUploadReceiver.java:71)
        at org.activiti.explorer.ui.custom.UploadComponent.uploadFinished(UploadComponent.java:173)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:490)
        at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
        at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1193)
        at com.vaadin.ui.Upload.fireUploadSuccess(Upload.java:744)
        at com.vaadin.ui.Upload$1.streamingFinished(Upload.java:1022)
        at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.streamToReceiver(AbstractCommunicationManager.java:593)
        at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleSimpleMultipartFileUpload(AbstractCommunicationManager.java:469)
        at com.vaadin.terminal.gwt.server.CommunicationManager.handleFileUpload(CommunicationManager.java:257)
        at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:495)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:722)

frederikherema1
Star Contributor
Star Contributor
Can you post the XML you're referring to in a code-block? Or perhaps attach it to the existing issue and reopen, if your problem remains…

jtrask1
Champ in-the-making
Champ in-the-making
Can you tell me if the import issue with swimlanes has been resolved? 

jtrask1
Champ in-the-making
Champ in-the-making
Also is there a workaround to this import issue with swimlanes?