Index: /WAeUP_SRP/trunk/profiles/default/workflows/waeup_course_registration_wf/definition.xml
===================================================================
--- /WAeUP_SRP/trunk/profiles/default/workflows/waeup_course_registration_wf/definition.xml	(revision 1142)
+++ /WAeUP_SRP/trunk/profiles/default/workflows/waeup_course_registration_wf/definition.xml	(revision 1142)
@@ -0,0 +1,161 @@
+<?xml version="1.0"?>
+<cps-workflow workflow_id="waeup_course_registration_wf"
+              title="CPS Workflow Definition"
+              state_variable="review_state"
+              meta_type="CPS Workflow">
+ <permission>Modify portal content</permission>
+ <permission>View</permission>
+ <state state_id="category_A" title="">
+ </state>
+ <state state_id="category_B" title="">
+ </state>
+ <state state_id="category_C" title="">
+ </state>
+ <state state_id="category_D" title="">
+ </state>
+ <state state_id="category_E" title="">
+ </state>
+ <state state_id="category_F" title="">
+ </state>
+ <state state_id="courses_registered" title="">
+  <exit-transition transition_id="notify_change_courses"/>
+  <exit-transition transition_id="validate"/>
+ </state>
+ <state state_id="created" title="">
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="enter_school_fee_pin"/>
+  <exit-transition transition_id="pass_A"/>
+  <exit-transition transition_id="pass_B"/>
+  <exit-transition transition_id="probate_C"/>
+  <exit-transition transition_id="reject_D"/>
+  <exit-transition transition_id="reject_E"/>
+  <exit-transition transition_id="reject_F"/>
+ </state>
+ <state state_id="school_fee_pin_entered" title="">
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="register_courses"/>
+ </state>
+ <state state_id="validated" title="">
+  <exit-transition transition_id="pass_A"/>
+  <exit-transition transition_id="pass_B"/>
+  <exit-transition transition_id="probate_C"/>
+  <exit-transition transition_id="reject_D"/>
+  <exit-transition transition_id="reject_E"/>
+  <exit-transition transition_id="reject_F"/>
+ </state>
+ <transition transition_id="create" title="Initial creation"
+             new_state="created" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-create"/>
+  <transition-behavior behavior_id="initial-create"/>
+ </transition>
+ <transition transition_id="create_content" title=""
+             new_state="" trigger="USER" before_script=""
+             after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>Owner</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-create"/>
+  <transition-behavior behavior_id="allow-sub-delete"/>
+ </transition>
+ <transition transition_id="enter_school_fee_pin" title=""
+             new_state="school_fee_pin_entered"
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>Owner</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="notify_change_courses" title=""
+             new_state="school_fee_pin_entered"
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="pass_A" title=""
+             new_state="category_A" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="pass_B" title=""
+             new_state="category_B" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="probate_C" title=""
+             new_state="category_C" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="register_courses" title=""
+             new_state="courses_registered" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>Owner</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="reject_D" title=""
+             new_state="category_D" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="reject_E" title=""
+             new_state="category_E" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="reject_F" title=""
+             new_state="category_F" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="validate" title=""
+             new_state="validated" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+</cps-workflow>
