/
DocumentApprovalWorkflow.txt
39 lines (34 loc) · 2.08 KB
/
DocumentApprovalWorkflow.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---++ Tags used in controlled topics
* Set WORKFLOWNOTICE = This topic is under document control. Last approval on %WORKFLOWLASTTIME_APPROVED%: %WORKFLOWLASTVERSION_APPROVED%
* Set WORKFLOWBUTTON = <table border="0" cellspacing="0" cellpadding="0"> <tr><td>You are permitted to change the status of this document:</td><td>%WORKFLOWTRANSITION%</TD></tr></table>
* Set this to 1 to enable debugging about the workflow
Existing Controlled documents:
%SEARCH{"Set WORKFLOW = DocumentApprovalWorkflow" excludetopic="%TOPIC%" nonoise="on" format="|$topic|"}%
<form action="%SCRIPTURLPATH{edit}%/Sandbox/ApprovedDocumentAUTOINC000">
<textarea name="text" style="display:none">
<nop> * Set WORKFLOW = DocumentApprovalWorkflow
| *Workflow* ||
| Current state | %<nop>WORKFLOWSTATE% |
| Transitions available | %<nop>WORKFLOWTRANSITION% |
| State message | %<nop>WORKFLOWSTATEMESSAGE% |
| Last time in APPROVED state | %<nop>WORKFLOWLASTTIME_APPROVED% |
| Last version in APPROVED state | %<nop>WORKFLOWLASTVERSION_APPROVED% |
Workflow history: %<nop>WORKFLOWHISTORY%
</textarea>
<input type="submit" value="Create new controlled document" />
</form>
---++ States
| *State* | *Allow Edit* | *Message* |
| UNDERREVISION | | This document is being revised. |
| APPROVED | nobody | This document has been approved for release. |
| WAITINGFORQM | nobody | This document is waiting for approval by the Quality Manager. |
| WAITINGFORCTO | nobody | This document is waiting for approval by the CTO.|
---++ Transitions
| *State* | *Action* | *Next State* | *Allowed* | *Form* |
| APPROVED | revise | UNDERREVISION | | ApprovedForm |
| UNDERREVISION | ready for approval | WAITINGFORQM | | InProcessForm |
| WAITINGFORQM | approve | WAITINGFORCTO | | |
| WAITINGFORQM | reject | UNDERREVISION | nobody | |
| WAITINGFORCTO | approve | APPROVED | | ApprovedForm |
| WAITINGFORCTO | reject | UNDERREVISION | | |
%META:PREFERENCE{name="WORKFLOWDEBUG" value="1"}%