Expand my Community achievements bar.

AEM 6.5 Navigate to the route via code in Workflow

Avatar

Employee

Hi All, I have a OR split and I want to navigate to the branch based on some conditions in the process. My process is determining which branch to go. Like this 

 if (StringUtils.equalsIgnoreCase("reject", action)) {
workflowSession.complete(workItem,routes.get(0));
// Navigate to Route 0
}
else if(StringUtils.equalsIgnoreCase("approve", action)) {
workflowSession.complete(workItem,routes.get(1));
// Navigate to Route 1
}

but I am getting Authorizable Id is null. There is no access issues as I am doing this via admin.

1 Reply

Avatar

Community Advisor

Hi @SateeshRe ,

In your custom code are deriving authorizable object anywhere?
It may happen due to the fact that your workflow model that has reference to some authorizableId that does not exist. Can you double check and look for that?


Thanks
Tarun