Giter Site home page Giter Site logo

blueprint-onify-purge-processes's Introduction

Onify Blueprints

Project Status: WIP โ€“ Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Test suite

Onify Blueprint: Purge processes in Onify

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 Blueprint: Purge processes in Onify

Requirements

Setup

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 process
  • 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.

Note: The hours is calculated by the enddate. This means that processes missing enddate will not be purged. Note: Setting hours to 0 will purge the process immediately.

Purge types:

  • full (default) - Delete the process permanently
  • data - Only purge process data (Remove flowstate and bpmn data (useful for saving disk space))

Examples

  • purge:0:Completed - Delete the process immediately if the status is Completed
  • purge:24:Completed - Delete the process after 24 hours if the status is Completed
  • purge:1:Completed,Stopped - Delete the process after 1 hour if the status is Completed or Stopped
  • purge:168:Stopped - Delete the process after 1 week if the status is Stopped
  • purge:2190:Completed,Stopped:full - Delete the process after 3 months if the status is Completed or Stopped
  • purge:48:Completed,Stopped:data - Partial (delete data) purge process after 48 hours if the status is Completed or Stopped

Deploy

  1. Open the BPMN diagram in Camunda Modeler.
  2. Deploy the BPMN diagram (click Deploy current diagram and follow the steps).

NOTE: You can check the process output for some stats...

Support

License

This project is licensed under the MIT License - see the LICENSE file for details.

blueprint-onify-purge-processes's People

Contributors

rolu01 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.