Commit 60ac2971 authored by Adrien's avatar Adrien Committed by Romain Bioteau

allow condition on incoming sequence flow of a parallel gateway (#1568)

parent 98c48b76
...@@ -283,9 +283,7 @@ public class TransitionConditionContribution implements IExtensibleGridPropertyS ...@@ -283,9 +283,7 @@ public class TransitionConditionContribution implements IExtensibleGridPropertyS
if (eObject instanceof SequenceFlow) { if (eObject instanceof SequenceFlow) {
final SourceElement source = ((SequenceFlow) eObject).getSource(); final SourceElement source = ((SequenceFlow) eObject).getSource();
final boolean sourceIdAndGateway = source instanceof ANDGateway; final boolean sourceIdAndGateway = source instanceof ANDGateway;
final TargetElement target = ((SequenceFlow) eObject).getTarget(); return !(source instanceof BoundaryEvent) && !sourceIdAndGateway;
final boolean targetIsAndGateway = target instanceof ANDGateway && !(source instanceof XORGateway);
return !(source instanceof BoundaryEvent) && !sourceIdAndGateway && !targetIsAndGateway;
} }
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment