14 Replies Latest reply on Apr 27, 2013 11:27 PM by keymaker19

    jbpm 5.4 and simulation

    amadets

      Hi,

      I downloaded the latest version 5.4 officially shared.

      I install using the ant install.demo.noeclipse. Everything is ok

      next: ant start.demo.noeclipse and the whole starts and Everything is ok

      I run google chrome and I type: localhost:8080/drools-guvnor

      in default package create new "new BMPN Process".

      I put on the process: Start -> Activities (Task) -> end

      The properties tab for:

      process - simulation -> Base Currency: USD

      process - simulation -> Base time unit: minutes

      Task -> Type: None

      Task -> name: Task1

      Task -> simulation -> Cost per time unit: 50

      Task -> simulation -> Currency: USD

      Task -> simulation -> Distribution Type: random

      Task -> simulation -> Processing time (max): 10

      Task -> simulation -> Processing time (min): 8

      Task -> simulation -> Staff availabity: 2

      Task -> simulation -> Time unit: minutes

      Task -> simulation -> Working hours: 8

       

       

      I click the validate process, message: There are not validation error

      I click Run simulation:

      Number of instance: 2

      iterval: 2

      Interval Units: minutes

       

      and I click "Run simulation" get the message: Simulation engine did not return results.

      I look to the jboss logs:

       

      ERRORS:

      Attribute 'type' must appear on element 'bpmn2:relationship'.

      Cannot resolve 'drools:Scenario' to a type definition for element 'drools:Scenario'.

      Cannot resolve 'drools:ScenarioParameters_._type' to a type definition for element 'drools:ScenarioParameters'.

      Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

      Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.

      Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.

      Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

      Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.

      Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.

      Cannot resolve 'drools:CostParameters' to a type definition for element 'drools:CostParameters'.

      Cannot resolve 'drools:Parameter' to a type definition for element 'drools:UnitCost'.

      Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

      Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.

      Cannot resolve 'drools:Parameter' to a type definition for element 'drools:WaitTime'.

      Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

      Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.

      Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.

      Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

      Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.

      Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.

      INFO:

      Duration for activity 1 is avg: 554232.0; min: 554232.0; max:554232.0 count 1

      Duration for end event  is avg: 554232.0; min: 554232.0; max:554232.0

      Duration for processs is avg: 554232.0; min: 554232.0; max:554232.0 [defaultPackage.Simul1@Simul1@null]

      Duration for activity 1 is avg: 546719.5; min: 539207.0; max:554232.0 count 2

      Duration for end event  is avg: 546719.5; min: 539207.0; max:554232.0

      Duration for processs is avg: 546719.5; min: 539207.0; max:554232.0 [defaultPackage.Simul1@Simul1@null]

      SUMMARY Duration for end event  is avg: 550475.75; min: 539207.0; max:554232.0 count 2.0

      SUMMARY Duration for activity 1 is avg: 550475.75; min: 539207.0; max:554232.0 count 2.0

      Duration for processs is avg: 550475.75; min: 539207.0; max:554232.0 [defaultPackage.Simul1@Simul1@null]

       

       

      what's wrong?

      ask for any tips.

      ts

        • 1. Re: jbpm 5.4 and simulation
          amadets

          In addition, I found something like this:

          Kris (https://community.jboss.org/thread/213848) describes the simulation section where it says:

          "... Maciej did a blog recently on the ideas and concepts behind it ..."

          This blog (http://mswiderski.blogspot.be/2012/08/simulation-in-jbpm-draft.html) is written:

          "...It see a running example of a dry simulation take a look at the test case That is part of the jbpm-simulation...".

          But it is a project (https://github.com/mswiderski/jbpm-simulation/) based on jbpm6.

           

          In view of this it is possible to run simulations on version 5.4?

           

          ts

          • 2. Re: jbpm 5.4 and simulation
            tsurdilovic

            I am getting results with your description of the work. One thing is that you should change the Task type to User Task, but for the basic test case this should not matter.

            Can you click on the BPMN2 button in the footer and show the BPMN2 generated so we can test locally?

             

            jBPM Designer uses the jbpm-simulation project you mentioned. jbpm-simulation has moved to jbpm 6 pom already however in Designer we are using still a version which has depends on previous version so don't think that's the issue.

             

            I'd like to get to the bottom of this asap, so if you can help us reproduce that would help a lot.

             

            Thanks.

            • 3. Re: jbpm 5.4 and simulation
              tsurdilovic

              Just in case have you cleared your browser cache after installing the new Designer version?

              • 4. Re: jbpm 5.4 and simulation
                amadets

                Thank you for your reply.

                The attached file is an example save directly from the web designer (view BPMN2 source -> save to file)

                I always use google chrome (23.0.1271.95 m) in incognito mode, but in normal mode with clear cache is the same. On firefox (16.0.2) is the same too.

                ts

                 

                Message was edited by: t s I added a fragment of server log

                • 5. Re: jbpm 5.4 and simulation
                  tsurdilovic

                  Imported your BPMN2 into Designer and ran simulation - it looks ok with latest release so I'm not sure. Are there any JavaScript errors that you see?

                   

                  Screen Shot 2012-12-04 at 7.37.45 PM.png

                  • 6. Re: jbpm 5.4 and simulation
                    amadets

                    I also use 2.4.0. Final version (because this version is bundled with installer).

                    In chrome is javascript error, in firefox (firebug) no. see attached file.

                    I also clear tmp directory from jboss and from user in windows (local settings/temp) who run jboss and is the same.

                    ts

                    • 7. Re: jbpm 5.4 and simulation
                      dossou

                      I'm facing the same issue

                      JDK 1.7.0_07

                      OS: Windows 7

                      • 8. Re: jbpm 5.4 and simulation
                        tsurdilovic

                        Thanks! Looking into this now, trying to reproduce. If you could help me test - maybe on some other machine you might have or w/ Java 6 that would help.

                        • 9. Re: jbpm 5.4 and simulation
                          dossou

                          I’ve try with a JDK 1.6.0_21 and still have the problem.

                          I started over step by step, description below.

                          Maybe a hint?

                          I think the issue is related to gateways, split? Invalid flow condition expression?

                          A least one bug:

                          NPE when there is no condition on the flows leaving a split gateway.

                           

                          1. Simple process ( start, on task, end)

                          The simulation gave some results, tough with same errors in log

                           

                          09:56:27,835 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 38, 52): cvc-complex-type.4: Attribute 'type' must appear on element 'bpmn2:relationship'.

                          09:56:27,839 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 41, 92): cvc-elt.4.2: Cannot resolve 'drools:Scenario' to a type definition for element 'drools:Scenario'.

                          09:56:27,844 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 42, 100): cvc-elt.4.2: Cannot resolve 'drools:ScenarioParameters_._type' to a type definition for element 'drools:ScenarioParameters'.

                          09:56:27,849 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 43, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          09:56:27,854 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 44, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.

                          09:56:27,858 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 45, 60): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:WaitTime'.

                          09:56:27,863 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 51, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          09:56:27,868 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 52, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.

                          09:56:27,873 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 53, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.

                          09:56:27,878 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 58, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          09:56:27,883 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 59, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.

                          09:56:27,888 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 60, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.

                          09:56:27,892 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 65, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          09:56:27,898 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 66, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.

                          09:56:27,903 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 67, 66): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.

                          09:56:27,907 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 72, 69): cvc-elt.4.2: Cannot resolve 'drools:CostParameters' to a type definition for element 'drools:CostParameters'.

                          09:56:27,912 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 73, 60): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:UnitCost'.

                          09:56:27,917 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 78, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          09:56:27,922 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 79, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.

                          09:56:27,927 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-5) (null: 80, 66): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.

                          09:56:29,020 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for activity Activity is avg: 0.0; min: 0.0; max:0.0 count 1

                          09:56:29,033 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for end event  is avg: 0.0; min: 0.0; max:0.0

                          09:56:29,038 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for processs is avg: 0.0; min: 0.0; max:0.0 [defaultPackage.TestForSimulation@TestForSimulation@null]

                          09:56:29,043 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for activity Activity is avg: 0.0; min: 0.0; max:0.0 count 2

                          09:56:29,047 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for end event  is avg: 0.0; min: 0.0; max:0.0

                          09:56:29,050 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for processs is avg: 0.0; min: 0.0; max:0.0 [defaultPackage.TestForSimulation@TestForSimulation@null]

                          09:56:29,054 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for activity Activity is avg: 0.0; min: 0.0; max:0.0 count 3

                          09:56:29,058 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for end event  is avg: 0.0; min: 0.0; max:0.0

                          09:56:29,061 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for processs is avg: 0.0; min: 0.0; max:0.0 [defaultPackage.TestForSimulation@TestForSimulation@null]

                          09:56:29,066 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for activity Activity is avg: 0.0; min: 0.0; max:0.0 count 4

                          09:56:29,070 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for end event  is avg: 0.0; min: 0.0; max:0.0

                          09:56:29,073 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for processs is avg: 0.0; min: 0.0; max:0.0 [defaultPackage.TestForSimulation@TestForSimulation@null]

                          09:56:29,101 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for activity Activity is avg: 0.0; min: 0.0; max:0.0 count 5

                          09:56:29,106 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for end event  is avg: 0.0; min: 0.0; max:0.0

                          09:56:29,110 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for processs is avg: 0.0; min: 0.0; max:0.0 [defaultPackage.TestForSimulation@TestForSimulation@null]

                          09:56:29,115 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for activity Activity is avg: 0.0; min: 0.0; max:0.0 count 6

                          09:56:29,122 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for end event  is avg: 0.0; min: 0.0; max:0.0

                          09:56:29,125 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for processs is avg: 0.0; min: 0.0; max:0.0 [defaultPackage.TestForSimulation@TestForSimulation@null]

                          09:56:29,130 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for activity Activity is avg: 0.0; min: 0.0; max:0.0 count 7

                          09:56:29,134 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for end event  is avg: 0.0; min: 0.0; max:0.0

                          09:56:29,137 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for processs is avg: 0.0; min: 0.0; max:0.0 [defaultPackage.TestForSimulation@TestForSimulation@null]

                          09:56:29,142 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for activity Activity is avg: 0.0; min: 0.0; max:0.0 count 8

                          09:56:29,146 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for end event  is avg: 0.0; min: 0.0; max:0.0

                          09:56:29,149 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for processs is avg: 0.0; min: 0.0; max:0.0 [defaultPackage.TestForSimulation@TestForSimulation@null]

                          09:56:29,154 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for activity Activity is avg: 0.0; min: 0.0; max:0.0 count 9

                          09:56:29,160 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for end event  is avg: 0.0; min: 0.0; max:0.0

                          09:56:29,164 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for processs is avg: 0.0; min: 0.0; max:0.0 [defaultPackage.TestForSimulation@TestForSimulation@null]

                          09:56:29,169 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for activity Activity is avg: 0.0; min: 0.0; max:0.0 count 10

                          09:56:29,173 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for end event  is avg: 0.0; min: 0.0; max:0.0

                          09:56:29,177 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) Duration for processs is avg: 0.0; min: 0.0; max:0.0 [defaultPackage.TestForSimulation@TestForSimulation@null]

                          09:56:29,188 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) SUMMARY Duration for end event  is avg: 0.0; min: 0.0; max:0.0 count 10.0

                          09:56:29,193 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) SUMMARY Duration for activity Activity is avg: 0.0; min: 0.0; max:0.0 count 10.0

                          09:56:29,197 INFO  [stdout] (http-localhost-127.0.0.1-8080-5) SUMMARY: Duration for processs is avg: 0.0; min: 0.0; max:0.0 [defaultPackage.TestForSimulation@TestForSimulation@null]

                           

                           

                          2. More complex process ( Split and merge gateways), attached

                          “The simulation engine did not return results” message, with more errors in log

                           

                          10:29:28,252 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 125, 52): cvc-complex-type.4: Attribute 'type' must appear on element 'bpmn2:relationship'.

                          10:29:28,256 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 128, 92): cvc-elt.4.2: Cannot resolve 'drools:Scenario' to a type definition for element 'drools:Scenario'.

                          10:29:28,261 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 129, 100): cvc-elt.4.2: Cannot resolve 'drools:ScenarioParameters_._type' to a type definition for element 'drools:ScenarioParameters'.

                          10:29:28,266 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 130, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,272 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 131, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.

                          10:29:28,277 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 132, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.

                          10:29:28,282 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 137, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,287 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 138, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.

                          10:29:28,292 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 139, 66): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.

                          10:29:28,298 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 144, 69): cvc-elt.4.2: Cannot resolve 'drools:CostParameters' to a type definition for element 'drools:CostParameters'.

                          10:29:28,303 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 145, 60): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:UnitCost'.

                          10:29:28,308 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 150, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,314 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 151, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.

                          10:29:28,319 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 152, 60): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:WaitTime'.

                          10:29:28,324 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 158, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,329 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 159, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.

                          10:29:28,334 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 160, 66): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.

                          10:29:28,339 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 165, 69): cvc-elt.4.2: Cannot resolve 'drools:CostParameters' to a type definition for element 'drools:CostParameters'.

                          10:29:28,344 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 166, 60): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:UnitCost'.

                          10:29:28,349 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 171, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,355 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 172, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.

                          10:29:28,360 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 173, 66): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.

                          10:29:28,364 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 179, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,370 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 180, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.

                          10:29:28,375 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 181, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.

                          10:29:28,380 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 186, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,386 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 187, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.

                          10:29:28,391 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 188, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.

                          10:29:28,396 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 193, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,401 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 194, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.

                          10:29:28,406 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 195, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.

                          10:29:28,411 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 200, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,417 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 201, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.

                          10:29:28,422 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 202, 66): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.

                          10:29:28,427 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 207, 69): cvc-elt.4.2: Cannot resolve 'drools:CostParameters' to a type definition for element 'drools:CostParameters'.

                          10:29:28,432 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 208, 60): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:UnitCost'.

                          10:29:28,437 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 213, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,442 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 214, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.

                          10:29:28,448 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 215, 66): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.

                          10:29:28,452 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 220, 69): cvc-elt.4.2: Cannot resolve 'drools:CostParameters' to a type definition for element 'drools:CostParameters'.

                          10:29:28,457 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 221, 60): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:UnitCost'.

                          10:29:28,462 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 226, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,467 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 227, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.

                          10:29:28,472 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 228, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.

                          10:29:28,477 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 233, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,483 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 234, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.

                          10:29:28,488 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 235, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.

                          10:29:28,493 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 240, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,498 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 241, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.

                          10:29:28,504 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 242, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.

                          10:29:28,509 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 247, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,514 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 248, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.

                          10:29:28,519 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 249, 66): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.

                          10:29:28,524 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 254, 69): cvc-elt.4.2: Cannot resolve 'drools:CostParameters' to a type definition for element 'drools:CostParameters'.

                          10:29:28,529 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 255, 60): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:UnitCost'.

                          10:29:28,535 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 260, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,540 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 261, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.

                          10:29:28,546 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 262, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.

                          10:29:28,552 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 267, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.

                          10:29:28,558 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 268, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.

                          10:29:28,563 ERROR [org.drools.xml.ExtensibleXmlParser] (http-localhost-127.0.0.1-8080-9) (null: 269, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.

                          • 10. Re: jbpm 5.4 and simulation
                            amadets

                            I also tested it on java 1.6 (java.runtime.version = 1.6.0_37-b06) and the problem is exactly the same and error in javascript too. I use windows64bit and normally java 1.7 update 9.

                            ts

                            • 11. Re: jbpm 5.4 and simulation
                              tsurdilovic

                              Was able to reproduce - looking into it now.

                              • 12. Re: jbpm 5.4 and simulation
                                tsurdilovic

                                Simulation is based on the jBPM runtime, it executes the business process in order to do simulation (replaces activities with simulated activities based on your simulation properties, etc). In case of models like in your example, we need to add more validation to tell users that some parts of the model (execution schemantics) are missing in order to properly run simulation.

                                In your case the outgoing sequence flows from the first XOR gateway do not have a conditional expression defined, so the simulation engine does not know how to proceed there and returns no results.

                                A quick fix for you is to add:

                                 

                                return true;

                                 

                                as the condition expression to the two outgoing sequence flows from the first gateway. This will allow the engine to return results.

                                We will add for the next release better validation and assistance so that users do not run into these types of issues. If you have any suggestions on that let us know.

                                 

                                HTH

                                • 13. Re: jbpm 5.4 and simulation
                                  tsurdilovic

                                  We have added a simulation specific Jira component where you can report any simulation related issues you find: https://issues.jboss.org/browse/JBPM/component/12316740

                                   

                                  HTH

                                  • 14. Re: jbpm 5.4 and simulation
                                    keymaker19

                                    Hi tihomir i'm struggling with the simulation of a process for my master thesis. My problems are similar to the other people in this discusion. Can you please check the code of the process and the error log that i attach to help me fin something i miss?  The process use script task(not appropiated i know) to call external services thay you don´t have but please help me to identify anything that i mised. I run the process for testing many times and works but the simulation is the problem. Thank you very much in advance. The code is copy and paste from the jbpm designer. 

                                    Victor