2 Replies Latest reply on Sep 20, 2013 1:32 AM by Maciej Swiderski

    Little problem with jBPM 5.4 and simulation

    Jerzy Mańkowski Newbie

      Hi

       

      I use jBpm5.4 (with JBoss 7) as I mentioned in title and I do have some problems with simulation. Let's say there's process(BPMN2) with one 'Start event', one 'Task' and one 'End event'. When I fill in fields that describe Processing time(max) and (min) with the same value everything works just fine. The problem starts with me filling Processing time(min) with lower value than (max). I receive only message:

      message.png

       

      I did a little research but with no sucess - I did not manage to find someone with the same problem.

       

      There is of course the possibility of my own mistake, but there's little information about simulation and validation isn't that much of help(well at least in this case).

       

      There are of course logs from jboss:

      10:18:40,566 INFO  [org.drools.guvnor.server.security.SecurityServiceImpl] (http--127.0.0.1-8080-2) Logging in user [admin]

      10:18:40,596 INFO  [org.drools.guvnor.server.security.DemoAuthenticator] (http--127.0.0.1-8080-2) Demo login for user (admin) succeeded.

      10:18:40,903 WARN  [org.jboss.seam.security.permission.SecurityRuleLoader] (http--127.0.0.1-8080-2) No security rules configured - rule base permissio

      ns will be unavailable.

      10:18:40,940 INFO  [org.drools.repository.RulesRepositoryConfigurator] (http--127.0.0.1-8080-2) Creating an instance of the RulesRepositoryConfigurato

      r.

      10:18:43,712 INFO  [stdout] (http--127.0.0.1-8080-2) =============== session-admin-4

      10:18:44,383 INFO  [org.drools.guvnor.server.security.SecurityServiceImpl] (http--127.0.0.1-8080-2) Logging in user [admin]

      10:18:44,390 INFO  [org.drools.guvnor.server.security.DemoAuthenticator] (http--127.0.0.1-8080-2) Demo login for user (admin) succeeded.

      10:18:44,396 INFO  [stdout] (http--127.0.0.1-8080-2) =============== session-admin-5

      10:18:44,530 INFO  [org.drools.guvnor.server.security.SecurityServiceImpl] (http--127.0.0.1-8080-2) Logging in user [admin]

      10:18:44,537 INFO  [org.drools.guvnor.server.security.DemoAuthenticator] (http--127.0.0.1-8080-2) Demo login for user (admin) succeeded.

      10:18:44,540 INFO  [stdout] (http--127.0.0.1-8080-2) =============== session-admin-6

      10:18:44,545 INFO  [stdout] (http--127.0.0.1-8080-2) =============== session-admin-6

      10:18:44,546 INFO  [stdout] (http--127.0.0.1-8080-2) =============== session-admin-6

      10:18:44,672 INFO  [org.jbpm.designer.web.server.ServletUtil] (http--127.0.0.1-8080-1) check connection response code: 200

      10:18:44,714 INFO  [org.drools.guvnor.server.security.SecurityServiceImpl] (http--127.0.0.1-8080-3) Logging in user [admin]

      10:18:44,723 INFO  [org.drools.guvnor.server.security.DemoAuthenticator] (http--127.0.0.1-8080-3) Demo login for user (admin) succeeded.

      10:18:44,785 INFO  [stdout] (http--127.0.0.1-8080-3) =============== session-admin-7

      10:18:44,956 INFO  [org.drools.guvnor.server.security.SecurityServiceImpl] (http--127.0.0.1-8080-3) Logging in user [admin]

      10:18:44,961 INFO  [org.drools.guvnor.server.security.DemoAuthenticator] (http--127.0.0.1-8080-3) Demo login for user (admin) succeeded.

      10:18:44,966 INFO  [stdout] (http--127.0.0.1-8080-3) =============== session-admin-8

      10:19:00,124 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 41, 52): cvc-complex-type.4: Attribute 'type' must appear on e

      lement 'bpmn2:relationship'.

      10:19:00,128 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 44, 92): cvc-elt.4.2: Cannot resolve 'drools:Scenario' to a ty

      pe definition for element 'drools:Scenario'.

      10:19:00,134 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 45, 123): cvc-elt.4.2: Cannot resolve 'drools:ScenarioParamete

      rs_._type' to a type definition for element 'drools:ScenarioParameters'.

      10:19:00,140 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 46, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameter

      s_._type' to a type definition for element 'drools:ElementParameters'.

      10:19:00,152 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 47, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters

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

      10:19:00,157 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 48, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a t

      ype definition for element 'drools:Probability'.

      10:19:00,164 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 53, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameter

      s_._type' to a type definition for element 'drools:ElementParameters'.

      10:19:00,168 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 54, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' t

      o a type definition for element 'drools:TimeParameters'.

      10:19:00,171 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 55, 60): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a t

      ype definition for element 'drools:WaitTime'.

      10:19:00,177 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 61, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameter

      s_._type' to a type definition for element 'drools:ElementParameters'.

      10:19:00,195 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 62, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' t

      o a type definition for element 'drools:TimeParameters'.

      10:19:00,199 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 63, 66): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a t

      ype definition for element 'drools:ProcessingTime'.

      10:19:00,202 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 68, 69): cvc-elt.4.2: Cannot resolve 'drools:CostParameters' t

      o a type definition for element 'drools:CostParameters'.

      10:19:00,207 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 69, 60): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a t

      ype definition for element 'drools:UnitCost'.

      10:19:00,213 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 75, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameter

      s_._type' to a type definition for element 'drools:ElementParameters'.

      10:19:00,217 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 76, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters

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

      10:19:00,220 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 77, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a t

      ype definition for element 'drools:Probability'.

      10:19:00,225 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 82, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameter

      s_._type' to a type definition for element 'drools:ElementParameters'.

      10:19:00,230 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 83, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' t

      o a type definition for element 'drools:TimeParameters'.

      10:19:00,241 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 84, 66): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a t

      ype definition for element 'drools:ProcessingTime'.

      10:19:00,364 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 600000.0; min: 600000.0; max:600000.0 count 1

      10:19:00,382 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 600000.0; min: 600000.0; max:600000.0

      10:19:00,389 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 600000.0; min: 600000.0; max:600000.0 [defaultPackage.att@att@null]

       

      10:19:00,398 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 600000.0; min: 600000.0; max:600000.0 count 2

      10:19:00,403 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 600000.0; min: 600000.0; max:600000.0

      10:19:00,406 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 600000.0; min: 600000.0; max:600000.0 [defaultPackage.att@att@null]

       

      10:19:00,412 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 600000.0; min: 600000.0; max:600000.0 count 3

      10:19:00,416 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 600000.0; min: 600000.0; max:600000.0

      10:19:00,419 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 600000.0; min: 600000.0; max:600000.0 [defaultPackage.att@att@null]

       

      10:19:00,424 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 600000.0; min: 600000.0; max:600000.0 count 4

      10:19:00,428 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 600000.0; min: 600000.0; max:600000.0

      10:19:00,431 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 600000.0; min: 600000.0; max:600000.0 [defaultPackage.att@att@null]

       

      10:19:00,439 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 600000.0; min: 600000.0; max:600000.0 count 5

      10:19:00,449 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 600000.0; min: 600000.0; max:600000.0

      10:19:00,454 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 600000.0; min: 600000.0; max:600000.0 [defaultPackage.att@att@null]

       

      10:19:00,479 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 600000.0; min: 600000.0; max:600000.0 count 6

      10:19:00,516 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 600000.0; min: 600000.0; max:600000.0

      10:19:00,519 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 600000.0; min: 600000.0; max:600000.0 [defaultPackage.att@att@null]

       

      10:19:00,529 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 600000.0; min: 600000.0; max:600000.0 count 7

      10:19:00,533 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 600000.0; min: 600000.0; max:600000.0

      10:19:00,537 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 600000.0; min: 600000.0; max:600000.0 [defaultPackage.att@att@null]

       

      10:19:00,544 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 600000.0; min: 600000.0; max:600000.0 count 8

      10:19:00,549 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 600000.0; min: 600000.0; max:600000.0

      10:19:00,554 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 600000.0; min: 600000.0; max:600000.0 [defaultPackage.att@att@null]

       

      10:19:00,561 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 600000.0; min: 600000.0; max:600000.0 count 9

      10:19:00,566 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 600000.0; min: 600000.0; max:600000.0

      10:19:00,569 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 600000.0; min: 600000.0; max:600000.0 [defaultPackage.att@att@null]

       

      10:19:00,575 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 600000.0; min: 600000.0; max:600000.0 count 10

      10:19:00,590 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 600000.0; min: 600000.0; max:600000.0

      10:19:00,597 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 600000.0; min: 600000.0; max:600000.0 [defaultPackage.att@att@null]

       

      10:19:00,615 INFO  [stdout] (http--127.0.0.1-8080-4) SUMMARY Duration for end event  is avg: 600000.0; min: 600000.0; max:600000.0 count 10.0

      10:19:00,621 INFO  [stdout] (http--127.0.0.1-8080-4) SUMMARY Duration for activity test is avg: 600000.0; min: 600000.0; max:600000.0 count 10.0

      10:19:00,631 INFO  [stdout] (http--127.0.0.1-8080-4) SUMMARY: Duration for processs is avg: 600000.0; min: 600000.0; max:600000.0 [defaultPackage.att@

      att@null]

      10:19:26,321 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 41, 52): cvc-complex-type.4: Attribute 'type' must appear on e

      lement 'bpmn2:relationship'.

      10:19:26,362 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 44, 92): cvc-elt.4.2: Cannot resolve 'drools:Scenario' to a ty

      pe definition for element 'drools:Scenario'.

      10:19:26,369 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 45, 123): cvc-elt.4.2: Cannot resolve 'drools:ScenarioParamete

      rs_._type' to a type definition for element 'drools:ScenarioParameters'.

      10:19:26,373 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 46, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameter

      s_._type' to a type definition for element 'drools:ElementParameters'.

      10:19:26,379 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 47, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters

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

      10:19:26,383 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 48, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a t

      ype definition for element 'drools:Probability'.

      10:19:26,386 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 53, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameter

      s_._type' to a type definition for element 'drools:ElementParameters'.

      10:19:26,394 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 54, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' t

      o a type definition for element 'drools:TimeParameters'.

      10:19:26,398 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 55, 60): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a t

      ype definition for element 'drools:WaitTime'.

      10:19:26,402 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 61, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameter

      s_._type' to a type definition for element 'drools:ElementParameters'.

      10:19:26,407 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 62, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' t

      o a type definition for element 'drools:TimeParameters'.

      10:19:26,424 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 63, 66): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a t

      ype definition for element 'drools:ProcessingTime'.

      10:19:26,431 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 68, 69): cvc-elt.4.2: Cannot resolve 'drools:CostParameters' t

      o a type definition for element 'drools:CostParameters'.

      10:19:26,435 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 69, 60): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a t

      ype definition for element 'drools:UnitCost'.

      10:19:26,438 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 75, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameter

      s_._type' to a type definition for element 'drools:ElementParameters'.

      10:19:26,444 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 76, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters

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

      10:19:26,448 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 77, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a t

      ype definition for element 'drools:Probability'.

      10:19:26,452 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 82, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameter

      s_._type' to a type definition for element 'drools:ElementParameters'.

      10:19:26,466 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 83, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' t

      o a type definition for element 'drools:TimeParameters'.

      10:19:26,470 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-4) (null: 84, 66): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a t

      ype definition for element 'drools:ProcessingTime'.

      10:19:26,521 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 338421.0; min: 338421.0; max:338421.0 count 1

      10:19:26,540 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 338421.0; min: 338421.0; max:338421.0

      10:19:26,548 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 338421.0; min: 338421.0; max:338421.0 [defaultPackage.att@att@null]

       

      10:19:26,553 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 352663.5; min: 338421.0; max:366906.0 count 2

      10:19:26,561 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 352663.5; min: 338421.0; max:366906.0

      10:19:26,565 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 352663.5; min: 338421.0; max:366906.0 [defaultPackage.att@att@null]

       

      10:19:26,573 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 385664.6666666667; min: 338421.0; max:451667.0 count 3

      10:19:26,582 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 385664.6666666667; min: 338421.0; max:451667.0

      10:19:26,585 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 385664.6666666667; min: 338421.0; max:451667.0 [defaultPackage.att@

      att@null]

      10:19:26,590 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 386558.25; min: 338421.0; max:451667.0 count 4

      10:19:26,596 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 386558.25; min: 338421.0; max:451667.0

      10:19:26,601 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 386558.25; min: 338421.0; max:451667.0 [defaultPackage.att@att@null

      ]

      10:19:26,607 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 424273.8; min: 338421.0; max:575136.0 count 5

      10:19:26,648 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 424273.8; min: 338421.0; max:575136.0

      10:19:26,678 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 424273.8; min: 338421.0; max:575136.0 [defaultPackage.att@att@null]

       

      10:19:26,690 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 448816.8333333333; min: 338421.0; max:575136.0 count 6

      10:19:26,699 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 448816.8333333333; min: 338421.0; max:575136.0

      10:19:26,705 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 448816.8333333333; min: 338421.0; max:575136.0 [defaultPackage.att@

      att@null]

      10:19:26,715 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 429780.85714285716; min: 315565.0; max:575136.0 count 7

      10:19:26,728 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 429780.85714285716; min: 315565.0; max:575136.0

      10:19:26,733 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 429780.85714285716; min: 315565.0; max:575136.0 [defaultPackage.att

      @att@null]

      10:19:26,774 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 446677.5; min: 315565.0; max:575136.0 count 8

      10:19:26,780 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 446677.5; min: 315565.0; max:575136.0

      10:19:26,799 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 446677.5; min: 315565.0; max:575136.0 [defaultPackage.att@att@null]

       

      10:19:26,805 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 462693.44444444444; min: 315565.0; max:590821.0 count 9

      10:19:26,814 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 462693.44444444444; min: 315565.0; max:590821.0

      10:19:26,819 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 462693.44444444444; min: 315565.0; max:590821.0 [defaultPackage.att

      @att@null]

      10:19:26,831 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for activity test is avg: 452168.3; min: 315565.0; max:590821.0 count 10

      10:19:26,851 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for end event  is avg: 452168.3; min: 315565.0; max:590821.0

      10:19:26,854 INFO  [stdout] (http--127.0.0.1-8080-4) Duration for processs is avg: 452168.3; min: 315565.0; max:590821.0 [defaultPackage.att@att@null]

       

      10:19:26,872 INFO  [stdout] (http--127.0.0.1-8080-4) SUMMARY Duration for end event  is avg: 412771.8151587302; min: 315565.0; max:590821.0 count 10.0

       

      10:19:26,880 INFO  [stdout] (http--127.0.0.1-8080-4) SUMMARY Duration for activity test is avg: 412771.8151587302; min: 315565.0; max:590821.0 count 1

      0.0

      10:19:26,887 INFO  [stdout] (http--127.0.0.1-8080-4) SUMMARY: Duration for processs is avg: 412771.8151587302; min: 315565.0; max:590821.0 [defaultPac

      kage.att@att@null]

       

       

      So now i ask for your help or tips how to work this out.

       

      I attach the file with the process I am talking about. It is very simple only for the purpose of trying to get what is wrong.

       

      EDIT: From what I can tell, the problem lies in adjustToMins in 'return'. It seems that when parsing x.xx format it throws NumberFormatException. Is it jdk version related ?

        • 1. Re: Little problem with jBPM 5.4 and simulation
          Jerzy Mańkowski Newbie

          The problem is solved. It lied in Double.valueOf(twoDformat.format(in)); It seems that format returns string with '#,##' where Double.valueOf() can only take '#.##'.

          All I did was add this:

          '.replace(',', '.')',

          to three methods:

          - adjustToSecs

          - adjustToMins

          - adjustDouble

           

          So now every return line looks like this:

          'return Double.valueOf(twoDForm.format(in).replace(',', '.'));'

           

          I don't know if it isn't already solved in newer versions, but maybe someone, someday will have the same issue.

           

          Cheers

          • 2. Re: Little problem with jBPM 5.4 and simulation
            Maciej Swiderski Master

            exactly that is the problem, it's due to locale used by jvm that decides to use ',' instead of '.' and thus failing. It has already been fixed in master (v6). An alternative solution is to set the locale to us english and that should resolve the issue. When running on *nix systems you could start JBoss like this:

             

            $LC_ALL=en_US.UTF-8 ./standalone.sh

             

            HTH