How to notify to the workflow initiator in the inbox | Community
Skip to main content
Level 3
June 19, 2017
Solved

How to notify to the workflow initiator in the inbox

  • June 19, 2017
  • 7 replies
  • 4637 views

Hi ,

I want to notify to the workflow initiator who started the workflow via a message in his AEM inbox.

In the workflow process step I am activating page through different replication agent (after some conditions applied like if user has priviledges).

So I wanted to send a message like "replication success"  if success ,
else "you are not a priviledge user for replication" to his inbox.

Thanks,

Pallavi

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

7 replies

smacdonald2008
Level 10
June 19, 2017

I would look at using the Workflow API to perform these tasks: com.day.cq.workflow (Adobe CQ 5.6.1 Java Documentation 5.6.1 API)

Level 3
June 20, 2017

Thanks for the response.
But I wanted to a message to be sent to the initiator's inbox upon successful replication from the workflow.

Thanks,

Pallavi

smacdonald2008
Level 10
June 20, 2017

I am asking Eng how to send to inbox in AEM. I could not find a Java method that would do this.

Another option that you have is to send to a user normal email from a custom workflow step.

smacdonald2008
Level 10
June 20, 2017

Easiest way is to create a task assigned to the user you want to notify.

https://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/adobe/granite/taskmanagement/TaskManager.html#createTask(com.adobe.granite.taskmanagement.Task)

Looks like you will have to use this API from a custom AEM workflow step.

Rajeev_Kumar
Level 3
June 20, 2017

I think, you need to create a task to achieve this. However, creating a task will enable the complete, delegate functionality (which aem provides OOTB).

Here is one of the way to create a task.

acs-aem-samples/SampleTaskManagementImpl.java at master · Adobe-Consulting-Services/acs-aem-samples · GitHub

Level 3
June 22, 2017

Thanks for the response..