In this tutorial you will learn how to insert a user action on your instance using View Designer, to easily validate documents.
Requirements
- Web UI addon installed on your instance.
- Studio Designer enabled on your Studio project.
- A Contract document type created in Studio Modeler and customized on Studio Designer.
Create an Automation Chain
- In the Modeler left menu, click on Automation and then on Automation Chains.
- Click on the New button.
- Give your automation chain an ID
validateDocument
and click on the Next button. - Drag and drop the operation Document > Follow Life Cycle Transition and set the transition as
approve
. - Click on Save.
You should end up with something like this:
Bind the Action to an Element
Now that your automation chain is ready, you will need to bind it to an action.
On Studio Designer, go on the UI tab:
- In Actions, click on the Create button.
- Fill in the creation form as shown bellow:
- Fill in the Filters section as shown below:
- Save your changes and deploy your project.
You should end up with something like this:
On a Contract document type that you want to validate (change status from Project to Approved) click on your brand new Validate button and refresh your page, your contract is approved! The button disappeared as the status has changed.