1 2 Previous Next 19 Replies Latest reply on Nov 9, 2011 10:34 AM by ronniespike63

    drools-guvnor: build package failures

    tomarenz

      Hi, I imported several process definition examples from Eclipse into Guvnor: Looping, HumanTask, BPMN2-ExclusiveSplit, BPMN2-gatewayTest, besides having already my own test example.

       

      First of all, this was a two step sequence since after a couple of imports, processes were listed but their opening showed an empty panel till I got a jboss outOfMemory error. Then the usual jboss stop/restart.

       

      Then I run build package for the defaultPackage and I got several errors for all processes.

      The common one is "unable to parse xml : Exception class java.lang.IllegalArgumentException : No interfaces found".

      Another one is "unable to parse xml : Exception class org.drools.RuntimeDroolsException : invalid package name".

       

      Indeed the package property was com.sample, so I turned it into defaultPackage. This raised other errors, such as "Parser returned a null Package", and "[ERR 102] Line 12:13 mismatched input 'true' in rule "RuleFlow-Split-com.sample.looping-4-5-DROOLS_DEFAULT"".

       

      Basically I'm totally lost with the designer.

        • 1. Re: drools-guvnor: build package failures
          tsurdilovic

          Hi Renzo, what version of Designer are you deploying? I just opened all the above mentioned processes with latest Designer version 1.0.0.054 which you can get from sourceforge: http://sourceforge.net/projects/jbpm/files/designer/ and all of them open up fine in guvnor and also fully round-trip.

          Most likely you are using an older Designer version. If you are using jbpm-installer you can change the version of designer in build.properties:

           

          designer.version=1.0.0.054-jboss

          designer.url=http://sourceforge.net/projects/jbpm/files/designer/designer-1.0.0.054/

           

          then delete the designer war in $jbpm-installer-dir/lib directory and run

          ant clean.demo

          ant install.demo

          ant start.demo

           

          Hope this helps.

          • 2. Re: drools-guvnor: build package failures
            tsurdilovic

            In order to build the package your processes are in (in Guvnor) you have to set the correct package attribute to your process, otherwise the package will not build. Since your Guvnor package you are uploading the processes into is most likely not the same name as what the processes you are uploading have defined (since they are from jbpm examples module) you would need to open the process in Designer, locate the packages attribute for the process and change it to the name of the guvnor package it is in now.

            • 3. Re: drools-guvnor: build package failures
              tomarenz

              I'm using designer 1.0.0.0.54  (25.579.520 bytes).

              Imported processes open ok, it's just that building the package that raises errors.

              Also I guess that installing an update requires changing designer.version/url in build.properties.

               

              Btw, the "no interfaces found" error occurs also for a simple test process created by the designer itself.

               

              About the package name: should it be "defaultPackage" (to have console visibility) or anything else ? I tried that name (since it's where I imported processes) but I got even more errors as reported in my initial post.

              • 4. Re: drools-guvnor: build package failures
                tsurdilovic

                Can you paste the bpmn2 of your simple process you created with Designer that creates the "no interfaces found" error (while working on the process you can view it's source in the Guvnor tab go to Source->View Source)?

                 

                jbpm-console currently looks at defaultPackage only. You would have to put all your processes in Guvnor's defaultPackage and make sure your processes specify the same in the package attribute. Ability for jbpm-console to look up processes in all packages has just been added in master via https://issues.jboss.org/browse/JBPM-3320.

                • 5. Re: drools-guvnor: build package failures
                  tomarenz

                  Here it is:

                   

                  1.|<?xml version="1.0" encoding="UTF-8"?>
                  2.|<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="d5f9e478-8058-4d4e-8504-be7296369193" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" name="boh" targetNamespace="http://www.omg.org/bpmn20">
                  3.|  <bpmn2:itemDefinition id="_actionItem"/>
                  4.|  <bpmn2:process id="id1" drools:packageName="defaultPackage" name="boh" isExecutable="true">
                  5.|    <bpmn2:startEvent id="_42604FA3-D4F2-4959-9AC5-3F4A3B4EFA9A" name="start">
                  6.|      <bpmn2:outgoing>_D4C91BAA-FCBD-4438-8133-B832A5AE0A67</bpmn2:outgoing>
                  7.|    </bpmn2:startEvent>
                  8.|    <bpmn2:task id="_D243EE5C-3426-4B2C-9A84-288439CDCFA8" name="a">
                  9.|      <bpmn2:incoming>_D4C91BAA-FCBD-4438-8133-B832A5AE0A67</bpmn2:incoming>
                  10.|      <bpmn2:outgoing>_661C4E9B-EC0C-4C97-A526-D46DDEAF4CF1</bpmn2:outgoing>
                  11.|    </bpmn2:task>
                  12.| <bpmn2:sequenceFlow id="_D4C91BAA-FCBD-4438-8133-B832A5AE0A67" sourceRef="_42604FA3-D4F2-4959-9AC5-3F4A3B4EFA9A" targetRef="_D243EE5C-3426-4B2C-9A84-288439CDCFA8"/>
                  13.|    <bpmn2:exclusiveGateway id="_462B98D3-70C9-4C20-A5BA-E0DD5DCF7847" name="" gatewayDirection="Diverging">
                  14.|      <bpmn2:incoming>_661C4E9B-EC0C-4C97-A526-D46DDEAF4CF1</bpmn2:incoming>
                  15.|      <bpmn2:outgoing>_63A633EF-A173-4EC2-8B0A-9F604FD8CE0E</bpmn2:outgoing>
                  16.|      <bpmn2:outgoing>_C462E146-5CB0-4E7B-865F-B5E10501CCFD</bpmn2:outgoing>
                  17.|    </bpmn2:exclusiveGateway>
                  18.| <bpmn2:sequenceFlow id="_661C4E9B-EC0C-4C97-A526-D46DDEAF4CF1" sourceRef="_D243EE5C-3426-4B2C-9A84-288439CDCFA8" targetRef="_462B98D3-70C9-4C20-A5BA-E0DD5DCF7847"/>
                  19.|    <bpmn2:serviceTask id="_A40CA790-6E65-4558-9B27-6EF5A117FF36" name="b1">
                  20.|      <bpmn2:incoming>_63A633EF-A173-4EC2-8B0A-9F604FD8CE0E</bpmn2:incoming>
                  21.|      <bpmn2:outgoing>_B054E847-DD47-4AAC-9FDB-B974E68C62D1</bpmn2:outgoing>
                  22.|    </bpmn2:serviceTask>
                  23.| <bpmn2:sequenceFlow id="_63A633EF-A173-4EC2-8B0A-9F604FD8CE0E" name="isB1" sourceRef="_462B98D3-70C9-4C20-A5BA-E0DD5DCF7847" targetRef="_A40CA790-6E65-4558-9B27-6EF5A117FF36">
                  24.| <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="_F5IhUMHhEeCvq_lrZ2FTdA" language="http://www.jboss.org/drools/rule">return action.equals(&quot;b1&quot;);</bpmn2:conditionExpression>
                  25.|    </bpmn2:sequenceFlow>
                  26.|    <bpmn2:serviceTask id="_CC9E566C-A6BB-4CCA-B3EF-BDF663031602" name="b2">
                  27.|      <bpmn2:incoming>_C462E146-5CB0-4E7B-865F-B5E10501CCFD</bpmn2:incoming>
                  28.|      <bpmn2:outgoing>_34FF5548-A7BF-431F-8767-1BF5131945FC</bpmn2:outgoing>
                  29.|    </bpmn2:serviceTask>
                  30.| <bpmn2:sequenceFlow id="_C462E146-5CB0-4E7B-865F-B5E10501CCFD" name="isB2" sourceRef="_462B98D3-70C9-4C20-A5BA-E0DD5DCF7847" targetRef="_CC9E566C-A6BB-4CCA-B3EF-BDF663031602">
                  31.| <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="_F5IhUcHhEeCvq_lrZ2FTdA" language="http://www.jboss.org/drools/rule">return action.equals(&quot;b2&quot;);</bpmn2:conditionExpression>
                  32.|    </bpmn2:sequenceFlow>
                  33.|    <bpmn2:exclusiveGateway id="_9206C9B4-0BF4-474B-BF4C-62FB22620F82" name="" gatewayDirection="Converging">
                  34.|      <bpmn2:incoming>_34FF5548-A7BF-431F-8767-1BF5131945FC</bpmn2:incoming>
                  35.|      <bpmn2:incoming>_B054E847-DD47-4AAC-9FDB-B974E68C62D1</bpmn2:incoming>
                  36.|      <bpmn2:outgoing>_F6C0D4D2-8E5F-40CF-ABE3-F3396EC82929</bpmn2:outgoing>
                  37.|    </bpmn2:exclusiveGateway>
                  38.| <bpmn2:sequenceFlow id="_B054E847-DD47-4AAC-9FDB-B974E68C62D1" sourceRef="_A40CA790-6E65-4558-9B27-6EF5A117FF36" targetRef="_9206C9B4-0BF4-474B-BF4C-62FB22620F82"/>
                  39.| <bpmn2:sequenceFlow id="_34FF5548-A7BF-431F-8767-1BF5131945FC" sourceRef="_CC9E566C-A6BB-4CCA-B3EF-BDF663031602" targetRef="_9206C9B4-0BF4-474B-BF4C-62FB22620F82"/>
                  40.|    <bpmn2:task id="_4BFD9A64-46AE-496D-B016-5FB488D189EA" name="c">
                  41.|      <bpmn2:incoming>_F6C0D4D2-8E5F-40CF-ABE3-F3396EC82929</bpmn2:incoming>
                  42.|      <bpmn2:outgoing>_1FF5125C-F465-468F-99FE-CDA8385E6BB7</bpmn2:outgoing>
                  43.|    </bpmn2:task>
                  44.| <bpmn2:sequenceFlow id="_F6C0D4D2-8E5F-40CF-ABE3-F3396EC82929" sourceRef="_9206C9B4-0BF4-474B-BF4C-62FB22620F82" targetRef="_4BFD9A64-46AE-496D-B016-5FB488D189EA"/>
                  45.|    <bpmn2:endEvent id="_2EAFE64F-213A-4B50-81CA-241843125A91" name="end">
                  46.|      <bpmn2:incoming>_1FF5125C-F465-468F-99FE-CDA8385E6BB7</bpmn2:incoming>
                  47.|    </bpmn2:endEvent>
                  48.| <bpmn2:sequenceFlow id="_1FF5125C-F465-468F-99FE-CDA8385E6BB7" sourceRef="_4BFD9A64-46AE-496D-B016-5FB488D189EA" targetRef="_2EAFE64F-213A-4B50-81CA-241843125A91"/>
                  49.|    <bpmn2:property id="action" itemSubjectRef="_actionItem"/>
                  50.|  </bpmn2:process>
                  51.|  <bpmndi:BPMNDiagram id="_F5IhUsHhEeCvq_lrZ2FTdA">
                  52.|    <bpmndi:BPMNPlane id="_F5IhU8HhEeCvq_lrZ2FTdA" bpmnElement="id1">
                  53.|      <bpmndi:BPMNShape id="_F5IhVMHhEeCvq_lrZ2FTdA" bpmnElement="_42604FA3-D4F2-4959-9AC5-3F4A3B4EFA9A">
                  54.|        <dc:Bounds height="30.0" width="30.0" x="66.0" y="226.0"/>
                  55.|      </bpmndi:BPMNShape>
                  56.|      <bpmndi:BPMNShape id="_F5IhVcHhEeCvq_lrZ2FTdA" bpmnElement="_D243EE5C-3426-4B2C-9A84-288439CDCFA8">
                  57.|        <dc:Bounds height="80.0" width="100.0" x="141.0" y="201.0"/>
                  58.|      </bpmndi:BPMNShape>
                  59.|      <bpmndi:BPMNEdge id="_F5IhVsHhEeCvq_lrZ2FTdA" bpmnElement="_D4C91BAA-FCBD-4438-8133-B832A5AE0A67">
                  60.|        <di:waypoint xsi:type="dc:Point" x="81.0" y="241.0"/>
                  61.|        <di:waypoint xsi:type="dc:Point" x="191.0" y="241.0"/>
                  62.|      </bpmndi:BPMNEdge>
                  63.|      <bpmndi:BPMNShape id="_F5IhV8HhEeCvq_lrZ2FTdA" bpmnElement="_462B98D3-70C9-4C20-A5BA-E0DD5DCF7847">
                  64.|        <dc:Bounds height="40.0" width="40.0" x="286.0" y="221.0"/>
                  65.|      </bpmndi:BPMNShape>
                  66.|      <bpmndi:BPMNEdge id="_F5JIYMHhEeCvq_lrZ2FTdA" bpmnElement="_661C4E9B-EC0C-4C97-A526-D46DDEAF4CF1">
                  67.|        <di:waypoint xsi:type="dc:Point" x="191.0" y="241.0"/>
                  68.|        <di:waypoint xsi:type="dc:Point" x="306.0" y="241.0"/>
                  69.|      </bpmndi:BPMNEdge>
                  70.|      <bpmndi:BPMNShape id="_F5JIYcHhEeCvq_lrZ2FTdA" bpmnElement="_A40CA790-6E65-4558-9B27-6EF5A117FF36">
                  71.|        <dc:Bounds height="80.0" width="100.0" x="360.0" y="135.0"/>
                  72.|      </bpmndi:BPMNShape>
                  73.|      <bpmndi:BPMNEdge id="_F5JIYsHhEeCvq_lrZ2FTdA" bpmnElement="_63A633EF-A173-4EC2-8B0A-9F604FD8CE0E">
                  74.|        <di:waypoint xsi:type="dc:Point" x="306.0" y="241.0"/>
                  75.|        <di:waypoint xsi:type="dc:Point" x="307.0" y="175.0"/>
                  76.|        <di:waypoint xsi:type="dc:Point" x="410.0" y="175.0"/>
                  77.|      </bpmndi:BPMNEdge>
                  78.|      <bpmndi:BPMNShape id="_F5JIY8HhEeCvq_lrZ2FTdA" bpmnElement="_CC9E566C-A6BB-4CCA-B3EF-BDF663031602">
                  79.|        <dc:Bounds height="80.0" width="100.0" x="360.0" y="255.0"/>
                  80.|      </bpmndi:BPMNShape>
                  81.|      <bpmndi:BPMNEdge id="_F5JIZMHhEeCvq_lrZ2FTdA" bpmnElement="_C462E146-5CB0-4E7B-865F-B5E10501CCFD">
                  82.|        <di:waypoint xsi:type="dc:Point" x="306.0" y="241.0"/>
                  83.|        <di:waypoint xsi:type="dc:Point" x="306.0" y="295.0"/>
                  84.|        <di:waypoint xsi:type="dc:Point" x="410.0" y="295.0"/>
                  85.|      </bpmndi:BPMNEdge>
                  86.|      <bpmndi:BPMNShape id="_F5JIZcHhEeCvq_lrZ2FTdA" bpmnElement="_9206C9B4-0BF4-474B-BF4C-62FB22620F82">
                  87.|        <dc:Bounds height="40.0" width="40.0" x="525.0" y="225.0"/>
                  88.|      </bpmndi:BPMNShape>
                  89.|      <bpmndi:BPMNEdge id="_F5JIZsHhEeCvq_lrZ2FTdA" bpmnElement="_B054E847-DD47-4AAC-9FDB-B974E68C62D1">
                  90.|        <di:waypoint xsi:type="dc:Point" x="410.0" y="175.0"/>
                  91.|        <di:waypoint xsi:type="dc:Point" x="545.0" y="175.0"/>
                  92.|        <di:waypoint xsi:type="dc:Point" x="545.0" y="245.0"/>
                  93.|      </bpmndi:BPMNEdge>
                  94.|      <bpmndi:BPMNEdge id="_F5JIZ8HhEeCvq_lrZ2FTdA" bpmnElement="_34FF5548-A7BF-431F-8767-1BF5131945FC">
                  95.|        <di:waypoint xsi:type="dc:Point" x="410.0" y="295.0"/>
                  96.|        <di:waypoint xsi:type="dc:Point" x="545.0" y="295.0"/>
                  97.|        <di:waypoint xsi:type="dc:Point" x="545.0" y="245.0"/>
                  98.|      </bpmndi:BPMNEdge>
                  99.|      <bpmndi:BPMNShape id="_F5JIaMHhEeCvq_lrZ2FTdA" bpmnElement="_4BFD9A64-46AE-496D-B016-5FB488D189EA">
                  100.|        <dc:Bounds height="80.0" width="100.0" x="610.0" y="205.0"/>
                  101.|      </bpmndi:BPMNShape>
                  102.|      <bpmndi:BPMNEdge id="_F5JIacHhEeCvq_lrZ2FTdA" bpmnElement="_F6C0D4D2-8E5F-40CF-ABE3-F3396EC82929">
                  103.|        <di:waypoint xsi:type="dc:Point" x="545.0" y="245.0"/>
                  104.|        <di:waypoint xsi:type="dc:Point" x="660.0" y="245.0"/>
                  105.|      </bpmndi:BPMNEdge>
                  106.|      <bpmndi:BPMNShape id="_F5JIasHhEeCvq_lrZ2FTdA" bpmnElement="_2EAFE64F-213A-4B50-81CA-241843125A91">
                  107.|        <dc:Bounds height="28.0" width="28.0" x="745.0" y="228.0"/>
                  108.|      </bpmndi:BPMNShape>
                  109.|      <bpmndi:BPMNEdge id="_F5JIa8HhEeCvq_lrZ2FTdA" bpmnElement="_1FF5125C-F465-468F-99FE-CDA8385E6BB7">
                  110.|        <di:waypoint xsi:type="dc:Point" x="660.0" y="245.0"/>
                  111.|        <di:waypoint xsi:type="dc:Point" x="759.0" y="242.0"/>
                  112.|      </bpmndi:BPMNEdge>
                  113.|    </bpmndi:BPMNPlane>
                  114.|  </bpmndi:BPMNDiagram>
                  115.|</bpmn2:definitions>
                  • 6. Re: drools-guvnor: build package failures
                    tomarenz

                    An here is Looping after switching package name to defaultPackage ( 4 errors while building the package):

                     

                    1.|<?xml version="1.0" encoding="UTF-8"?>
                    2.|<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="Definition" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" expressionLanguage="http://www.mvel.org/2.0" name="Looping" targetNamespace="http://www.omg.org/bpmn20" typeLanguage="http://www.java.com/javaTypes">
                    3.|  <bpmn2:itemDefinition id="_countItem" structureRef="Integer"/>
                    4.|  <bpmn2:itemDefinition id="_iItem" structureRef="Integer"/>
                    5.|  <bpmn2:process id="com.sample.looping" drools:packageName="defaultPackage" name="Looping" isExecutable="true">
                    6.|    <bpmn2:startEvent id="_1" name="Start">
                    7.|      <bpmn2:outgoing>_1-_7</bpmn2:outgoing>
                    8.|    </bpmn2:startEvent>
                    9.|    <bpmn2:exclusiveGateway id="_2" name="Gateway" gatewayDirection="Converging">
                    10.|      <bpmn2:incoming>_7-_2</bpmn2:incoming>
                    11.|      <bpmn2:incoming>_4-_2</bpmn2:incoming>
                    12.|      <bpmn2:outgoing>_2-_3</bpmn2:outgoing>
                    13.|    </bpmn2:exclusiveGateway>
                    14.|    <bpmn2:scriptTask id="_3" name="Loop" scriptFormat="null">
                    15.|      <bpmn2:incoming>_2-_3</bpmn2:incoming>
                    16.|      <bpmn2:outgoing>_3-_4</bpmn2:outgoing>
                    17.|      <bpmn2:script>System.out.println(&quot;i = &quot; + i); 
                    18.|kcontext.setVariable(&quot;i&quot;, i+1);</bpmn2:script>
                    19.|    </bpmn2:scriptTask>
                    20.|    <bpmn2:exclusiveGateway id="_4" name="Gateway" gatewayDirection="Diverging">
                    21.|      <bpmn2:incoming>_3-_4</bpmn2:incoming>
                    22.|      <bpmn2:outgoing>_4-_2</bpmn2:outgoing>
                    23.|      <bpmn2:outgoing>_4-_5</bpmn2:outgoing>
                    24.|    </bpmn2:exclusiveGateway>
                    25.|    <bpmn2:scriptTask id="_5" name="Done" scriptFormat="null">
                    26.|      <bpmn2:incoming>_4-_5</bpmn2:incoming>
                    27.|      <bpmn2:outgoing>_5-_6</bpmn2:outgoing>
                    28.|      <bpmn2:script>System.out.println(&quot;Loop completed&quot;);</bpmn2:script>
                    29.|    </bpmn2:scriptTask>
                    30.|    <bpmn2:endEvent id="_6" name="End">
                    31.|      <bpmn2:incoming>_5-_6</bpmn2:incoming>
                    32.|      <bpmn2:terminateEventDefinition id="_FlgL8cHnEeCZPuVO97KIQw"/>
                    33.|    </bpmn2:endEvent>
                    34.|    <bpmn2:scriptTask id="_7" name="Init" scriptFormat="null">
                    35.|      <bpmn2:incoming>_1-_7</bpmn2:incoming>
                    36.|      <bpmn2:outgoing>_7-_2</bpmn2:outgoing>
                    37.|      <bpmn2:script>kcontext.setVariable(&quot;i&quot;, 0);</bpmn2:script>
                    38.|    </bpmn2:scriptTask>
                    39.|    <bpmn2:sequenceFlow id="_4-_2" name="i &lt; count" sourceRef="_4" targetRef="_2">
                    40.| <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="_FlgL8sHnEeCZPuVO97KIQw" language="http://www.jboss.org/drools/rule">return i &lt; count;</bpmn2:conditionExpression>
                    41.|    </bpmn2:sequenceFlow>
                    42.|    <bpmn2:sequenceFlow id="_7-_2" sourceRef="_7" targetRef="_2"/>
                    43.|    <bpmn2:sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3"/>
                    44.|    <bpmn2:sequenceFlow id="_3-_4" sourceRef="_3" targetRef="_4"/>
                    45.|    <bpmn2:sequenceFlow id="_4-_5" name="else" sourceRef="_4" targetRef="_5">
                    46.| <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="_FlgL88HnEeCZPuVO97KIQw" language="http://www.jboss.org/drools/rule">return true;</bpmn2:conditionExpression>
                    47.|    </bpmn2:sequenceFlow>
                    48.|    <bpmn2:sequenceFlow id="_5-_6" sourceRef="_5" targetRef="_6"/>
                    49.|    <bpmn2:sequenceFlow id="_1-_7" sourceRef="_1" targetRef="_7"/>
                    50.|    <bpmn2:property id="count" itemSubjectRef="_countItem"/>
                    51.|    <bpmn2:property id="i" itemSubjectRef="_iItem"/>
                    52.|  </bpmn2:process>
                    53.|  <bpmndi:BPMNDiagram id="_FlgL9MHnEeCZPuVO97KIQw">
                    54.|    <bpmndi:BPMNPlane id="_FlgL9cHnEeCZPuVO97KIQw" bpmnElement="com.sample.looping">
                    55.|      <bpmndi:BPMNShape id="_FlgL9sHnEeCZPuVO97KIQw" bpmnElement="_1">
                    56.|        <dc:Bounds height="30.0" width="30.0" x="21.0" y="93.0"/>
                    57.|      </bpmndi:BPMNShape>
                    58.|      <bpmndi:BPMNShape id="_FlgL98HnEeCZPuVO97KIQw" bpmnElement="_2">
                    59.|        <dc:Bounds height="40.0" width="40.0" x="215.0" y="87.0"/>
                    60.|      </bpmndi:BPMNShape>
                    61.|      <bpmndi:BPMNShape id="_FlgL-MHnEeCZPuVO97KIQw" bpmnElement="_3">
                    62.|        <dc:Bounds height="48.0" width="80.0" x="280.0" y="84.0"/>
                    63.|      </bpmndi:BPMNShape>
                    64.|      <bpmndi:BPMNShape id="_FlgL-cHnEeCZPuVO97KIQw" bpmnElement="_4">
                    65.|        <dc:Bounds height="40.0" width="40.0" x="421.0" y="88.0"/>
                    66.|      </bpmndi:BPMNShape>
                    67.|      <bpmndi:BPMNShape id="_FlgL-sHnEeCZPuVO97KIQw" bpmnElement="_5">
                    68.|        <dc:Bounds height="48.0" width="80.0" x="483.0" y="84.0"/>
                    69.|      </bpmndi:BPMNShape>
                    70.|      <bpmndi:BPMNShape id="_FlgL-8HnEeCZPuVO97KIQw" bpmnElement="_6">
                    71.|        <dc:Bounds height="28.0" width="28.0" x="619.0" y="94.0"/>
                    72.|      </bpmndi:BPMNShape>
                    73.|      <bpmndi:BPMNShape id="_FlgL_MHnEeCZPuVO97KIQw" bpmnElement="_7">
                    74.|        <dc:Bounds height="48.0" width="80.0" x="85.0" y="83.0"/>
                    75.|      </bpmndi:BPMNShape>
                    76.|      <bpmndi:BPMNEdge id="_FlgL_cHnEeCZPuVO97KIQw" bpmnElement="_4-_2">
                    77.|        <di:waypoint xsi:type="dc:Point" x="441.0" y="108.0"/>
                    78.|        <di:waypoint xsi:type="dc:Point" x="425.0" y="183.0"/>
                    79.|        <di:waypoint xsi:type="dc:Point" x="219.0" y="183.0"/>
                    80.|        <di:waypoint xsi:type="dc:Point" x="235.0" y="107.0"/>
                    81.|      </bpmndi:BPMNEdge>
                    82.|      <bpmndi:BPMNEdge id="_FlgL_sHnEeCZPuVO97KIQw" bpmnElement="_7-_2">
                    83.|        <di:waypoint xsi:type="dc:Point" x="125.0" y="107.0"/>
                    84.|        <di:waypoint xsi:type="dc:Point" x="235.0" y="107.0"/>
                    85.|      </bpmndi:BPMNEdge>
                    86.|      <bpmndi:BPMNEdge id="_FlgL_8HnEeCZPuVO97KIQw" bpmnElement="_2-_3">
                    87.|        <di:waypoint xsi:type="dc:Point" x="235.0" y="107.0"/>
                    88.|        <di:waypoint xsi:type="dc:Point" x="320.0" y="108.0"/>
                    89.|      </bpmndi:BPMNEdge>
                    90.|      <bpmndi:BPMNEdge id="_FlgMAMHnEeCZPuVO97KIQw" bpmnElement="_3-_4">
                    91.|        <di:waypoint xsi:type="dc:Point" x="320.0" y="108.0"/>
                    92.|        <di:waypoint xsi:type="dc:Point" x="441.0" y="108.0"/>
                    93.|      </bpmndi:BPMNEdge>
                    94.|      <bpmndi:BPMNEdge id="_FlgMAcHnEeCZPuVO97KIQw" bpmnElement="_4-_5">
                    95.|        <di:waypoint xsi:type="dc:Point" x="441.0" y="108.0"/>
                    96.|        <di:waypoint xsi:type="dc:Point" x="523.0" y="108.0"/>
                    97.|      </bpmndi:BPMNEdge>
                    98.|      <bpmndi:BPMNEdge id="_FlgMAsHnEeCZPuVO97KIQw" bpmnElement="_5-_6">
                    99.|        <di:waypoint xsi:type="dc:Point" x="523.0" y="108.0"/>
                    100.|        <di:waypoint xsi:type="dc:Point" x="633.0" y="108.0"/>
                    101.|      </bpmndi:BPMNEdge>
                    102.|      <bpmndi:BPMNEdge id="_FlgMA8HnEeCZPuVO97KIQw" bpmnElement="_1-_7">
                    103.|        <di:waypoint xsi:type="dc:Point" x="36.0" y="108.0"/>
                    104.|        <di:waypoint xsi:type="dc:Point" x="125.0" y="107.0"/>
                    105.|      </bpmndi:BPMNEdge>
                    106.|    </bpmndi:BPMNPlane>
                    107.|  </bpmndi:BPMNDiagram>
                    108.|</bpmn2:definitions>
                    • 7. Re: drools-guvnor: build package failures
                      tsurdilovic

                      Regarding the build errors. Processes tha cause the build problems you are seeing are examples that use XPath dialect, but we have not added out-of-the-box support for XPath expressions yet.

                      Any way you could upload the raw bpmn2 of your simple process or pastebin/gist it somewhere?

                      • 8. Re: drools-guvnor: build package failures
                        tomarenz

                        Not sure I understand what "raw bpmn2" is, I thought that the xml source I posted is complete and self-containing.

                        Btw, I did not use XPath expressions.

                        Also all imported examples raise the "no interfaces found" error.

                        • 9. Re: drools-guvnor: build package failures
                          tsurdilovic

                          Was hoping I would not have to get rid of the line numbers in the bpmn2 you pasted, but did anyways now. I see the issue, it is the Designer currently does not give you a way to declare an interface for service tasks. I will raise a jira and fix it for the next Designer version.

                          • 10. Re: drools-guvnor: build package failures
                            tsurdilovic

                            As a workaround until this is fixed in Designer, if you use service tasks you can create your process in Eclipse and upload it to guvnor. Just do not open it in designer and save it because it will change the bpmn2, getting rid of the interface definition(s).

                            Hope this helps.

                            • 11. Re: drools-guvnor: build package failures
                              tomarenz

                              Ok, many thanks, that was the first point.

                              Next one is about why errors become worse when I rename the package name of Looping to defaultPackage.

                              • 12. Re: drools-guvnor: build package failures
                                tsurdilovic

                                https://issues.jboss.org/browse/JBPM-3321 - watch it if you want.

                                 

                                Regarding the other errors, I was getting things like:

                                Unable to Analyse Expression $startMessage[@subject = 'foobar']: [Error: reference to undefined interceptor: subject] [Near : {... $startMessage[@subject = 'foobar'] ....}] ^ [Line: 1, Column: 16]

                                These types of build errors go back to what I was saying about no out-of-the-box support in jbpm for XPath expressions (those examples seem to use the XPath dialect).

                                • 13. Re: drools-guvnor: build package failures
                                  tomarenz

                                  How to proceed then ?

                                  The package does not build with these errors.

                                  As a consequence (I guess) the console process list shows just Evaluation and nothing else, while this process does not appear in Guvnor defaultPackage.

                                  • 14. Re: drools-guvnor: build package failures
                                    tsurdilovic

                                    jBPM installer installs the evaluation sample for you (see the $jbpm-installer/sample directory). This process is not present in Guvnor, but its on the classpath at runtime, which console looks up first before it tries to get processes from Guvnor.

                                    As far as how to proceed, just make sure processes you upload to Guvnor do not have contain any expressions that use the

                                    http://www.w3.org/1999/XPath language, because the parser will not be able to parse them currently.

                                     

                                    Hope this helps.

                                    1 2 Previous Next