In this tutorial you will learn how to insert a user action on your instance using Studio Designer, to easily validate documents.
Hyland University
Requirements
- A Contract document type created in Studio Modeler.
- Make sure that the Nuxeo Web UI addon is installed on your instance.
Create an Automation Chain
Jump between any Studio feature or menu in a snap by typing its name. This action can be triggered by clicking the Jump To option on the bottom left of your Studio project, or using the Ctrl + K / ⌘ + K shortcut.
On Studio Modeler:
- Go on Configuration > Automation and then on Automation Chains.
- Click on the New button.
- Give your automation chain an ID
validateDocumentand click on the Next button.
The automation chain editor is displayed. The Fetch > Context Document(s) is automatically added as the first operation of the chain.
- 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 to the UI tab.
- In Buttons, hover over the Create button and select Button.
Fill in the creation form as shown below:
- Fill in the Filters section as shown below:
Only the users who have Manage Everything permission will see the button.
- Save your changes and deploy your project.
On a Contract document type that you want to validate (change status from Project to Approved), click on your brand new Validate button in the action toolbar and refresh your page. Your contract is approved! The button disappeared as the status has changed.