Bug 1047931 - Simulation results: If sum of probability for XOR is smaller than 100% then simulation engine executes fewer instances of the process.
Summary: Simulation results: If sum of probability for XOR is smaller than 100% then s...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Designer
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER1
: 6.0.1
Assignee: Maciej Swiderski
QA Contact: Sona Mala
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-02 15:41 UTC by Sona Mala
Modified: 2014-08-06 20:04 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:04:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
BPMN2 definition (22.44 KB, application/xml)
2014-01-02 15:41 UTC, Sona Mala
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1066510 0 medium CLOSED Simulation results: If sum of probability for XOR is greater than 100% then simulation engine executes more instances of... 2021-02-22 00:41:40 UTC

Internal Links: 1066510

Description Sona Mala 2014-01-02 15:41:56 UTC
Created attachment 844598 [details]
BPMN2 definition

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

Steps to Reproduce:
1. import the attached process
2. run simulation (10 instances, 10 minutes)
3. see results

Actual results:
probability for conditions:                     (Path X/Others)
  A: 30    Path1: 3 instances of Decision, Task A   (3/7)
  B: 10    Path2: 1 instances of Decision, Task B   (1/9)
  C: 20    Path3: 2 instances of Decision, Task C   (2/8)
SUM: 60    

The Decision task should be executed by all instances of the process, but (how you can see) Decision task was executed just 6 times instead of 10 times. 

Num. of Executions is "10" and all num. of execution for "Path X + Others" is equal to 10. 
There is missing information about a problem.

Expected results:

Option 1 (the cleanest):
  - Designer validation says that process is not valid (has been implemented, yet)
  - show alert "Simulation engine did not return results: The sum of probability for gate XXX is not equal 100%" or "Simulation engine did not return results: process is not valid"

Option 2:
  - Show problem in results
  - Num of Execution is "6 (4 instances failed)"
  - Path1 / Others (3/3)
  - Path2 / Others (1/5)
  - Path3 / Others (2/4)

Option 3:
  - Add result for Failing Path
  - Num of Execution is "10"
  - Path1 / Others (3/7)
  - Path2 / Others (1/9)
  - Path3 / Others (2/8)
  - Fail / Others (4/6) - Mark just nodes which were executed (voluntary: mark place of error)




Additional info:

Comment 1 Sona Mala 2014-01-02 17:14:35 UTC
Same problem with OR gateway

Comment 3 Maciej Swiderski 2014-01-15 12:54:28 UTC
option one is implemented, in such a case an error will be shown to the user that process is not valid for simulation and validation should be used to find out what is wrong.

droolsjbpm-integration
master:
https://github.com/droolsjbpm/droolsjbpm-integration/commit/83da4b927cfc0711265c92db05b5f87a4a115215

6.0.x:
https://github.com/droolsjbpm/droolsjbpm-integration/commit/0a691b01303a45cc5144a85fb2b026fc8034398c

jbpm-designer:
master:
https://github.com/droolsjbpm/jbpm-designer/commit/8a7adbcf288a84be47036ba4e53f49f36784f1f2

6.0.x:
https://github.com/droolsjbpm/jbpm-designer/commit/7dd2d7339d4cca3391ab87df3a2c991a84e42fc4

Comment 4 Sona Mala 2014-02-18 14:39:28 UTC
I verify this for ER1 6.0.1.


Unfortunately, there is a problem when sum of probabilities is greater then 100.
I will create a new issue.


Note You need to log in before you can comment on or make changes to this bug.