Has anyone have something related to an Workflow execution block?
For exemple, imagine that some change was made to the Workflow in a incorrect way and for some reason it triggers for all Identities, there is a way of disabled the workflow after a number of executions?
I guess you are looking for something like a step inside workflow to stop the execution. Something like a threshold ?
If yes then, maybe after extracting the list of identities, add a step to compare the count of identities to a threshold value, if it is more, then cancel the workflow with a mail. Same thing we have in SailPoint IdentityIQ as OOTB feature.
I was thinking to stop/disabled the WF in a general way, because imagine that we have a WF that runs for each identity that have an attribute change, in te current workflow context there is only one identity in the trigger, so maybe we cannot use this this count of identities.
Maybe we have to develop something outside of ISC using the API provided by @sharvari to monitor how many times an WF executes? Has anyone did something similar to that?
Hi Felipe! adding to Sharvari comment, take note that first you have to get the workflow internal id with the call
You can then check the number of workflow executions using this id on the call:
Actually, the id returned for each workflow execution is the one that you pass to the cancel workflow call.
Also, you can filter by status, for example status eq “running”. You will have the start time of each running workflow in response, so you can cancel if, for example, some wf is taking too much time.
You can filter for status eq “Completed”, to goal your idea of counting how many times a workflow was sucessfully executed.