Skip to main content
May 19, 2025
Question

Deletion Policy

  • May 19, 2025
  • 11 replies
  • 0 views

Hi all,

I want to automate the change of the deletion policy of a Process model (PM) when it is deployed. My idea is as follow:

  • Look into PMs there were deployed.
  • Change the data retention to delete after 1 or 0 day 
  • have a list of exceptions to not be updated when these are deployed.
  • To run this new PM for each new deploy

How Can I extract the UUID of the deployed PMs and then change their policy. 

I did this in the past but with old plugins that are not available anymore (and in other cloud instance).

Thanks in advance

11 replies

stefanhelzle0001
May 19, 2025

What is your specific question? And my question is, why do you need separate data management policies on different environments?

May 19, 2025

How Can I extract the UUID of the deployed PMs and then change their policy?

And we need this because I have a web API that triggers a PM that is called multiple times per day, consuming some resources. Want to reduce the impact.

stefanhelzle0001
May 19, 2025

OK, but why not just set the policy to zero days directly?

harshas2775
May 19, 2025

To extract the UUIDs, you can create a process report which can list all the process models AND their instances. From process report you will be able to extract Process model metadata. 

AFAIK there is no plugin or smart service that can change the data management policy of any inflights or help you automate this. So changing the policy automatically is impossible. 

harshas2775
May 19, 2025

May be if you add more details about use case it will enable us to help better like policy of 1 process model are intended to be updated or multiple process models. If its just one then What do you mean with the sentence - 

To run this new PM for each new deploy

have a list of exceptions to not be updated when these are deployed.

May 21, 2025

The solution that I implemented in the past was:

  • a PM for the post deployment feature
  • this PM would look into the package that was deployed, get the uuids of the PMs present on the package.
  • if the PM were on a list of exception, it would not update
  • Else updates the data retention policy.

The plugins used were:

  • Application Information Retriever

  • Application Plugins

  • Process Model Utilities

mathieud0001
May 21, 2025

You can probably achieve this by inspecting the deployment package. You can get it via the deployment API.

Once you have the zip, you can use Zip File Utilities to extract the contents and get the process model uuids.