Description: Sample Groovy script to fetch details of all forms associated with the current revision and set aDecisionVariable accordingly. This script can be used with Workflow and with a direct system task as well.
Context: App
Remark: Accessible in 'Pre', 'On-load', and 'Post' task modes only once the document is uploaded to the Asite platform; this means the script will not work for 'Pre' and 'On-load' mode with the Publish document event.
The options below are available to fetch the Associated Form messages.
IGroovyConstant.ALL_FORM_MESSAGES_OF_ASSOCIATED_FORMS = Fetch details of all form messages of the associated forms.
IGroovyConstant.ORI_FORM_MESSAGE_OF_ASSOCIATED_FORMS = Fetch details of only ORI form message of the associated forms.
IGroovyConstant.LATEST_FORM_MESSAGE_OF_ASSOCIATED_FORMS = Fetch details of only the latest form message of the associated forms.
IGroovyConstant.LATEST_ASSOCIATED_FORM_MESSAGE_OF_ASSOCIATED_FORMS = Fetch details of only the latest associated form message of the associated forms.
Script
|
