Programmatically go to next step from participant step | Community
Skip to main content
Level 3
Jul 12, 2018 9:13 AM UTC
Solved

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Jul 14, 2018 10:18 PM UTC

Hi,

Not sure if you can link inbox task to workflow instance.

When you are sending notification to act? As a part of workflow step or you have other utility which sends notification?

Anyways you can create custom action to achieve this. Customize http://localhost:4502/aem/inbox in vanilla AEM 6.4instance

Thaks

Arun

Arun Patidar

4 replies

smacdonald2008
Level 10
Jul 17, 2018 4:28 PM UTC

Nice reply!

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Jul 14, 2018 10:18 PM UTC

Hi,

Not sure if you can link inbox task to workflow instance.

When you are sending notification to act? As a part of workflow step or you have other utility which sends notification?

Anyways you can create custom action to achieve this. Customize http://localhost:4502/aem/inbox in vanilla AEM 6.4instance

Thaks

Arun

Translate
Arun Patidar
Level 3
Jul 14, 2018 7:26 AM UTC

Hi Arun,

My requirement is to have a custom message in the inbox of the user. So i have programmatically created the inbox notification. But I also want to go to next step when user selects the task. else is there any way to have custom participant step.

Translate
arunpatidar
New Participant
Jul 13, 2018 7:45 AM UTC

Hi,

As I understand, you want to go to next step based on what user select from inbox workflow notification item(workitem).

Why don't you use OR Step, which allows user to choose next step.

Or you can design your workflow using Go To and Branch Steps.

Because I believe you are creating notification task, that just act as a notification and complete the task but workitem are different than notification Task.

Thanks

Arun

Translate
Arun Patidar