Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-2621

If simulation engine failed then regular user does not know why

XMLWordPrintable

      Description of problem:
      All informations about failures of simulation engine are shown in server.log but not as alerts or validation issues.

      Version-Release number of selected component (if applicable):
      BPMS 6.0.0 ER1

      How reproducible:

      Steps to Reproduce:
      1. Import the attached process
      2. Run Simulation for 10 instancies and interval 2 minutes
      3. Validate process
      4. Fix validation issues:
      -> Add script to "Decission" task: myVar = new Random().nextInt(10);
      -> Add conditions to gateway's flows: myVar < 5; myVar > 4;
      5. Validate
      6. Run Simulation for 10 process instancies and interval 2 minutes

      Actual results:
      ---------------
      Step 2. - Simulation return result, diagrams are available.
      Step 5. - Validation is ok.
      Step 6. - Alert "Simulation engine did not return results.";

      Server.log:
      Process Compilation error : org.drools.compiler.lang.descr.ProcessDescr@73ebf723
      org/jbpm/Process_org_jbpm_simTest1069076629.java (8:346) : Random cannot be resolved to a type
      org/jbpm/Process_org_jbpm_simTest1069076629.java (14:586) : Syntax error on token ">", invalid AssignmentOperator
      org/jbpm/Process_org_jbpm_simTest1069076629.java (20:808) : Syntax error on token "<", invalid AssignmentOperator

      An user which has not access to server.log has no idea about problems!!!!

      Expected results:
      -----------------
      There are two options:

      • validation shows, that scripts are invalid
      • propagate errors from server.log to alerts:
        -> Task "Decission", property "Script": Random cannot be resolved to a type
        -> Sequence flow "", property "Condition Expression": Syntax error on token ">", invalid AssignmentOperator
        -> Sequence flow "", property "Condition Expression": Syntax error on token "<", invalid AssignmentOperator

      Additional info:
      I know that input for Script's properties are invalid, but point is that users should know why simulation engine failed.

              swiderski.maciej Maciej Swiderski (Inactive)
              smala_jira Sona Mala (Inactive)
              Sona Mala Sona Mala (Inactive)
              Sona Mala Sona Mala (Inactive)
              Kris Verlaenen, paradhya2, Radovan Synek (Inactive), Rajesh Rajasekaran
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: