AEM 6.5 Navigate to the route via code in Workflow | Community
Skip to main content
Adobe Employee
March 27, 2024

AEM 6.5 Navigate to the route via code in Workflow

  • March 27, 2024
  • 1 reply
  • 455 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

TarunKumar
Community Advisor
Community Advisor
April 15, 2024

Hi @sateeshre2 ,

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