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
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.
The solution that I implemented in the past was:
The plugins used were:
Application Information Retriever
Application Plugins
Process Model Utilities
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.
You can may be design a process model that runs post deployment.
In it add a UI first where administrator can add the export log from the deployment (from design->deployments). Then you can configure expression fetch the process model uuids from the success objects in the log. (This last step, I don't know if this plugin can help you read the file or if AI Skills can help here, so you can give it a try).
Lastly Process Model Utilties plugin can help you set the Cleanup settings for the uuids fetched in previous step.