Programmatically go to next step from participant step
Can we programmatically go to next step from participant step. I have requirement where the inbox notification is sent programmatically. There when the user selects the complete step then would like the workflow step to invoke next step. The below is the code for sending inbox notification.
InboxNotification inboxNotification = inboxNotificationSender.buildInboxNotification();
inboxNotification.setAssignee(userId);
inboxNotification.setTitle("Approve the content/Asset ");
inboxNotification.setMessage("Approve the content/Asset ");
inboxNotification.setInstructions("testinstruction");
String[] routes = new String[nextSteps.size()];
for(int i = 0; i < nextSteps.size(); i++) {
routes[i] = nextSteps.get(i).getName();
}
inboxNotification.setNotificationActions(routes);

But when i select the action it is not going to the respective workflow step.
So how to navigate to that step when user selects the action.