Bug 757185

Summary: Parser doesn't support 'Unspecified' and 'Mixed' gateway directions.
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Petr Široký <psiroky>
Component: jBPM 5Assignee: Kris Verlaenen <kverlaen>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GA   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
An IllegalArgumentException exception is thrown by the parser when 'Unspecified' or 'Mixed' gateway directions are used in process definition files. This is because types of gateways are not currently supported.
Story Points: ---
Clone Of: Environment:
Last Closed: 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
BPMN file that contains 'Unspecified' and 'Mixed' gateway directions.
none
Stacktrace none

Description Petr Široký 2011-11-25 17:51:38 UTC
Description of problem:
IllegalArgumentException is thrown by parser when 'Unspecified' or 'Mixed' gateway directions are used in process definition file (see example file). 

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

How reproducible:
Always

Steps to Reproduce:
1. Try to create knowledge base from attached bpmn file.
  
Actual results:
java.lang.IllegalArgumentException: Unknown gateway direction: Mixed

Expected results:
No exception, knowledge base is created.

Comment 1 Petr Široký 2011-11-25 17:52:52 UTC
Created attachment 536385 [details]
BPMN file that contains 'Unspecified' and 'Mixed' gateway directions.

Comment 2 Petr Široký 2011-11-25 17:56:57 UTC
Created attachment 536396 [details]
Stacktrace

Comment 3 Kris Verlaenen 2012-01-02 19:30:21 UTC
Correct, gateways with gateway direction Mixed or Unspecified or no gatewayDirection attribute specified, cannot be parsed correctly, as these gateway types are currently not (yet) supported by jBPM (hence the error message).  While we might add support for these in the editor(s) in the future, I would not recommend adding support for this in the runtime parser for this release.

Comment 4 lcarlon 2012-05-31 00:23:21 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
IllegalArgumentException is thrown by parser when 'Unspecified' or 'Mixed' gateway directions are used in process definition file.