Below are some of the most common commands according to the type of automatism they allow.
In the article How to schedule automatic tasks? describes how to configure them.
Notifications
Sending notifications for user type fields
A user type metadata type can be configured to send a user notification when a value is assigned to that field. For these notifications to be sent, the command must be activated:
notify_users_assigned_metadata
The recommended frequency for this command is "Every minute".
Life Cycles
Execution of operations when the SLA of a lifecycle state expires
When the life cycle of a status for a certain document expires, it is possible to execute some operations on this document, the operations to be executed must have as assigned category the value:
life_cycle_state_sla_expired
When such operations are required, the following command must be configured:
action_on_documents_with_sla_expired
The recommended frequency for this command is "Every hour", although it can be reduced if the SLAs to be monitored are less than this time.
Document upload
Uploading documents via email
When configuring email boxes by spaces, we will need to configure the command:
load_mails
The recommended frequency for this command is "Every minute", although it may depend on functional need.
This command loads the emails of all the spaces where the "Load documents" option has been activated.
Trays
Execution of tray operations
It is possible to execute operations on the documents in the trays. To do so, the following command can be configured:
run_operations_queues
The recommended frequency for this command is "Every 5 minutes", although it may depend on functional need.
Report
Bulk report generation (CSV) for all form types
Athento allows to generate a CSV file with the metadata of the documents, in a general way, for all the types of forms and all the teams that have it active.
For these CSV reports to be generated, the following command must be configured:
massive_export_doctype_report_native
The recommended frequency in this case is "Every day" or "Every 12 hours".
If a much lower frequency is desired, there is also another command that can be configured every 5 or 10 minutes, this command is:
massive_export_doctype_report_delta_native
If you only need to activate the reporting of a specific doctype, and a frequency of every 5 or 10 minutes, this command is:
export_doctype_report_native --name (nombre del doctype )--max 50000 --days_ago 365
Massive report generation (CSV) for lifecycle change records in all form types
Athento allows you to generate a CSV file with the records of changes of status in the life cycle for the documents of all the document types that have it active. To do this, the following command must be used.
massive_export_doctype_life_cycle_report
The recommended frequency for this case is "Every day".
Bulk export
Command to download documents in bulk
Athento allows a massive download of documents by applying a filter similar to that of the search. This download also includes the download of a .csv file with the information of the downloaded documents. To do this, the following command must be used.
export_generate_export_zip
The recommended frequency for this case is "Every day".
Maintenance
Command to retrieve email reception
In some cases, the connection to the mailboxes may be blocked due to communication problems, etc. In this case it is advisable to program the following command in crontab:
* */2 * * * root cd /var/www/athentose; run-one ./manage.py recover_load_mails > /var/log/athentose/recover_load_mails.log
Comments
0 comments
Please sign in to leave a comment.