1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<list xsi:noNamespaceSchemaLocation="http://repository.hippocms.org/schemas/workflow/workflow-queries.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
3 |
<query> |
4 |
<id class="string">waitingForPublicationReview</id> |
5 |
<internationalization> |
6 |
<name>cms.workflows.reviewedactions.documentswaitingforpublicationreview.name</name> |
7 |
<description>cms.workflows.reviewedactions.documentswaitingforpublicationreview.description</description> |
8 |
</internationalization> |
9 |
<authorization> |
10 |
<namespace>http://hippo.nl/cms/roles</namespace> |
11 |
<name>editor</name> |
12 |
</authorization> |
13 |
<condition class="equal"> |
14 |
<field class="current-steps-step"/> |
15 |
<value class="int">4</value> |
16 |
</condition> |
17 |
<dataretriever>nl.hippo.cms.workflows.reviewedactions.WaitingForPublicationReviewDataRetriever</dataretriever> |
18 |
<actions> |
19 |
<!-- publish --> |
20 |
<action> |
21 |
<id>hippo.cms.publish</id> |
22 |
<label>cms.workflows.reviewedactions.publish</label> |
23 |
</action> |
24 |
<!-- disapprovePublication --> |
25 |
<action> |
26 |
<id>hippo.cms.disapprovePublication</id> |
27 |
<label>cms.workflows.reviewedactions.disapprovepublication</label> |
28 |
</action> |
29 |
</actions> |
30 |
</query> |
31 |
|
32 |
<query> |
33 |
<id class="string">waitingForDeletionReview</id> |
34 |
<internationalization> |
35 |
<name>cms.workflows.reviewedactions.documentswaitingfordeletionreview.name</name> |
36 |
<description>cms.workflows.reviewedactions.documentswaitingfordeletionreview.description</description> |
37 |
</internationalization> |
38 |
<authorization> |
39 |
<namespace>http://hippo.nl/cms/roles</namespace> |
40 |
<name>editor</name> |
41 |
</authorization> |
42 |
<condition class="equal"> |
43 |
<field class="current-steps-step"/> |
44 |
<value class="int">5</value> |
45 |
</condition> |
46 |
<dataretriever>nl.hippo.cms.workflows.reviewedactions.WaitingForDeletionReviewDataRetriever</dataretriever> |
47 |
<actions> |
48 |
<!-- delete --> |
49 |
<action> |
50 |
<id>hippo.cms.delete</id> |
51 |
<label>cms.workflows.reviewedactions.delete</label> |
52 |
</action> |
53 |
<!-- disapproveDeletion --> |
54 |
<action> |
55 |
<id>hippo.cms.disapproveDeletion</id> |
56 |
<label>cms.workflows.reviewedactions.disapprovedeletion</label> |
57 |
</action> |
58 |
</actions> |
59 |
</query> |
60 |
|
61 |
<query> |
62 |
<id class="string">disapprovedPublication</id> |
63 |
<internationalization> |
64 |
<name>cms.workflows.reviewedactions.disapprovedpublicationdocuments.name</name> |
65 |
<description>cms.workflows.reviewedactions.disapprovedpublicationdocuments.description</description> |
66 |
</internationalization> |
67 |
<authorization> |
68 |
<namespace>http://hippo.nl/cms/roles</namespace> |
69 |
<name>author</name> |
70 |
</authorization> |
71 |
<condition class="and"> |
72 |
<subconditions> |
73 |
<equal> |
74 |
<field class="current-steps-step"/> |
75 |
<value class="int">2</value> |
76 |
</equal> |
77 |
<equal> |
78 |
<field class="current-steps-status"/> |
79 |
<value class="string">publicationDisapproved</value> |
80 |
</equal> |
81 |
</subconditions> |
82 |
</condition> |
83 |
<dataretriever>nl.hippo.cms.workflows.reviewedactions.DisapprovedPublicationDataRetriever</dataretriever> |
84 |
<actions> |
85 |
<!-- dismiss --> |
86 |
<action> |
87 |
<id>hippo.cms.save</id> |
88 |
<label>cms.workflows.reviewedactions.dismiss</label> |
89 |
</action> |
90 |
</actions> |
91 |
</query> |
92 |
|
93 |
<query> |
94 |
<id class="string">disapprovedDeletion</id> |
95 |
<internationalization> |
96 |
<name>cms.workflows.reviewedactions.disapproveddeletiondocuments.name</name> |
97 |
<description>cms.workflows.reviewedactions.disapproveddeletiondocuments.description</description> |
98 |
</internationalization> |
99 |
<authorization> |
100 |
<namespace>http://hippo.nl/cms/roles</namespace> |
101 |
<name>author</name> |
102 |
</authorization> |
103 |
<condition class="and"> |
104 |
<subconditions> |
105 |
<equal> |
106 |
<field class="current-steps-step"/> |
107 |
<value class="int">2</value> |
108 |
</equal> |
109 |
<equal> |
110 |
<field class="current-steps-status"/> |
111 |
<value class="string">deletionDisapproved</value> |
112 |
</equal> |
113 |
</subconditions> |
114 |
</condition> |
115 |
<dataretriever>nl.hippo.cms.workflows.reviewedactions.DisapprovedDeletionDataRetriever</dataretriever> |
116 |
<actions> |
117 |
<!-- dismiss --> |
118 |
<action> |
119 |
<id>hippo.cms.save</id> |
120 |
<label>cms.workflows.reviewedactions.dismiss</label> |
121 |
</action> |
122 |
</actions> |
123 |
</query> |
124 |
|
125 |
<!-- Keep some more complex examples around for now |
126 |
<query> |
127 |
<internationalization> |
128 |
<name>foo.name</name> |
129 |
<description>foo.description.</description> |
130 |
</internationalization> |
131 |
<condition class="or"> |
132 |
<subconditions> |
133 |
<equal> |
134 |
<field class="current-steps-action"/> |
135 |
<value class="int">1</value> |
136 |
</equal> |
137 |
<not-equal> |
138 |
<field class="entry-name"/> |
139 |
<value class="string">bar</value> |
140 |
</not-equal> |
141 |
<and> |
142 |
<subconditions> |
143 |
<equal> |
144 |
<field class="history-steps-finish-date"/> |
145 |
<value class="date">2004-09-27 12:02:44.781 PM</value> |
146 |
</equal> |
147 |
<less-than-or-equal> |
148 |
<field class="history-steps-start-date"/> |
149 |
<value class="date">2004-09-27 12:02:44.781 PM</value> |
150 |
</less-than-or-equal> |
151 |
</subconditions> |
152 |
</and> |
153 |
</subconditions> |
154 |
</condition> |
155 |
</query> |
156 |
<query> |
157 |
<internationalization> |
158 |
<name>foo.name</name> |
159 |
<description>foo.description.</description> |
160 |
</internationalization> |
161 |
<condition class="or"> |
162 |
<subconditions> |
163 |
<equal> |
164 |
<field class="current-steps-action"/> |
165 |
<value class="int">1</value> |
166 |
</equal> |
167 |
<not-equal> |
168 |
<field class="entry-name"/> |
169 |
<value class="string">bar</value> |
170 |
</not-equal> |
171 |
<and> |
172 |
<subconditions> |
173 |
<equal> |
174 |
<field class="history-steps-finish-date"/> |
175 |
<value class="date">2004-09-27 12:02:44.781 PM</value> |
176 |
</equal> |
177 |
<less-than-or-equal> |
178 |
<field class="history-steps-start-date"/> |
179 |
<value class="date">2004-09-27 12:02:44.781 PM</value> |
180 |
</less-than-or-equal> |
181 |
</subconditions> |
182 |
</and> |
183 |
</subconditions> |
184 |
</condition> |
185 |
</query> |
186 |
--> |
187 |
</list> |