I am trying to assign a task to an application role dynamically using xpath expression and to another static group. This xpath expression may sometime return an app role which does not exist. Problem is if app role does not exist then task assignment fails with error - "Error in routing slip. The task is assigned to an invalid applicaton role xxxxx in application context...". The requirement is to assign it to static group if one app role doesn't exist.
What's the correct way to model such HT ? Is there any OOTB solution available? Is there a function to check if app role exist or not? Do I need to use ruleset here ?
Any clue will be of great help.