JBoss Community

Re: How to get Multiple Instances work in jBPM Designer Version: 2.3.0.Final?

created by Martin Rindfleisch in jBPM - View the full discussion

ok, google would have been a solution for finding out how to create a issue, so far I agree with :D .

 

But, then clicking on the png button in the designer as you told me, a "save as" dialog appears and then I saved the process image on harddisk and then tried to store the process again the following eror occures:

 

Unable to perform user action due to error(s).

Validate your process before saving, and view server logs to see error details.

 

Server console:

 

15:26:30,021 ERROR [stderr] (http--0.0.0.0-8080-3) org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Unresolved reference 'missions'. (inputStream://dummyUriWithValidSuffix.xml, 26, 52)

15:26:30,022 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:83)

15:26:30,022 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:191)

15:26:30,022 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:180)

15:26:30,023 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1494)

15:26:30,023 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.jbpm.designer.web.profile.impl.JbpmProfileImpl.getDefinitions(JbpmProfileImpl.java:273)

15:26:30,024 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.jbpm.designer.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:252)

15:26:30,024 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.jbpm.designer.web.server.UUIDBasedRepositoryServlet.doPost(UUIDBasedRepositoryServlet.java:147)

15:26:30,025 ERROR [stderr] (http--0.0.0.0-8080-3)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

15:26:30,025 ERROR [stderr] (http--0.0.0.0-8080-3)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

15:26:30,025 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

15:26:30,026 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

15:26:30,026 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70)

15:26:30,026 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

15:26:30,027 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

15:26:30,027 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

15:26:30,028 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

15:26:30,029 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)

15:26:30,029 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)

15:26:30,029 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)

15:26:30,030 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

15:26:30,030 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

15:26:30,030 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

15:26:30,031 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

15:26:30,031 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)

15:26:30,032 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)

15:26:30,032 ERROR [stderr] (http--0.0.0.0-8080-3)      at java.lang.Thread.run(Thread.java:662)

15:26:30,033 ERROR [stderr] (http--0.0.0.0-8080-3) Caused by: org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved reference 'missions'. (inputStream://dummyUriWithValidSuffix.xml, 26, 52)

15:26:30,033 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardReferences(XMLHandler.java:1154)

15:26:30,033 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHandler.java:1228)

15:26:30,033 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)

15:26:30,034 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)

15:26:30,034 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)

15:26:30,034 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)

15:26:30,035 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)

15:26:30,035 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source)

15:26:30,036 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

15:26:30,037 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

15:26:30,037 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

15:26:30,037 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

15:26:30,038 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

15:26:30,038 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

15:26:30,038 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

15:26:30,039 ERROR [stderr] (http--0.0.0.0-8080-3)      at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:181)

15:26:30,039 ERROR [stderr] (http--0.0.0.0-8080-3)      ... 24 more

15:26:30,040 SCHWERWIEGEND [org.jbpm.designer.web.profile.impl.JbpmProfileImpl] (http--0.0.0.0-8080-3) null: java.lang.NullPointerException

        at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:204) [classes:]

        at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:160) [classes:]

        at org.jbpm.designer.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:252) [classes:]

        at org.jbpm.designer.web.server.UUIDBasedRepositoryServlet.doPost(UUIDBasedRepositoryServlet.java:147) [classes:]

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

        at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70) [classes:]

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]

        at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

        at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

 

 

And then I triggered the "validate process" causes "There are no validation errors".

So I'm not able to store the process with the node "multiple Instances" and given parameter values for "CollectionExpression" and "Variable Name".

 

My bpmn2 xml file:

 

<?xml version="1.0" encoding="UTF-8"?>

<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/bpmn20" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" id="_2sXCcAcUEeKpaKt7hdtWKQ" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" expressionLanguage="http://www.mvel.org/2.0" targetNamespace="http://www.omg.org/bpmn20" typeLanguage="http://www.java.com/javaTypes">

  <bpmn2:itemDefinition id="_listItem" structureRef="java.util.List"/>

  <bpmn2:itemDefinition id="_764C9F98-2795-4025-AEB7-BF83B6E04722_multiInstanceItemType"/>

  <bpmn2:process id="demo.zut" drools:packageName="demo" name="Multiple instances sub-process" isExecutable="true">

    <bpmn2:property id="list" itemSubjectRef="_listItem"/>

    <bpmn2:endEvent id="_85430AD8-A652-402F-9018-7F9FB1555F2F" drools:bgcolor="#ff6347" drools:selectable="true" name="">

      <bpmn2:incoming>_656DB153-C821-4A49-82FA-08A8A085BF8C</bpmn2:incoming>

    </bpmn2:endEvent>

    <bpmn2:sequenceFlow id="_656DB153-C821-4A49-82FA-08A8A085BF8C" drools:bgcolor="#000000" drools:selectable="true" sourceRef="_764C9F98-2795-4025-AEB7-BF83B6E04722" targetRef="_85430AD8-A652-402F-9018-7F9FB1555F2F"/>

    <bpmn2:startEvent id="_09E5E565-8815-4861-9872-1574BDC6A0B3" drools:bgcolor="#9acd32" drools:selectable="true" name="">

      <bpmn2:outgoing>_25892AD3-FB12-42D7-87B6-DF7DEC376454</bpmn2:outgoing>

    </bpmn2:startEvent>

    <bpmn2:sequenceFlow id="_25892AD3-FB12-42D7-87B6-DF7DEC376454" drools:bgcolor="#000000" drools:selectable="true" sourceRef="_09E5E565-8815-4861-9872-1574BDC6A0B3" targetRef="_764C9F98-2795-4025-AEB7-BF83B6E04722"/>

    <bpmn2:subProcess id="_764C9F98-2795-4025-AEB7-BF83B6E04722" drools:selectable="true" name="">

      <bpmn2:incoming>_25892AD3-FB12-42D7-87B6-DF7DEC376454</bpmn2:incoming>

      <bpmn2:outgoing>_656DB153-C821-4A49-82FA-08A8A085BF8C</bpmn2:outgoing>

      <bpmn2:ioSpecification id="_2sXpgAcUEeKpaKt7hdtWKQ">

        <bpmn2:dataInput id="_764C9F98-2795-4025-AEB7-BF83B6E04722_input" name="MultiInstanceInput"/>

        <bpmn2:inputSet id="_2sXpgQcUEeKpaKt7hdtWKQ">

          <bpmn2:dataInputRefs>_764C9F98-2795-4025-AEB7-BF83B6E04722_input</bpmn2:dataInputRefs>

        </bpmn2:inputSet>

        <bpmn2:outputSet id="_2sXpggcUEeKpaKt7hdtWKQ"/>

      </bpmn2:ioSpecification>

      <bpmn2:dataInputAssociation id="_2sXpgwcUEeKpaKt7hdtWKQ">

        <bpmn2:sourceRef>missions</bpmn2:sourceRef>

        <bpmn2:targetRef>_764C9F98-2795-4025-AEB7-BF83B6E04722_input</bpmn2:targetRef>

      </bpmn2:dataInputAssociation>

      <bpmn2:multiInstanceLoopCharacteristics id="_2sXphAcUEeKpaKt7hdtWKQ">

        <bpmn2:loopDataInputRef>_764C9F98-2795-4025-AEB7-BF83B6E04722_input</bpmn2:loopDataInputRef>

        <bpmn2:inputDataItem xsi:type="bpmn2:tDataInput" id="mission" itemSubjectRef="_764C9F98-2795-4025-AEB7-BF83B6E04722_multiInstanceItemType"/>

      </bpmn2:multiInstanceLoopCharacteristics>

    </bpmn2:subProcess>

  </bpmn2:process>

  <bpmndi:BPMNDiagram id="_2sXphQcUEeKpaKt7hdtWKQ">

    <bpmndi:BPMNPlane id="_2sXphgcUEeKpaKt7hdtWKQ" bpmnElement="demo.zut">

      <bpmndi:BPMNShape id="_2sXphwcUEeKpaKt7hdtWKQ" bpmnElement="_85430AD8-A652-402F-9018-7F9FB1555F2F">

        <dc:Bounds height="28.0" width="28.0" x="523.0" y="148.0"/>

      </bpmndi:BPMNShape>

      <bpmndi:BPMNEdge id="_2sXpiAcUEeKpaKt7hdtWKQ" bpmnElement="_656DB153-C821-4A49-82FA-08A8A085BF8C">

        <di:waypoint xsi:type="dc:Point" x="325.0" y="200.0"/>

        <di:waypoint xsi:type="dc:Point" x="475.0" y="200.0"/>

        <di:waypoint xsi:type="dc:Point" x="475.0" y="164.0"/>

        <di:waypoint xsi:type="dc:Point" x="537.0" y="162.0"/>

      </bpmndi:BPMNEdge>

      <bpmndi:BPMNShape id="_2sXpiQcUEeKpaKt7hdtWKQ" bpmnElement="_09E5E565-8815-4861-9872-1574BDC6A0B3">

        <dc:Bounds height="30.0" width="30.0" x="48.0" y="127.0"/>

      </bpmndi:BPMNShape>

      <bpmndi:BPMNEdge id="_2sXpigcUEeKpaKt7hdtWKQ" bpmnElement="_25892AD3-FB12-42D7-87B6-DF7DEC376454">

        <di:waypoint xsi:type="dc:Point" x="63.0" y="142.0"/>

        <di:waypoint xsi:type="dc:Point" x="151.0" y="142.0"/>

        <di:waypoint xsi:type="dc:Point" x="151.0" y="200.0"/>

        <di:waypoint xsi:type="dc:Point" x="325.0" y="200.0"/>

      </bpmndi:BPMNEdge>

      <bpmndi:BPMNShape id="_2sXpiwcUEeKpaKt7hdtWKQ" bpmnElement="_764C9F98-2795-4025-AEB7-BF83B6E04722">

        <dc:Bounds height="160.0" width="200.0" x="225.0" y="120.0"/>

      </bpmndi:BPMNShape>

    </bpmndi:BPMNPlane>

  </bpmndi:BPMNDiagram>

</bpmn2:definitions>

Reply to this message by going to Community

Start a new discussion in jBPM at Community