approval user activity stuck??

Nawal Kishor Si
Tera Contributor

I have created workflow and triggered for approval. so if approval person is set "no longer required/ cancelled" its stuck . workflow show like this.

find_real_file.png

For that i have added two condition no longer required and cancelled but its stuck. when select the approve and reject then its working fine.

please suggest how to achieve it.

 

Thanks.

3 REPLIES 3

Brad Bowman
Kilo Patron
Kilo Patron

First confirm that your Conditions on the activity are using the correct values, so out of the box they would be

activity.result == 'not_required'

activity.result == 'cancelled'

If the workflow is still not advancing after confirming these values and an approval is changed to No Longer Required, then you'll need to set this state as an inactive state.  There's a business rule or something to update that I can look up if needed.  Cancelled could be a bit tricky as an out of box business rule might be triggering and doing something you don't want it to in this case, but let's see if we can get No Longer Required, then maybe Cancelled will work the same way. 

Hemaxiben Mistr
Tera Contributor

Hi Brad,

I am trying Cancelled. Can u pl tell me the BR name? 

The BR is named Approval Events (Task) if the record this approval is related to is one of the task extended tables (incident, problem, REQ, RITM, SCTASK, change,...) or Approval Events (Non-Task) otherwise.  The script is triggering an event to cancel the workflow, so that's why the workflow/activity shows Cancelled/Orange as the status instead of green or blue executing or finished.