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:
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
Discussion posts and replies are publicly visible
What is your specific question? And my question is, why do you need separate data management policies on different environments?
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.
OK, but why not just set the policy to zero days directly?
We want to have different policies between lower and prod environments. This way we can check the PMs on monitoring in lower to see the execution
Makes sense.
You wrote "PM that is called multiple times per day". How high is that number?
Then, did you consider to add a timer node just before the ende node? This way you could keep the model alive for a while for monitoring, but skip that timer on PROD.
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.
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 -
marios6581 said:To run this new PM for each new deploy
marios6581 said:have a list of exceptions to not be updated when these are deployed.