New feature for version 3.1

There are often situations when a certain process needs to be performed periodically. For example, it can be: copying/cloning a record, checking tasks with a certain status, etc.

To solve such tasks in automation, the option "Run process on schedule" is provided:

To start such a process, you need to install a scheduled task (cron) on your server.

Please note: The frequency of the task execution is set in the cron settings.

As a cron command, use the following line:

php -q [root_catalog]cron/process.php [process_id] [item_id]

[process_id] - process id (displayed in the list of processes), required parameter.
[item_id] - id of the item to which the process will be applied. Optional parameter.

If the record id is not specified, then the process will be applied to all entity records that fall under the process filters. In this case, the installation of filters for the process is a prerequisite.

Example 1:

php -q /home/yourlogin/public_html/pm/cron/process.php 6 20

Process #6 will be applied to record #20

Example 2:

php -q /home/yourlogin/public_html/pm/cron/process.php 6

Process #6 will be applied to all records that fall under the set process filters.

wget 

If PHP command execution is not available on your server or it is unstable, you can execute the process using the wget command (via http link). In this case, you must use the following link:

http://[path_to_your_app]/cron/process.php?process_id=6&item_id=20

PHP script

Consider a situation where, using automation, we need to execute a PHP script that will insert records to several entities. In this case, the cron command must specify [item_id]. So, when you run cron, PHP script will be executed only once. [item_id] you can specify any of the existing ones or create a special entry and use the entry data in a PHP script.