Skip to main content
All CollectionsSystem TasksCreate a System Task in a ProjectCreate a System Task for Forms in a Project
Create a System Task - Executing Groovy Script on Forms (in a Project)
Create a System Task - Executing Groovy Script on Forms (in a Project)

This article helps you understand how to create a system task for executing groovy script on forms in a project.

Updated over a week ago

Pre-requisites:

  • The required role privilege is 'Manage Workflow Rules' on the project where a system task needs to be created.

The steps to create a system task for executing Groovy script on forms in a project are as mentioned below:

1. Follow the steps to create a system task for Forms (steps 1 to 5).

2. In the task dropdown, select 'Execute Groovy Script'.

3. When you select the 'Execute Groovy Script' option, the page expands allowing you to configure complex system tasks by using the groovy script i.e. by writing your groovy scripts. Click the maximize icon to maximize and the minimize icon to minimize the groovy script view as needed.

Click here to view the full Groovy Script Library containing sample Groovy scripts. If you want to create more complex tasks using Groovy scripts, contact your Asite Account Manager.

Select the checkbox 'Automatically resume the workflow in case of failures' to rerun the workflow if it fails for any reason. If this option is selected in the Groovy script system task, the configured script will run automatically for the next couple of times (in case of a failure event).

4. Once done, click the 'Create' button to create a system task.

You can create independent system tasks which can be executed using workflow triggers without adding them to a complex workflow.

All system tasks are executed automatically according to the conditions outlined in the relevant workflow trigger. The related form audit history and task assignment details indicate that they were performed by the 'Workflow Agent'.



Did this answer your question?