Skip to main content
19-Tanzanite
Oct 22, 2026 7:26 PM UTC
Question

How to catch empty roles

We allow users to add and remove participants from a workflow task.  I can catch empty roles in the future, but how do you catch the current task if a user removes all participants in the current role they are an approver?  Right now when you remove the last user, it hides the ability to add new users and just processes the task as if you Completed Task.

3 replies

Fadel
23-Emerald II
Oct 23, 2026 2:58 PM UTC

My guess depending on the routing configuration for activity  (ALL, ANY, etc.), the workflow engine can treat the assignment as resolved and advance the activity, which is why it appears to behave like a "Complete Task". The Set Up Participants UI also loses the ability to add users because there is no remaining assignee context

Translate
Buiꓘa
19-Tanzanite
Oct 23, 2026 7:42 PM UTC

I have figured how to capture if roles are empty by adding a subprocess after the task.  It works fine if you do not have any custom routing choices to choose as it will go forward along the path once the last user is removed.  The problem now comes in what choice do you use in the Link Properties to get it to go along that route?  Abort didn’t work.  The choices are

  • Start
  • Disable
  • Enable
  • Suspend
  • Resume
  • Skip
  • Terminate
  • Abort
  • Reset

Any ideas for what to chose.  I know it isn’t start.

 

Translate
joe_morton
19-Tanzanite
Oct 23, 2026 8:06 PM UTC

I haven’t tested, but just going from memory/instinct, 2 things come to mind:

Make sure the task is set to “Required” and turn off Ignore Unresolved Role. Set the “responsible role” to a role in the Product/Library that has some admin function. What the workflow should do in this case is that if the task goes to execute and the role is not populated, it will fallback to the “responsible role”, and then that person may need to reassign it to whomever the correct person is. This is more of a fallback.

Potentially better method is to add logic on the task completion to block the workflow from going forward if the role is empty. Try adapting this: https://www.ptc.com/en/support/article/cs142123?source=bloop

Translate