In this tutorial you will learn how to insert a user action on your instance using Studio Designer, to easily validate documents.
- A Contract document type created in Studio Modeler.
- Make sure that the Nuxeo Web UI addon is installed on your instance.
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.
- Drag and drop the operation Document > Follow Life Cycle Transition and set the transition as
Click on Save.
You should end up with something like this:
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, hover over the Create button and select the Operation button.
- Fill in the creation form as shown below:
- Fill in the Filters section as shown below:
- 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.