[jboss-svn-commits] JBL Code SVN: r24640 - labs/jbossrules/branches/mfossati/drools-osworkflow/src/test/resources.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Jan 9 09:16:35 EST 2009


Author: mfossati
Date: 2009-01-09 09:16:35 -0500 (Fri, 09 Jan 2009)
New Revision: 24640

Modified:
   labs/jbossrules/branches/mfossati/drools-osworkflow/src/test/resources/simple2rf.rf
Log:
initial actions added

Modified: labs/jbossrules/branches/mfossati/drools-osworkflow/src/test/resources/simple2rf.rf
===================================================================
--- labs/jbossrules/branches/mfossati/drools-osworkflow/src/test/resources/simple2rf.rf	2009-01-09 14:13:30 UTC (rev 24639)
+++ labs/jbossrules/branches/mfossati/drools-osworkflow/src/test/resources/simple2rf.rf	2009-01-09 14:16:35 UTC (rev 24640)
@@ -5,10 +5,19 @@
          type="OSWorkflow" name="simple2" id="simple2" package-name="org.drools.osworkflow" >
 
   <header>
+  		<initial-actions>
+		<action id="1" name="Start Workflow">
+			<results>
+				<unconditional-result old-status="Finished"
+					status="Active" step="1" />
+			</results>
+		</action>
+	</initial-actions>
   </header>
 
   <nodes>
     <split id="1001" name="split" type="1" />
+    
     <step id="1" name="Stage 1" >
       <action id="2" name="Finish Stage 1">
         <restrict-to>
@@ -26,6 +35,7 @@
         </results>
       </action>
     </step>
+    
     <step id="2" name="Stage 2" >
       <action id="3" name="Finish Stage 2">
         <restrict-to>
@@ -43,7 +53,9 @@
         </results>
       </action>
     </step>
-    <join id="2001" name="join" type="1" />
+    
+    <join id="2001" name="join"  type="1" />
+    
     <step id="3" name="Stage 3" >
       <action id="4" name="Finish Stage 3">
         <restrict-to>
@@ -61,8 +73,27 @@
         </results>
       </action>
     </step>
+    
     <step id="4" name="Stage 4" >
+    <action id="5" name="Finish Stage 4">
+        <restrict-to>
+          <conditions>
+            <condition type="class">
+              <arg name="status">Active</arg>
+              <arg name="class.name">
+                   com.opensymphony.workflow.util.StatusCondition
+                </arg>
+            </condition>
+          </conditions>
+        </restrict-to>
+        <results>
+          <unconditional-result old-status="Finished" step="5"/>
+        </results>
+      </action>
     </step>
+    
+    <step id="5" name="Stage 5" >
+    </step>
   </nodes>
 
   <connections>
@@ -73,5 +104,6 @@
     <connection from="1001" to="3" toType="Active" />
     <connection from="2001" to="4" toType="Active" />
   </connections>
+  
 
 </process>
\ No newline at end of file




More information about the jboss-svn-commits mailing list