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 643)
+++ WAeUP_SRP/trunk/profiles/default/workflows/waeup_course_registration_wf/definition.xml	(revision 659)
@@ -38,5 +38,5 @@
              new_state="created" trigger="USER"
              before_script="" after_script="">
-
+  
   <guard>
    <guard-role>Manager</guard-role>
@@ -49,5 +49,5 @@
              new_state="" trigger="USER" before_script=""
              after_script="">
-
+  
   <guard>
    <guard-role>Manager</guard-role>
@@ -61,5 +61,5 @@
              new_state="school_fee_pin_entered"
              trigger="USER" before_script="" after_script="">
-
+  
   <guard>
    <guard-role>Manager</guard-role>
@@ -71,5 +71,5 @@
              new_state="finished" trigger="USER"
              before_script="" after_script="">
-
+  
   <guard>
    <guard-role>Manager</guard-role>
@@ -80,5 +80,5 @@
              new_state="school_fee_pin_entered"
              trigger="USER" before_script="" after_script="">
-
+  
   <guard>
    <guard-role>Manager</guard-role>
@@ -89,5 +89,5 @@
              new_state="passed" trigger="USER"
              before_script="" after_script="">
-
+  
   <guard>
    <guard-role>Manager</guard-role>
@@ -98,5 +98,5 @@
              new_state="probation" trigger="USER"
              before_script="" after_script="">
-
+  
   <guard>
    <guard-role>Manager</guard-role>
@@ -107,5 +107,5 @@
              new_state="courses_registered" trigger="USER"
              before_script="" after_script="">
-
+  
   <guard>
    <guard-role>Manager</guard-role>
@@ -117,5 +117,5 @@
              new_state="failed" trigger="USER"
              before_script="" after_script="">
-
+  
   <guard>
    <guard-role>Manager</guard-role>
@@ -126,5 +126,5 @@
              new_state="validated" trigger="USER"
              before_script="" after_script="">
-
+  
   <guard>
    <guard-role>Manager</guard-role>
@@ -132,4 +132,3 @@
   </guard>
  </transition>
-
 </cps-workflow>
Index: WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_subobject_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_subobject_wf/definition.xml	(revision 643)
+++ WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_subobject_wf/definition.xml	(revision 659)
@@ -14,17 +14,10 @@
   <exit-transition transition_id="open"/>
   <permission-map name="Modify portal content"
-                  acquired="False">
-   <permission-role>Owner</permission-role>
-   <permission-role>Manager</permission-role>
-   <permission-role>SectionManager</permission-role>
+                  acquired="True">
   </permission-map>
-  <permission-map name="View" acquired="False">
-   <permission-role>Owner</permission-role>
-   <permission-role>Manager</permission-role>
-   <permission-role>SectionManager</permission-role>
+  <permission-map name="View" acquired="True">
   </permission-map>
   <permission-map name="WAeUPModify own content"
-                  acquired="False">
-   <permission-role>Owner</permission-role>
+                  acquired="True">
   </permission-map>
  </state>
@@ -32,14 +25,12 @@
   <exit-transition transition_id="close"/>
   <permission-map name="Modify portal content"
-                  acquired="False">
+                  acquired="True">
    <permission-role>Owner</permission-role>
-   <permission-role>SectionManager</permission-role>
-   <permission-role>Manager</permission-role>
   </permission-map>
-  <permission-map name="View" acquired="False">
+  <permission-map name="View" acquired="True">
    <permission-role>Owner</permission-role>
   </permission-map>
   <permission-map name="WAeUPModify own content"
-                  acquired="False">
+                  acquired="True">
    <permission-role>Owner</permission-role>
   </permission-map>
@@ -50,5 +41,7 @@
   
   <guard>
-   <guard-permission>WAeUPModify own content</guard-permission>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>Owner</guard-role>
   </guard>
  </transition>
@@ -67,7 +60,8 @@
   
   <guard>
-   <guard-permission>WAeUPModify own content</guard-permission>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>Owner</guard-role>
   </guard>
  </transition>
 </cps-workflow>
-
Index: WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml	(revision 643)
+++ WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml	(revision 659)
@@ -7,5 +7,5 @@
  <permission>View</permission>
  <state state_id="admission_applied" title="">
- <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="create_content"/>
   <exit-transition transition_id="pume_fail"/>
   <exit-transition transition_id="pume_pass"/>
@@ -21,5 +21,4 @@
   <permission-map name="Modify portal content"
                   acquired="True">
-   <permission-role>Anonymous</permission-role>
   </permission-map>
   <permission-map name="View" acquired="True">
@@ -35,7 +34,4 @@
   <exit-transition transition_id="reject_clearance"/>
  </state>
- <state state_id="closed" title="">
-  <exit-transition transition_id="open"/>
- </state>
  <state state_id="created" title="">
   <exit-transition transition_id="create_content"/>
@@ -43,8 +39,5 @@
   <exit-transition transition_id="open"/>
   <permission-map name="Modify portal content"
-                  acquired="False">
-   <permission-role>Owner</permission-role>
-   <permission-role>Manager</permission-role>
-   <permission-role>SectionManager</permission-role>
+                  acquired="True">
   </permission-map>
   <permission-map name="View" acquired="True">
@@ -52,13 +45,4 @@
  </state>
  <state state_id="finally_rejected" title="">
- </state>
- <state state_id="opened" title="">
-  <exit-transition transition_id="close"/>
-  <permission-map name="Modify portal content"
-                  acquired="True">
-   <permission-role>Owner</permission-role>
-  </permission-map>
-  <permission-map name="View" acquired="True">
-  </permission-map>
  </state>
  <state state_id="pume_failed" title="">
@@ -99,13 +83,4 @@
   </guard>
  </transition>
- <transition transition_id="close" title=""
-             new_state="closed" trigger="USER"
-             before_script="" after_script="">
-  
-  <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
-  </guard>
- </transition>
  <transition transition_id="create" title=""
              new_state="created" trigger="USER"
@@ -122,7 +97,9 @@
   
   <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_application_pin" title=""
@@ -131,6 +108,7 @@
   
   <guard>
-   <guard-permission>Modify portal content</guard-permission>
-   <guard-permission></guard-permission>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>Owner</guard-role>
   </guard>
  </transition>
@@ -153,13 +131,4 @@
    <guard-role>SectionManager</guard-role>
    <guard-role>ClearanceOfficer</guard-role>
-  </guard>
- </transition>
- <transition transition_id="open" title=""
-             new_state="opened" trigger="USER"
-             before_script="" after_script="">
-  
-  <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
   </guard>
  </transition>
@@ -214,4 +183,14 @@
   </guard>
  </transition>
+ <variable variable_id="time" for_catalog="True"
+           for_status="True" update_always="True">
+  <description>Time of the last transition</description>
+  <default>
+   
+   <expression>state_change/getDateTime</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
  <script script_id="open_application_personal"
          type="Script (Python)"
Index: WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/scripts/open_application_personal.py
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/scripts/open_application_personal.py	(revision 643)
+++ WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/scripts/open_application_personal.py	(revision 659)
@@ -1,3 +1,3 @@
-## Script (Python) "open_personal"
+## Script (Python) "open_application_personal"
 ##bind container=container
 ##bind context=context
