One of our scenarios stopped today just before the Workfront Update Record module because the record was an OPTASK with a status of New+Pending Approval.
This is a very rare condition, so to avoid this happening again I modified the scenario to stop for any object where there is an Approval Process with a status of Pending Approval.
Here is what I did:
Using a Read Record module, I read the awaitingApprovals collection for the object,
And just after that module, I created
--- a variable representing the numeric length of the array (I did it this way because I've had problems with 0 and 1 being recognized as strings and not numeric data types in the past)
--- then a filter for the route to continue only if the variable is less than 1 :
This approach works after testing, but was there a simpler way to do this? Thanks for your feedback.