Execution of operations on documents in trays

Tabla de contenidos

It is possible to configure the execution of operations on the documents shown in a tray.

To do this, assuming you already have a configured tray, the following steps must be performed:

 

  1. Go to advanced administration to “Document queue operations”
  2. Add a new item indicating:
    1. Name of the operation
    2. Module to execute, for example: custom.operations.nombre_del_modulo
    3. Check the “Enabled” option
    4. Check “Allow multiple executions over items” if you want the operation to be executed multiple times for each item (depending on the frequency with which the command in the last step is configured).
    5. In the “Allow multiple executions after x days” option, leave 9999 or the value you want. 
      This option and the previous one must be used separately; if the first option is checked, the operation will run continuously regardless of the days configured in the latter.

      Screenshot 2024-09-16 at 19.46.49.png

  3. Save the record
  4. In the right-hand menu of the tray, open the “Manage queue” option to go to advanced administration. Go to the “qoperations” field and add the operation configured in the previous steps.

    Screenshot 2024-09-16 at 19.47.48.png

  5. Configure the run_queue_operations command to run with the desired frequency.

    Screenshot 2024-09-16 at 19.48.53.png