Created attachment 989674 [details]
project with bpmn processes
*** Description of problem:
In bpmn process can be declared Intermediate Link Events. They serve as 'go to' pattern.
Intermediate Throw Link Event == from
Intermediate Catch Link Event == to
By specification, it is possible to have defined two Throw Link Events both targeting to the same Catch Link Event.
The problem is, I can't run such process. In the attachment 'BPMN2LinkEventNotOk.bpmn2' represents such process.
*** Version-Release number of selected component (if applicable):
*** How reproducible:
1.) Open the attached project and run class JbpmTest as JUnit test.
2.) This exception will be thrown "java.lang.IllegalArgumentException: There should be at least 2 link events to make a connection"
3.) Change this string 'BPMN2LinkEventNotOk' to 'BPMN2LinkEventOk' in both test methods
4.) Again run class as JUnit test. Both test methods will pass.
*** Expected results:
Tests methods should pass for both variants. It means 'BPMN2LinkEventNotOk' and 'BPMN2LinkEventOk'
Created attachment 989675 [details]
Please, use this attachment for bug reproduction.
Comment on attachment 989675 [details]
Sorry, my bad. First attachment is the right.
Test concerning this issue:
When I tried to run the unit test with String "BPMN2LinkEventOk", the test is still throwing the following error:
java.lang.IllegalArgumentException: There should be at least 2 link events to make a connection
Can you elaborate on how you are making the case where the string "BPMN2LinkEventOk" work?
Sorry, I forgot to mention it. It is enough to move temporarily 'src/main/resorces/com/redhat/jomarko/BPMN2-LinkEventNotOK.bpmn2' for example into 'src/main/java/com/redhat/jomarko/BPMN2-LinkEventNotOK.bpmn2' if you want to run BPMN2LinkEventOk process.