{"id":18777509,"url":"https://github.com/onify/blueprint-onify-purge-processes","last_synced_at":"2025-12-16T23:30:13.153Z","repository":{"id":178220864,"uuid":"633856519","full_name":"onify/blueprint-onify-purge-processes","owner":"onify","description":"Purge processes in Onify","archived":false,"fork":false,"pushed_at":"2024-10-10T19:02:59.000Z","size":419,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T17:57:04.448Z","etag":null,"topics":["flow","onify","onify-blueprint","onify-blueprints","processes"],"latest_commit_sha":null,"homepage":"https://onify.co","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-28T12:47:19.000Z","updated_at":"2024-10-10T19:03:02.000Z","dependencies_parsed_at":"2023-12-21T13:02:23.111Z","dependency_job_id":"48789098-c2d1-4ec9-acf2-8dbe06ee054a","html_url":"https://github.com/onify/blueprint-onify-purge-processes","commit_stats":null,"previous_names":["onify/blueprint-onify-purge-processes"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onify%2Fblueprint-onify-purge-processes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onify%2Fblueprint-onify-purge-processes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onify%2Fblueprint-onify-purge-processes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onify%2Fblueprint-onify-purge-processes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onify","download_url":"https://codeload.github.com/onify/blueprint-onify-purge-processes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239687652,"owners_count":19680768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flow","onify","onify-blueprint","onify-blueprints","processes"],"created_at":"2024-11-07T20:11:22.457Z","updated_at":"2025-12-16T23:30:13.098Z","avatar_url":"https://github.com/onify.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Onify Blueprints](https://files.readme.io/8ba3f14-onify-blueprints-logo.png)\n\n[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)\n![Test suite](https://github.com/onify/blueprint-onify-purge-processes/workflows/Test%20suite/badge.svg)\n\n# Onify Blueprint: Purge processes in Onify\n\nThis 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.\n\n![Onify Blueprint: Purge processes in Onify](blueprint.jpg \"Blueprint\")\n\n## Requirements\n\n* [Onify Hub](https://github.com/onify/install) (API version 2.14.1 or higher)\n* [Camunda Modeler](https://camunda.com/download/modeler/)\n\n## Setup\n\nTo 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.\n\nEach process that should be purged needs the following tags:\n\n* `purge` - This is required to be part of the purge process\n* `purge:{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.\n\n\u003e Important: The hours is calculated by the enddate. **This means that processes missing enddate (eg. Running) will not be purged.**\n\n\u003e Note: Setting `hours` to `0` will purge the process immediately. \n\nPurge types:\n\n* `full` (default) - Delete the process permanently\n* `data` - Only purge process data (Remove `flowstate` and `bpmn` data (useful for saving disk space))\n\n### Examples \n\n* `purge:0:Completed` - Delete the process immediately if the status is Completed\n* `purge:24:Completed` - Delete the process after 24 hours if the status is Completed\n* `purge:1:Completed,Stopped` - Delete the process after 1 hour if the status is Completed or Stopped\n* `purge:168:Stopped` - Delete the process after 1 week if the status is Stopped\n* `purge:2190:Completed,Stopped:full` - Delete the process after 3 months if the status is Completed or Stopped\n* `purge:48:Completed,Stopped:data` - Partial (delete data) purge process after 48 hours if the status is Completed or Stopped\n\n## Deploy\n\n1. Open the BPMN diagram in Camunda Modeler.\n2. Deploy the BPMN diagram (click `Deploy current diagram` and follow the steps).\n\n\u003e NOTE: You can check the process output for some stats...\n\n## Support\n\n* Community/forum: https://support.onify.co/discuss\n* Documentation: https://support.onify.co/docs\n* Support and SLA: https://support.onify.co/docs/get-support\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonify%2Fblueprint-onify-purge-processes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonify%2Fblueprint-onify-purge-processes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonify%2Fblueprint-onify-purge-processes/lists"}