Bug 947472 - Default Gate property for Diverging Inclusive Gateway is not generating the jBPM5 expected output
Summary: Default Gate property for Diverging Inclusive Gateway is not generating the j...
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: jBPM 5
Version: BRMS 5.3.1
Hardware: All
OS: All
unspecified
high
Target Milestone: GA
: ---
Assignee: Kris Verlaenen
QA Contact: Marek Baluch
URL:
Whiteboard:
Depends On:
Blocks: 1080634
TreeView+ depends on / blocked
 
Reported: 2013-04-02 13:53 UTC by Musharraf Hussain
Modified: 2021-04-09 12:48 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBPM-3704 0 Minor Resolved Default Gate property for Diverging Inclusive Gateway is not generating the jBPM5 expected output 2016-03-30 11:56:41 UTC

Description Musharraf Hussain 2013-04-02 13:53:49 UTC
Description of problem:
This BugZilla is raised to address the issue mentioned in this JIRA [1] so that the relevant fix can be incorporated in the future releases of JBoss Enterprise BRMS. Here is the issue description for reference:

The 'DefaultGateway' property of a Diverging Inclusive OR generates the following output:
<bpmn2:inclusiveGateway ... drools:dg="X" gatewayDirection="Diverging">

The expected format for jBPM5 should be:
<bpmn2:inclusiveGateway ... default="X" gatewayDirection="Diverging">

The problem here is not only the xml attribute being used but within the Designer the user should be able to set the id of the default workflow, which is something he doesn't know in advance. The editor for this property should show a list of all the outgoing flows of the gateway (maybe showing their names) so the user can easily select the one he wants.

[1] https://issues.jboss.org/browse/JBPM-3704

Version-Release number of selected component (if applicable):
- jBPM5.2
- jBPM Designer Version: 2.3.1.GA

How reproducible:

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Workaround as suggested in the JIRA : Once the bpmn2 file is generated change the 'drools:dg' attribute for a 'default' attribute.

Comment 1 JBoss JIRA Server 2013-05-14 18:32:57 UTC
Tihomir Surdilovic <tsurdilo> made a comment on jira JBPM-3704

Updated the default selection to be a dynamic dropdown with sequence flow names and ids of all outgoing sequence flows of the gateway for easier selection.

Comment 2 JBoss JIRA Server 2013-05-14 18:33:07 UTC
Tihomir Surdilovic <tsurdilo> updated the status of jira JBPM-3704 to Resolved

Comment 3 JBoss JIRA Server 2013-05-14 18:33:07 UTC
Tihomir Surdilovic <tsurdilo> made a comment on jira JBPM-3704

desolved

Comment 4 JBoss JIRA Server 2013-05-14 18:33:19 UTC
Tihomir Surdilovic <tsurdilo> made a comment on jira JBPM-3704

resolved

Comment 6 Marek Baluch 2014-06-27 13:18:50 UTC
Please note that this issue is not fixed. 

The generated code still looks like:

<bpmn2:inclusiveGateway ... drools:dg="X" name="" gatewayDirection="Diverging">
    <!-- ... -->
</bpmn2:inclusiveGateway>

Moreover if I set the "DefaultGateway" parameter to some value and save the process then this value will not be present when the designer reloads.

The value I have used is the same as the name of an outgoing connection.

Comment 7 Tihomir Surdilovic 2014-06-30 18:00:48 UTC
Can you put steps to reproduce your issue? When doing a simple test it seems fine. 
Saving and re-opening process persists the default gateway selected by user.


<bpmn2:exclusiveGateway ... default="_732C73F9-370E-4CE9-BA01-3226133513BA">
      <bpmn2:incoming>_920D0EDF-A600-43CF-8358-478E93D55266</bpmn2:incoming>
      <bpmn2:outgoing>_732C73F9-370E-4CE9-BA01-3226133513BA</bpmn2:outgoing>
      <bpmn2:outgoing>_D9E80B18-0849-4DD6-ACCD-29660194466B</bpmn2:outgoing>
</bpmn2:exclusiveGateway>

Comment 8 Tihomir Surdilovic 2014-06-30 18:31:17 UTC
the editor is incorrect for inclusive gateways - putting back to assigned

Comment 9 Tihomir Surdilovic 2014-06-30 19:00:18 UTC
fix for inclusive in designer master and 6.1.x branches:

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

6.1.x - https://github.com/droolsjbpm/jbpm-designer/commit/bc5646388

Comment 10 Petr Široký 2014-07-01 11:37:52 UTC
I think the commit needs to be backported also into 2.3.x branch, so it will end up in the patch.

Comment 12 Marek Baluch 2014-07-18 08:07:55 UTC
Verified on latest patched binaries.

Both attributes are now present (drools:dg and default).


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