Bug 1242824

Summary: [GSS] (6.1.z) Default attribute in exclusive gateway lost during BPMN2 import
Product: [Retired] JBoss BPMS Platform 6 Reporter: Martin Weiler <mweiler>
Component: jBPM DesignerAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED EOL QA Contact: Kirill Gaevskii <kgaevski>
Severity: high Docs Contact:
Priority: high    
Version: 6.1.0CC: jlocker, kgaevski, kverlaen, lpetrovi, mweiler, tsurdilo
Target Milestone: CR1   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1242410 Environment:
Last Closed: 2020-03-27 20:06:16 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:
Bug Depends On: 1242410    
Bug Blocks: 1249860    

Description Martin Weiler 2015-07-14 08:56:54 UTC
Description of problem:
After importing a process definition with an exclusive gateway, where one of the outgoing connections is marked as the default gateway, with no condition expression defined, the designer issues the following validation errors:

"Split node 'L4 Sending' [29] does not have a constraint for Connection L4 Sending [type=DROOLS_DEFAULT]" 

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


How reproducible:
Always

Steps to Reproduce:
1. Create a new process in the business-central designer
2. Import the attached BPMN2 file

Actual results:
Designer reports validation errors.

Expected results:
No validation errors related to the exclusive gateway.

Additional info:

Exclusive gateway definition *BEFORE* the import:

    <bpmn2:exclusiveGateway id="_33DDA623-C86C-4B00-A90E-9B803D416D61" drools:bgcolor="#f0e68c" drools:selectable="true" drools:bordercolor="#FF6600" drools:dg="No : _49C48C17-F4B9-44EA-ABC4-F1A239057A84" name="L4 Sending" gatewayDirection="Diverging" default="_49C48C17-F4B9-44EA-ABC4-F1A239057A84">

<bpmn2:incoming>_5941FF39-76E0-44D0-BD62-98C782420CFA</bpmn2:incoming>

<bpmn2:outgoing>_B610EC4E-2A9A-4C6E-ACA9-09907F83EA81</bpmn2:outgoing>

<bpmn2:outgoing>_49C48C17-F4B9-44EA-ABC4-F1A239057A84</bpmn2:outgoing>
    </bpmn2:exclusiveGateway>

Note that the 'default' attribute contains the reference to one of the outgoing connections. 

Defintion *AFTER* the import (using view sources view):

    <bpmn2:exclusiveGateway id="_9B77EAFD-7EC6-44A6-99C3-7618750BD9ED" drools:bgcolor="#f0e68c" drools:selectable="true" drools:bordercolor="#FF6600" drools:dg="No : _49C48C17-F4B9-44EA-ABC4-F1A239057A84" name="L4 Sending" gatewayDirection="Diverging"> 

Note the missing 'default' attribute.

--- Additional comment from Martin Weiler on 2015-07-13 11:47:21 CEST ---

Adding process definition as private attachment, as it has been provided by a customer.

--- Additional comment from Tihomir Surdilovic on 2015-07-14 01:26:07 CEST ---

Was able to reproduce on small scale.
master commit: https://github.com/droolsjbpm/jbpm-designer/commit/253549601

Comment 8 Kirill Gaevskii 2015-09-02 10:34:34 UTC
Default attribute is not disappear any more for 6.1.3.CR1. Verified.