Bug 1047931

Summary: Simulation results: If sum of probability for XOR is smaller than 100% then simulation engine executes fewer instances of the process.
Product: [Retired] JBoss BPMS Platform 6 Reporter: Sona Mala <smala>
Component: jBPM DesignerAssignee: Maciej Swiderski <mswiders>
Status: CLOSED CURRENTRELEASE QA Contact: Sona Mala <smala>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0CC: kverlaen, rrajasek
Target Milestone: ER1   
Target Release: 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
Cause: Consequence: If sum of probabilities for XOR is smaller than 100% then simulation engine executes "sum of probabilities" * "number of required instances" / 100 instances of process. Workaround (if any): no workaround Result: Unexpected simulation's result.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:04:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
BPMN2 definition none

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.