Script automation

Some automated tasks cannot be implemented by means of standard system settings. For these cases, you can apply capabilities of module "Script automation".

The developed script can execute any logic and operations, thus implementing almost any required scenario of system use. Scripts are developed on PHP language using the application architecture. You can find examples of data access and manipulation in the Developer manual.

We embedded capabilities of script automation into the following settings:

  • Preconditions for transitions between states. Before transition, system executes the script and allows/prohibits to perform transition depending on its results.
  • Automatic actions triggered by event or schedule. Execution of PHP script can be used as an auxiliary automatic action.
  • Validation of custom or system fields. When saving data, system executes validation script and allows/prohibits user to save data.

To develop scripts, you must have a license for module "Script automation" and the corresponding permissions. These permissions are granted in the administrative section to a separate team (group) which includes script developers.

To audit the executed scenarios, as well as to analyze the results of their execution, use module "PHP scripts” which is located in the administrative section of the application.