Ignore:
Timestamp:
30 Aug 2006, 09:33:36 (18 years ago)
Author:
Henrik Bettermann
Message:

permissions and scripts for student workflow defined
workflow branch for subobjects added

Location:
WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf
Files:
7 added
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml

    r436 r449  
    44              state_variable="review_state"
    55              meta_type="CPS Workflow">
     6 <permission>Modify portal content</permission>
    67 <permission>View</permission>
     8 <state state_id="admission_pin_entered" title="">
     9  <exit-transition transition_id="request_admission"/>
     10 </state>
     11 <state state_id="admission_rejected" title="">
     12  <exit-transition transition_id="finally_reject"/>
     13 </state>
     14 <state state_id="admission_requested" title="">
     15  <exit-transition transition_id="pume_fail"/>
     16  <exit-transition transition_id="pume_pass"/>
     17 </state>
     18 <state state_id="admitted" title="">
     19  <exit-transition transition_id="enter_clearance_pin"/>
     20 </state>
     21 <state state_id="clearance_pin_entered" title="">
     22  <exit-transition transition_id="request_clearence"/>
     23 </state>
     24 <state state_id="cleared_and_validated" title="">
     25 </state>
     26 <state state_id="clearence_requested" title="">
     27  <exit-transition transition_id="clear_and_validate"/>
     28  <exit-transition transition_id="reject_clearance"/>
     29 </state>
     30 <state state_id="closed" title="">
     31  <exit-transition transition_id="open"/>
     32 </state>
     33 <state state_id="created" title="">
     34  <exit-transition transition_id="enter_admission_pin"/>
     35  <exit-transition transition_id="open"/>
     36  <permission-map name="Modify portal content"
     37                  acquired="False">
     38   <permission-role>Manager</permission-role>
     39   <permission-role>SectionManager</permission-role>
     40  </permission-map>
     41  <permission-map name="View" acquired="True">
     42  </permission-map>
     43 </state>
     44 <state state_id="finally_rejected" title="">
     45 </state>
     46 <state state_id="opened" title="">
     47  <exit-transition transition_id="close"/>
     48  <permission-map name="Modify portal content"
     49                  acquired="True">
     50   <permission-role>Owner</permission-role>
     51  </permission-map>
     52  <permission-map name="View" acquired="True">
     53  </permission-map>
     54 </state>
    755 <state state_id="pume_failed" title="">
    856  <exit-transition transition_id="finally_reject"/>
     
    1260  <exit-transition transition_id="reject_admission"/>
    1361 </state>
    14  <state state_id="admission_pin_entered" title="">
    15   <exit-transition transition_id="request_admission"/>
    16  </state>
    17  <state state_id="admission_rejected" title="">
    18   <exit-transition transition_id="finally_reject"/>
    19  </state>
    20  <state state_id="admission_requested" title="">
    21   <exit-transition transition_id="pume_fail"/>
    22   <exit-transition transition_id="pume_pass"/>
    23  </state>
    24  <state state_id="admitted" title="">
    25   <exit-transition transition_id="enter_clearance_pin"/>
    26  </state>
    27  <state state_id="clearance_pin_entered" title="">
    28   <exit-transition transition_id="request_clearence"/>
    29  </state>
    30  <state state_id="cleared_and_validated" title="">
    31  </state>
    32  <state state_id="clearence_requested" title="">
    33   <exit-transition transition_id="clear_and_validate"/>
    34   <exit-transition transition_id="reject_clearance"/>
    35  </state>
    36  <state state_id="finally_rejected" title="">
    37  </state>
    38  <state state_id="sleeping_mode" title="">
    39   <exit-transition transition_id="enter_admission_pin"/>
    40  </state>
    41  <transition transition_id="pume_fail" title=""
    42              new_state="pume_failed" trigger="USER"
    43              before_script="" after_script="">
    44  
    45   <guard>
    46   </guard>
    47  </transition>
    48  <transition transition_id="pume_pass" title=""
    49              new_state="pume_passed" trigger="USER"
    50              before_script="" after_script="">
    51  
    52   <guard>
    53   </guard>
    54  </transition>
     62 <state state_id="rejected" title="">
     63 </state>
    5564 <transition transition_id="admit" title=""
    5665             new_state="admitted" trigger="USER"
    57              before_script="" after_script="">
    58  
    59   <guard>
    60   </guard>
    61   <transition-behavior behavior_id="initial-create"/>
     66             before_script="" after_script="open_clearance">
     67 
     68  <guard>
     69   <guard-role>Manager</guard-role>
     70   <guard-role>SectionManager</guard-role>
     71  </guard>
    6272 </transition>
    6373 <transition transition_id="clear_and_validate" title=""
    6474             new_state="cleared_and_validated"
    65              trigger="USER" before_script="" after_script="">
    66  
    67   <guard>
    68   </guard>
     75             trigger="USER" before_script=""
     76             after_script="open_personal">
     77 
     78  <guard>
     79   <guard-role>Manager</guard-role>
     80   <guard-role>SectionManager</guard-role>
     81  </guard>
     82 </transition>
     83 <transition transition_id="close" title=""
     84             new_state="closed" trigger="USER"
     85             before_script="" after_script="">
     86 
     87  <guard>
     88   <guard-role>Manager</guard-role>
     89   <guard-role>SectionManager</guard-role>
     90  </guard>
     91 </transition>
     92 <transition transition_id="create" title=""
     93             new_state="created" trigger="USER"
     94             before_script="" after_script="">
     95 
     96  <guard>
     97  </guard>
     98  <transition-behavior behavior_id="initial-create"/>
    6999 </transition>
    70100 <transition transition_id="enter_admission_pin" title=""
    71101             new_state="admission_pin_entered"
    72              trigger="USER" before_script="" after_script="">
    73  
    74   <guard>
     102             trigger="USER" before_script=""
     103             after_script="open_admission">
     104 
     105  <guard>
     106   <guard-role>Manager</guard-role>
     107   <guard-role>SectionManager</guard-role>
    75108  </guard>
    76109 </transition>
     
    89122  </guard>
    90123 </transition>
     124 <transition transition_id="open" title=""
     125             new_state="opened" trigger="USER"
     126             before_script="" after_script="">
     127 
     128  <guard>
     129   <guard-role>Manager</guard-role>
     130   <guard-role>SectionManager</guard-role>
     131  </guard>
     132 </transition>
     133 <transition transition_id="pume_fail" title=""
     134             new_state="pume_failed" trigger="USER"
     135             before_script="" after_script="">
     136 
     137  <guard>
     138  </guard>
     139 </transition>
     140 <transition transition_id="pume_pass" title=""
     141             new_state="pume_passed" trigger="USER"
     142             before_script="" after_script="">
     143 
     144  <guard>
     145  </guard>
     146 </transition>
     147 <transition transition_id="reject" title=""
     148             new_state="rejected" trigger="USER"
     149             before_script="" after_script="">
     150 
     151  <guard>
     152  </guard>
     153 </transition>
    91154 <transition transition_id="reject_admission" title=""
    92155             new_state="admission_rejected" trigger="USER"
     
    98161 <transition transition_id="reject_clearance" title=""
    99162             new_state="clearance_pin_entered"
    100              trigger="USER" before_script="" after_script="">
    101  
    102   <guard>
     163             trigger="USER" before_script="open_clearance"
     164             after_script="">
     165 
     166  <guard>
     167   <guard-role>Manager</guard-role>
     168   <guard-role>SectionManager</guard-role>
    103169  </guard>
    104170 </transition>
    105171 <transition transition_id="request_admission" title=""
    106172             new_state="admission_requested" trigger="USER"
    107              before_script="" after_script="">
    108  
    109   <guard>
     173             before_script="" after_script="close_admission">
     174 
     175  <guard>
     176   <guard-role>Manager</guard-role>
     177   <guard-role>SectionManager</guard-role>
    110178  </guard>
    111179 </transition>
    112180 <transition transition_id="request_clearence" title=""
    113181             new_state="clearence_requested" trigger="USER"
    114              before_script="" after_script="">
    115  
    116   <guard>
    117   </guard>
    118  </transition>
     182             before_script="" after_script="close_clearance">
     183 
     184  <guard>
     185   <guard-role>Manager</guard-role>
     186   <guard-role>SectionManager</guard-role>
     187  </guard>
     188 </transition>
     189 <script script_id="close_admission" type="Script (Python)"
     190         filename="workflows/waeup_student_wf/scripts/close_admission.py"/>
     191 <script script_id="close_clearance" type="Script (Python)"
     192         filename="workflows/waeup_student_wf/scripts/close_clearance.py"/>
     193 <script script_id="close_personal" type="Script (Python)"
     194         filename="workflows/waeup_student_wf/scripts/close_personal.py"/>
     195 <script script_id="open_admission" type="Script (Python)"
     196         filename="workflows/waeup_student_wf/scripts/open_admission.py"/>
     197 <script script_id="open_clearance" type="Script (Python)"
     198         filename="workflows/waeup_student_wf/scripts/open_clearance.py"/>
     199 <script script_id="open_personal" type="Script (Python)"
     200         filename="workflows/waeup_student_wf/scripts/open_personal.py"/>
    119201</cps-workflow>
Note: See TracChangeset for help on using the changeset viewer.