Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1047891

Summary: Simulation results: Nodes in event subprocess are not marked as visited
Product: [Retired] JBoss BPMS Platform 6 Reporter: Sona Mala <smala>
Component: jBPM CoreAssignee: Alessandro Lazarotti <alazarot>
Status: CLOSED EOL QA Contact: Sona Mala <smala>
Severity: medium Docs Contact: Dawn Eisner <deisner>
Priority: high    
Version: 6.0.0CC: kverlaen, mbaluch
Target Milestone: ER6   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
When you run a simulation, the Simulation engine does not mark elements which run in event subprocess. This state is displayed by the path results and the Simulation results for such elements exist in the tree of graphs. A user is likely to assume that the elements in event subprocess were ignored by simulation engine when they have actually been run. Cause: Simulation engine does not mark elements which run in event subprocess. This state is displayed by Path results. Simulation results for such elements exist in the tree of graphs. Consequence: An user may think that elements in event subprocess were ignored by simulation engine. Workaround (if any): Result:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:01:32 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
result for ER7
none
Expected result none

Description Sona Mala 2014-01-02 14:11:05 UTC
Created attachment 844564 [details]
BPMN2 definition

Description of problem:
Simulation results for the attached process are correct but diagram for path execution does not mark all nodes which was executed (fired).

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

Steps to Reproduce:
1. import attached process
2. run simulation (10 instancies, 10 minutes)
3. open Paths results for "Path 2"

Actual results:
see attached screenshot


Expected results:
see attached image (based on screenshot). All nodes which was fired should be marked. Do not care if they are in process or in subprocess.

Additional info:

Comment 1 Sona Mala 2014-01-02 14:12:46 UTC
Created attachment 844565 [details]
result for ER7

Comment 2 Sona Mala 2014-01-02 14:13:27 UTC
Created attachment 844568 [details]
Expected result

Comment 4 Sona Mala 2014-06-23 10:57:41 UTC
This issue is still relevant.

Comment 5 Tihomir Surdilovic 2014-12-16 14:28:25 UTC
The way path finding currently works with simulation is that by default only the core process paths are searched for. This is the default when you select "Find Paths" on the core modelling canvas area as well as in simulation results.

In order to view Embedded/Event Subprocess paths, you have to click on the Subprocess (make sure it is selected) and then run the Find Process Path option. This will focus on paths that are specific to this subprocess. The simulation results currently show only the basic process paths and do not look into the subprocesses. 

We can fix the simulation runtime in the future to also return the subprocess paths information by default if needed.

I have fixed the coloring problems with the event subprocesses being colored with black background whenever the path finder was executed. This was checked into designer master and the 6.2.x branches.

Comment 6 Sona Mala 2015-02-20 09:03:30 UTC
Please, can you implement it in the simulation engine. I can reproduce the described situation and I can confirm that changes from comment #5 are present in 6.1.0 ER5.

The expected result:
The simulation result for the path, which contains the signal event, marks all nodes in the event subprocess.

Comment 8 Maciej Swiderski 2015-02-20 15:44:09 UTC
fixed handling of event subprocess for both path finder and simulation execution

droolsjbpm-integration
master:
https://github.com/droolsjbpm/droolsjbpm-integration/commit/3edee1678411ebb0f9591fbce0c27d41099a83fd

since this has no acks for 6.1.0 it's left on master only for now. Please reassign back to me in case back port is needed.

Comment 9 Sona Mala 2015-02-20 16:11:42 UTC
There was jboss-bpms-6.1.0+ before I reassigned this issue. I think that this issue can be back ported.

Comment 10 Kris Verlaenen 2015-02-20 16:18:41 UTC
Reassigning for backport

Comment 11 Maciej Swiderski 2015-02-20 16:21:41 UTC
backported

droolsjbpm-integration
6.2.x:
https://github.com/droolsjbpm/droolsjbpm-integration/commit/a0e7cc51aa0bbe5c4289a33ca245855e0b7e42a4

Comment 12 Kris Verlaenen 2015-02-22 12:42:12 UTC
Reassigned for backport.

Comment 13 Maciej Swiderski 2015-02-23 10:45:24 UTC
this is already pack ported to 6.2.x see comment 11

Comment 14 Sona Mala 2015-03-10 15:28:46 UTC
This issue was verified on 6.1.0 ER6.

The path result in the simulation tab is same as in the "Expected result" attachment.