/usr/java/lib/xflow1.2.1/tests/xflow/server/case_condition/case_condition.xf.xml

1    <xflow name="case_condition"> 
2        <nodes> 
3            <node id="StartNode" type="Start"/> 
4            <node id="proc1" type="Process"/> 
5            <node id="proc2" type="Process"/> 
6            <node id="proc3" type="Process"/> 
7            <node id="proc4" type="Process"/> 
8            <node id="EndNode" type="End"/> 
9        </nodes> 
10       <transitions> 
11           <transition from="StartNode" to="proc1"/> 
12           <transition from="proc1" to="proc2"/> 
13           <transition from="proc1" to="proc2"> 
14              <rule>[getAge == 25]</rule> 
15           </transition> 
16           <transition from="proc1" to="proc3"> 
17              <rule>[getAge &gt; 25]</rule> 
18           </transition> 
19           <transition from="proc1" to="proc4"> 
20              <rule>[getAge &lt; 25]</rule> 
21           </transition> 
22           <transition from="proc2" to="EndNode"/> 
23           <transition from="proc3" to="EndNode"/> 
24           <transition from="proc4" to="EndNode"/> 
25       </transitions> 
26   </xflow>