1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.api;
17
18 import java.util.List;
19 import java.util.Set;
20
21 import org.joda.time.DateTime;
22 import org.kuali.rice.kew.api.action.ActionRequest;
23 import org.kuali.rice.kew.api.action.ActionRequestType;
24 import org.kuali.rice.kew.api.action.ActionTaken;
25 import org.kuali.rice.kew.api.action.ActionType;
26 import org.kuali.rice.kew.api.action.AdHocRevoke;
27 import org.kuali.rice.kew.api.action.AdHocToGroup;
28 import org.kuali.rice.kew.api.action.AdHocToPrincipal;
29 import org.kuali.rice.kew.api.action.MovePoint;
30 import org.kuali.rice.kew.api.action.RequestedActions;
31 import org.kuali.rice.kew.api.action.ReturnPoint;
32 import org.kuali.rice.kew.api.action.ValidActions;
33 import org.kuali.rice.kew.api.document.Document;
34 import org.kuali.rice.kew.api.document.DocumentContent;
35 import org.kuali.rice.kew.api.document.DocumentContentUpdate;
36 import org.kuali.rice.kew.api.document.DocumentContract;
37 import org.kuali.rice.kew.api.document.DocumentDetail;
38 import org.kuali.rice.kew.api.document.DocumentStatus;
39 import org.kuali.rice.kew.api.document.attribute.WorkflowAttributeDefinition;
40 import org.kuali.rice.kew.api.document.attribute.WorkflowAttributeValidationError;
41 import org.kuali.rice.kew.api.document.node.RouteNodeInstance;
42
43
44
45
46
47
48
49
50
51 public interface WorkflowDocument extends DocumentContract {
52
53 String getDocumentId();
54
55 Document getDocument();
56
57 DocumentContent getDocumentContent();
58
59 String getApplicationContent();
60
61 void setApplicationContent(String applicationContent);
62
63 public void setAttributeContent(String attributeContent);
64
65 void clearAttributeContent();
66
67 String getAttributeContent();
68
69 void addAttributeDefinition(WorkflowAttributeDefinition attributeDefinition);
70
71 void removeAttributeDefinition(
72 WorkflowAttributeDefinition attributeDefinition);
73
74 void clearAttributeDefinitions();
75
76 List<WorkflowAttributeDefinition> getAttributeDefinitions();
77
78 public void setSearchableContent(String searchableContent);
79
80 void addSearchableDefinition(
81 WorkflowAttributeDefinition searchableDefinition);
82
83 void removeSearchableDefinition(
84 WorkflowAttributeDefinition searchableDefinition);
85
86 void clearSearchableDefinitions();
87
88 void clearSearchableContent();
89
90 List<WorkflowAttributeDefinition> getSearchableDefinitions();
91
92 List<WorkflowAttributeValidationError> validateAttributeDefinition(
93 WorkflowAttributeDefinition attributeDefinition);
94
95 List<ActionRequest> getRootActionRequests();
96
97 List<ActionTaken> getActionsTaken();
98
99 void setApplicationDocumentId(String applicationDocumentId);
100
101 String getApplicationDocumentId();
102
103 DateTime getDateCreated();
104
105 String getTitle();
106
107 ValidActions getValidActions();
108
109 RequestedActions getRequestedActions();
110
111 void saveDocument(String annotation);
112
113 void route(String annotation);
114
115 void disapprove(String annotation);
116
117 void approve(String annotation);
118
119 void cancel(String annotation);
120
121 void blanketApprove(String annotation);
122
123 void blanketApprove(String annotation, String... nodeNames);
124
125 void saveDocumentData();
126
127 void setApplicationDocumentStatus(String applicationDocumentStatus);
128
129 void acknowledge(String annotation);
130
131 void fyi(String annotation);
132
133 void fyi();
134
135
136
137
138
139 void delete();
140
141 void refresh();
142
143 void adHocToPrincipal(ActionRequestType actionRequested, String annotation,
144 String targetPrincipalId, String responsibilityDescription,
145 boolean forceAction);
146
147 void adHocToPrincipal(ActionRequestType actionRequested, String nodeName,
148 String annotation, String targetPrincipalId,
149 String responsibilityDescription, boolean forceAction);
150
151 void adHocToPrincipal(ActionRequestType actionRequested, String nodeName,
152 String annotation, String targetPrincipalId,
153 String responsibilityDescription, boolean forceAction,
154 String requestLabel);
155
156 void adHocToPrincipal(AdHocToPrincipal adHocToPrincipal, String annotation);
157
158 void adHocToGroup(ActionRequestType actionRequested, String annotation,
159 String targetGroupId, String responsibilityDescription,
160 boolean forceAction);
161
162 void adHocToGroup(ActionRequestType actionRequested, String nodeName,
163 String annotation, String targetGroupId,
164 String responsibilityDescription, boolean forceAction);
165
166 void adHocToGroup(ActionRequestType actionRequested, String nodeName,
167 String annotation, String targetGroupId,
168 String responsibilityDescription, boolean forceAction,
169 String requestLabel);
170
171 void adHocToGroup(AdHocToGroup adHocToGroup, String annotation);
172
173 void revokeAdHocRequestById(String actionRequestId, String annotation);
174
175 void revokeAdHocRequests(AdHocRevoke revoke, String annotation);
176
177 void revokeAllAdHocRequests(String annotation);
178
179 void setTitle(String title);
180
181 String getDocumentTypeName();
182
183 boolean isCompletionRequested();
184
185 boolean isApprovalRequested();
186
187 boolean isAcknowledgeRequested();
188
189 boolean isFYIRequested();
190
191 boolean isBlanketApproveCapable();
192
193 boolean isRouteCapable();
194
195 boolean isValidAction(ActionType actionType);
196
197 void superUserBlanketApprove(String annotation);
198
199 void superUserNodeApprove(String nodeName, String annotation);
200
201 void superUserTakeRequestedAction(String actionRequestId, String annotation);
202
203 void superUserDisapprove(String annotation);
204
205 void superUserCancel(String annotation);
206
207 void superUserReturnToPreviousNode(ReturnPoint returnPoint,
208 String annotation);
209
210 void complete(String annotation);
211
212 void logAnnotation(String annotation);
213
214 DocumentStatus getStatus();
215
216 boolean checkStatus(DocumentStatus status);
217
218
219
220
221
222
223 boolean isInitiated();
224
225
226
227
228
229
230 boolean isSaved();
231
232
233
234
235
236
237 boolean isEnroute();
238
239
240
241
242
243
244 boolean isException();
245
246
247
248
249
250
251 boolean isCanceled();
252
253
254
255
256
257
258 boolean isDisapproved();
259
260
261
262
263
264
265 boolean isApproved();
266
267
268
269
270
271
272 boolean isProcessed();
273
274
275
276
277
278
279 boolean isFinal();
280
281
282
283
284
285
286 String getPrincipalId();
287
288 void switchPrincipal(String principalId);
289
290 void takeGroupAuthority(String annotation, String groupId);
291
292 void releaseGroupAuthority(String annotation, String groupId);
293
294
295
296
297
298
299
300
301
302
303 Set<String> getNodeNames();
304
305
306
307
308
309
310
311
312
313 Set<String> getCurrentNodeNames();
314
315 void returnToPreviousNode(String nodeName, String annotation);
316
317 void returnToPreviousNode(ReturnPoint returnPoint, String annotation);
318
319 void move(MovePoint movePoint, String annotation);
320
321 List<RouteNodeInstance> getActiveRouteNodeInstances();
322
323 List<RouteNodeInstance> getCurrentRouteNodeInstances();
324
325 List<RouteNodeInstance> getRouteNodeInstances();
326
327 List<String> getPreviousNodeNames();
328
329 DocumentDetail getDocumentDetail();
330
331 void updateDocumentContent(DocumentContentUpdate documentContentUpdate);
332
333 void placeInExceptionRouting(String annotation);
334
335 void setVariable(String name, String value);
336
337 String getVariableValue(String name);
338
339 void setReceiveFutureRequests();
340
341 void setDoNotReceiveFutureRequests();
342
343 void setClearFutureRequests();
344
345 String getReceiveFutureRequestsValue();
346
347 String getDoNotReceiveFutureRequestsValue();
348
349 String getClearFutureRequestsValue();
350
351 }