Process Utilities Plugin to bulk update Alerts

Due to different development cycles, by different teams over different periods in time I'm in a situation where i have over 100 process models that have been created with different Alert notification settings.
i suspect the majority of the PMs have over time been updated but without auditing each one individually im not sure of the actual numbers.

With that in mind i started to look at how / if it's possible to build update all the maps - to ensure that they use the correct settings (in our case an email group). i have found the Process Utils plug and specifically the Set Alert Recipients for PM Smart Service. The service appears to happily accept an array of PM uuids, which it will then alter the security on.

In theory i should be able to do the following ; 
First establish the Aplication UUID using the getallapplications function (from Application Plugins).
Use the function getapplicationprocessmodelsuuids(appuid) which gives me all the PM uuids.
I store this list in an array and then pass to the Smart service.

However I'm finding that in the list of PM UUID's I'm getting more id's than expected. For instance if the application has two PM's , i get three UUID's.
When the Smart service then executes - it generates an exception - "One of the passed UUIDs does not belong to a valid model 0002e18e-d114-8000-f92f-7f0000014e7a"

If i search for this UUID via designer - i do not get any objects returned.
I have exported the application and extracted the zip - but still unable to find a file with a matching uuid.

i thought that this UUID may have been for the folder itself, and tired to remove it from the array as in the above case it was the first index. this worked, but when i tried the same for a different application i had the same issue, but this time the missing uuid was in a different position within the the array - so im unable to code something to always remove that first entry. 

So Im looknig for help on either how to identify and ignore these rogue uuid's or if it's possible to just ignore the excpetion and continue through the list of PM uuid's to ensure i cover all the processes.






  Discussion posts and replies are publicly visible

Parents
  • Hi Paul - I did see a previous note on this topic and wondered if there was an initial short-cut. Assuming you just want to harmonise the Alert recipient...could you not create a single Group (or nominate one of your existing Groups as the single Group) and put all the other Alert recipient Groups into that group so that the single group holds all of the Users that are in all of the child Groups. Then you can make the necessary changes as and when the Process Models are worked on for other reasons and resolve the issue over time rather than in one big exercise.

Reply
  • Hi Paul - I did see a previous note on this topic and wondered if there was an initial short-cut. Assuming you just want to harmonise the Alert recipient...could you not create a single Group (or nominate one of your existing Groups as the single Group) and put all the other Alert recipient Groups into that group so that the single group holds all of the Users that are in all of the child Groups. Then you can make the necessary changes as and when the Process Models are worked on for other reasons and resolve the issue over time rather than in one big exercise.

Children