Description: Sample Groovy script to insert document status for files in PDF format when printed, viewed or downloaded based on the event defined in the related workflow trigger.
This script doesn't impact the actual file. The status is inserted and displayed on the file only based on the configured event.
Context: Document
Remark: Accessible in 'Pre' task mode and only when the event is configured as 'Print Document', 'View Document', or 'Download Documents'.
Script:
|
Next Article: Groovy Script - Assign Roles to Users via Form