example/WorkflowPatterns/04_ExclusiveChoice/ExclusiveChoice.pione in pione-0.4.2 vs example/WorkflowPatterns/04_ExclusiveChoice/ExclusiveChoice.pione in pione-0.5.0.alpha.1
- old
+ new
@@ -1,44 +1,37 @@
-param $COND := true
-
-Rule Main
+Rule ExclusiveChoice
output 'o1' or 'o2'
Flow
rule Init
- rule A
rule B
rule C
-End
-
-Rule Init
- output 'i1'.touch
-End
-
-Rule A
- input 'i1'
- output 'p1' or 'p2'
-Flow
- if $COND
- rule A1
+ if $COND
+ rule A1
else
- rule A2
+ rule A2
end
+
End
-Rule A1
- output 'p1'.touch
+Rule Init
+ output 'i1'
End
Rule A2
- output 'p2'.touch
+ input 'i1'
+ output 'p2'
End
Rule B
input 'p1'
- output 'o1'.touch
+ output 'o1'
End
Rule C
input 'p2'
- output 'o2'.touch
+ output 'o2'
End
+Rule A1
+ input 'i1'
+ output 'p1'
+End