Generic Request (Auto route) Module
Generic Request (Auto route) is a module of the Generic Request application developed by the Center of Research & Development company. It allows the request to automatically move along the route under certain conditions (by the trigger).
In order to use this module, you need to install the Generic Request (Conditions) module.
After installing the Generic Request (Auto route) module, the ability of the request to automatically move along the route is enabled by default. You can enable or disable this option in the settings.
- Click Requests on the left dashboard menu.
- Under the Configuration menu click Settings.
A page with the settings opens.
- Scroll down to the Use Automatic Routes option, then select or clear the checkbox.
- Click Save on the left top.
Setting up automatic route execution
Open the request types page. For this, under Configuration menu click Types.
Select one of the type from the list or click Create to create a new one.
A form of the request type opens.
Click Routes on the right top.
You will be redirected to the request routes page.
Select one of the routes or click Create to create a new one.
A form opens.
At the bottom, on the left side of the form, you will see the Auto Only check box. If you select it, requests will be moved by this route only by triggers.
Click the Triggers button on the right at top.
You will be redirected to the triggers page.
Click Create to create a new trigger.
A form for creating a new trigger appears.
Fill in the form as is shown bellow:
- Enter the name of the new trigger.
- Click the Route drop-down menu and select the route for the trigger.
- Select the trigger in the appropriate menu. Depending on the selected trigger, it can be started automatically when performing certain actions or periodically with the selected time interval.
- If you select the trigger Auto: On write, you will need to specify the field (or fields) that will launch the trigger on change.
- Next to the Trigger Conditions field select the conditions that will be checked before triggering. For more detail on the conditions read the instruction for the Generic Condition application.
- In the Sequence field select the trigger sequence. The lower the number, the higher the priority. If you use multiple triggers for one route, the first one will execute (or check the execution conditions) a trigger with a higher priority.
- Select the Trigger as superuser check box if necessary.
- Click Save on the right above the form.
Now, when fulfilling the specified conditions, the request will automatically navigate through the stages of this route.