This blueprint show how we easy can purge processes in Onify based on process tags (tag:purge
). It is scheduled to run every 30 minutes. See below for information how to set it up.
- Onify Hub (API version 2.14.1 or higher)
- Camunda Modeler
To start purging processes you first need to start tagging the process. This can either be done via the workflow where the tags will be inherited to the process once you start a process. Or you can in a process set the tags.
Each process that should be purged needs the following tags:
purge
- This is required to be part of the purge processpurge:{hours}:{status}:{type}
- This is the part where you specify when and how a process should be purged.status
is a list of statuses that is separated with a comma.
Important: The hours is calculated by the enddate. This means that processes missing enddate (eg. Running) will not be purged.
Note: Setting
hours
to0
will purge the process immediately.
Purge types:
full
(default) - Delete the process permanentlydata
- Only purge process data (Removeflowstate
andbpmn
data (useful for saving disk space))
purge:0:Completed
- Delete the process immediately if the status is Completedpurge:24:Completed
- Delete the process after 24 hours if the status is Completedpurge:1:Completed,Stopped
- Delete the process after 1 hour if the status is Completed or Stoppedpurge:168:Stopped
- Delete the process after 1 week if the status is Stoppedpurge:2190:Completed,Stopped:full
- Delete the process after 3 months if the status is Completed or Stoppedpurge:48:Completed,Stopped:data
- Partial (delete data) purge process after 48 hours if the status is Completed or Stopped
- Open the BPMN diagram in Camunda Modeler.
- Deploy the BPMN diagram (click
Deploy current diagram
and follow the steps).
NOTE: You can check the process output for some stats...
- Community/forum: https://support.onify.co/discuss
- Documentation: https://support.onify.co/docs
- Support and SLA: https://support.onify.co/docs/get-support
This project is licensed under the MIT License - see the LICENSE file for details.