- Timestamp:
- 10 May 2006, 06:58:10 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/profiles/default/workflows/waeup_student_wf/definition.xml
r199 r200 3 3 title="CPS Workflow Definition" 4 4 state_variable="review_state" 5 initial_state="work" meta_type="CPS Workflow"> 6 <permission>Modify portal content</permission> 5 meta_type="CPS Workflow"> 7 6 <permission>View</permission> 8 7 <state state_id="work" title="Work"> 9 8 <exit-transition transition_id="create_content"/> 10 9 <exit-transition transition_id="cut_copy_paste"/> 11 <exit-transition transition_id="close"/> 12 <permission-map name="Modify portal content" 13 acquired="True"> 14 <permission-role>StudentManager</permission-role> 15 <permission-role>UniversityManager</permission-role> 16 <permission-role>Student</permission-role> 17 </permission-map> 18 <permission-map name="View" acquired="True"> 19 <permission-role>Student</permission-role> 10 <permission-map name="View" acquired="False"> 11 <permission-role>Manager</permission-role> 12 <permission-role>SectionManager</permission-role> 13 <permission-role>SectionReviewer</permission-role> 14 <permission-role>SectionReader</permission-role> 20 15 </permission-map> 21 16 </state> … … 23 18 new_state="work" trigger="USER" 24 19 before_script="" after_script=""> 25 <description>Intial transition like</description>26 20 27 21 <guard> 28 22 <guard-role>Manager</guard-role> 29 <guard-role>StudentManager</guard-role> 30 <guard-role>UniversityManager</guard-role> 31 <guard-role>Student</guard-role> 23 <guard-role>SectionManager</guard-role> 32 24 </guard> 33 25 <transition-behavior behavior_id="initial-create"/> … … 36 28 title="Create content" new_state="work" 37 29 trigger="USER" before_script="" after_script=""> 38 <description>Allow sub Object Create</description> 39 <action url="" category="">New</action> 30 40 31 <guard> 41 32 <guard-role>Manager</guard-role> 42 <guard-role>S tudentManager</guard-role>43 <guard-role> UniversityManager</guard-role>44 <guard-role>S tudent</guard-role>33 <guard-role>SectionManager</guard-role> 34 <guard-role>SectionReviewer</guard-role> 35 <guard-role>SectionReader</guard-role> 45 36 </guard> 46 37 <transition-behavior behavior_id="allow-sub-create"/> 47 <transition-behavior behavior_id="allow-sub- checkout"/>38 <transition-behavior behavior_id="allow-sub-publishing"/> 48 39 </transition> 49 40 <transition transition_id="cut_copy_paste" 50 title="Cut/Copy/Paste" new_state=" work"41 title="Cut/Copy/Paste" new_state="" 51 42 trigger="USER" before_script="" after_script=""> 52 <action url="" category="">New</action>43 53 44 <guard> 54 45 <guard-role>Manager</guard-role> 55 <guard-role>StudentManager</guard-role> 56 <guard-role>UniversityManager</guard-role> 46 <guard-role>SectionManager</guard-role> 47 <guard-role>SectionReviewer</guard-role> 48 <guard-role>SectionReader</guard-role> 57 49 </guard> 50 <transition-behavior behavior_id="allow-sub-move"/> 58 51 <transition-behavior behavior_id="allow-sub-delete"/> 59 <transition-behavior behavior_id="allow-sub-move"/>60 52 <transition-behavior behavior_id="allow-sub-copy"/> 61 53 </transition> 62 <variable variable_id="action" for_catalog="False"63 for_status="True" update_always="True">64 <description>The last transition</description>65 <default>66 67 <expression>transition/getId|nothing</expression>68 </default>69 <guard>70 </guard>71 </variable>72 <variable variable_id="actor" for_catalog="False"73 for_status="True" update_always="True">74 <description>The ID of the user who performed the last transition</description>75 <default>76 77 <expression>user/getId</expression>78 </default>79 <guard>80 </guard>81 </variable>82 <variable variable_id="comments" for_catalog="False"83 for_status="True" update_always="True">84 <description>Comments about the last transition</description>85 <default>86 87 <expression>python:state_change.kwargs.get('comment', '')</expression>88 </default>89 <guard>90 </guard>91 </variable>92 <variable variable_id="dest_container" for_catalog="False"93 for_status="True" update_always="True">94 <description>Destination container for the last paste/publish</description>95 <default>96 97 <expression>python:state_change.kwargs.get('dest_container', '')</expression>98 </default>99 <guard>100 </guard>101 </variable>102 <variable variable_id="review_history" for_catalog="False"103 for_status="False" update_always="False">104 <description>Provides access to workflow history</description>105 <default>106 107 <expression>state_change/getHistory</expression>108 </default>109 <guard>110 <guard-role>Manager</guard-role>111 <guard-role>WorkspaceManager</guard-role>112 <guard-role>WorkspaceMember</guard-role>113 <guard-role>WorkspaceReader</guard-role>114 <guard-role>Member</guard-role>115 </guard>116 </variable>117 <variable variable_id="time" for_catalog="False"118 for_status="True" update_always="True">119 <description>Time of the last transition</description>120 <default>121 122 <expression>state_change/getDateTime</expression>123 </default>124 <guard>125 </guard>126 </variable>127 54 </cps-workflow>
Note: See TracChangeset for help on using the changeset viewer.