Groovy script enables users in creating system tasks other than the already available tasks on user interface. These can be executed using triggers in pre and post mode, as a part of any workflow or even independent from a workflow. Click on the below links to access their detailed help:
A. Groovy Script Library
Below is the predefined syntax structure of Asite Groovy Script, add your script code as mentioned below:
|
You can access below mentioned attributes of document revision via groovy script:
No. | Task Mode | Attribute | Purpose |
1 | Pre / Post | File Name | To access name of selected file revision. |
2 | Pre / Post | Document Ref | To access the document reference of selected file revision. |
3 | Pre / Post | Revision | To access the details of selected file revision. |
4 | Pre / Post | Document Title | To access the document title of selected file revision. |
5 | Pre / Post | Purpose Of Issue | To access the purpose of issue of selected file revision. |
6 | Pre / Post | Status | To access the status of selected file revision / app. |
7 | Pre / Post | Revision Notes | To access the revision notes of selected file revision. |
8 | Pre / Post | Has Attachment | To check attachment if available or not with the selected file revision. |
9 | Pre / Post | Attached File Name | To access the name of attached file with the selected file revision. |
10 | Pre / Post | isPrivate | To check whether selected file revision is private or not. |
11 | Post | Document Path | To access the document path of selected file revision. |
12 | Post | File Size | To access the size of selected file revision. |
13 | Post | Project Name | To access the name of project. |
14 | Post | Publish Date | To access the date of publishing of selected file revision. |
15 | Post | Publisher Email | To access the email address of user who published selected file. |
16 | Post | Publisher Organization | To access the name of organization which published selected file. |
17 | Post | Version Number | To access the version number of selected file revision. |
18 | Post | Configurable Attributes | To access all types of configurable attributes available for selected file revision. |
You can update value of below mentioned attributes of document revision via groovy script:
No. | Task Mode | Attribute | Purpose |
1 | Post | Document Title | To update the document title of selected file revision. |
2 | Post | Revision Number | To update the revision number of selected file revision. |
3 | Post | Revision Notes | To update the revision notes of selected file revision. |
4 | Post | File Status | To update the status of selected file revision. |
5 | Post | DocRef | To update the document reference of selected file revision. |
6 | Post | Purpose Of Issue | To update the purpose of issue of selected file revision. |
7 | Post | File Privacy | To update the file privacy of selected file revision. |
8 | Post | Configurable Attributes | To update all types of configurable attributes available for selected file revision. |
Below is a list of ready to use standard sample groovy scripts which can be used directly in groovy script based system tasks. Click on the groovy script name / purpose to go directly to the concerned groovy script.
No. | Groovy Script Link & Purpose |
1 | Task Mode: --- | Context: Document |
2 | Task Mode: Pre | Context: Document |
3 | Task Mode: Pre | Context: Document |
4 | Task Mode: Post | Context: Document |
5 | Task Mode: Post | Context: Document |
6 | Task Mode: Post | Context: Document |
7 | Task Mode: Post | Context: Document |
8 | Task Mode: Pre | Context: Document |
9 | Task Mode: Pre | Context: Document |
10 | Task Mode: Pre | Context: Document |
11 | Task Mode: Pre | Context: Document |
12 | Task Mode: Pre / On-Load | Context: Document |
13 | Task Mode: Pre | Context: Document |
14 | Task Mode: Post | Context: Document |
15 | Task Mode: Post | Context: Document |
16 | Task Mode: Post | Context: Document |
17 | Task Mode: Post | Context: Document |
18 | Task Mode: Post | Context: Document |
19 | Task Mode: Post | Context: Document |
20 | Task Mode: Post | Context: Document |
21 | Task Mode: Post | Context: Document |
22 | Task Mode: Post | Context: Document |
23 | Task Mode: Pre | Context: Document |
24 | Task Mode: Post | Context: App |
25 | Task Mode: Post | Context: Document |
26 | Task Mode: Post | Context: Document |
27 | Task Mode: Post | Context: Document |
28 | Task Mode: Post | Context: Document |
29 | Task Mode: Post | Context: Document |
30 | Task Mode: On-Load | Context: Document |
31 | Task Mode: Pre | Context: Document |
32 | Task Mode: On-Load | Context: Document |
33 | Task Mode: On-Load | Context: Document |
34 | Task Mode: Post | Context: Document |
35 | Task Mode: Post | Context: App |
36 | Task Mode: Post | Context: App |
37 | Task Mode: Pre | Context: Document |
38 | Task Mode: Pre | Context: Document |
39 | Task Mode: On-Load | Context: Document |
40 | Task Mode: On-Load | Context: Document |
41 | Task Mode: Post | Context: App |
42 | Task Mode: On-Load | Context: Document |
43 | Task Mode: Post | Context: Document |
44 | Task Mode: Post | Context: Document |
45 | Task Mode: On-Load | Context: Document |
46 | Task Mode: Post | Context: App |
47 | Task Mode: Post | Context: Document/App |
48 | Task Mode: On-Load | Context: Document |
49 | Task Mode: Pre | Context: Document |
50 | Task Mode: Post | Context: Document |
51 | Task Mode: Post | Context: App |
52 | Task Mode: Pre | Context: Document |
53 | Task Mode: Post | Context: Document |
54 | Task Mode: Post | Context: App |
55 | Task Mode: Post | Context: App |
56 | Task Mode: Post | Context: Document |
57 | Task Mode: Post | Context: Document |
58 | Task Mode: Post | Context: App |
59 | Task Mode: On-Load | Context: Document |
60 | Task Mode: Post | Context: App |
61 | Task Mode: Post | Context: Document |
62 | Task Mode: Post | Context: Document |
63 | Task Mode: Post | Context: App |
64 | Task Mode: Post | Context: App |
65 | Task Mode: Post | Context: Document |
66 | Task Mode: Post | Context: Document |
Check: FAQs