Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement]: Automated deletion of completed instances after n days #665

Open
rallen2010 opened this issue Aug 2, 2023 · 1 comment
Open
Labels
customer-request enhancement New feature or request

Comments

@rallen2010
Copy link
Collaborator

Feature description

We've added automations for purging process instance archives and process statistics after fixed periods. Our assumption had been that administrators would delete completed processes themselves - but maybe we should also create an automation to delete completed or terminated process instances after a configurable number of days. Would be fairly simple to add.

Describe alternatives you've considered

No response

Additional context

No response

@rallen2010 rallen2010 added enhancement New feature or request customer-request labels Aug 2, 2023
@rallen2010
Copy link
Collaborator Author

rallen2010 commented Oct 19, 2023

We could have a instance_retention_period (in days) then have an automation that deletes process instances where
prcs_complete_ts < systimestamp - instance_retention_period. The instance completion is currently stored as a timestamp for each instance (prcs_complete_ts) and records completion for normal and termination completions.

Simplest option would be to have this as a system wide parameter, stored in flow_configurations.

More elaborate solution would be to allow a diagram-level parameter, stored for each diagram in a new column in flow_diagrams. say dgrm_process_retention. If this is not specified, the system wide parameter would be used.

Updated - July 2024 - Changed parameter from 'retention_period to instance_retention_period in case we want to do anything separate for tasks in future...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-request enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant