Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

How to change the workflow inbox message payload path through a java class.

Avatar

Level 5
Level 5

How to change the workflow inbox message payload path through a java class.?

Basically i have a custom workflow for which have a launcher to trigger the workflow on nt:unstructured node creation. But i want to show the payload in the workflow inbox till the page path not to the JCR:content node. ( i am trying to have a process step after the workflow start and change the payload path of the inbox message through the java class and for the next participant step the inbox message should appear till the page path) .. Any idea help to change the workflow payload path at runtime in an process step .?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Overlay [1] & Implement a logic to change a url based on workflow model. 

[1]    /libs/cq/workflow/widgets/source/utils/InboxUtil.js

View solution in original post

2 Replies

Avatar

Level 10

I would start by researching the Workflow API for CQ 5.6:

https://dev.day.com/docs/en/cq/current/javadoc/com/adobe/granite/workflow/exec/package-summary.html

Sounds like you will also need to create a custom workflow step to get that the workflow data that you are interested in. 
I will investigate on Mon if anyone has code that shows a solution for this use case. 

Avatar

Correct answer by
Level 10

Overlay [1] & Implement a logic to change a url based on workflow model. 

[1]    /libs/cq/workflow/widgets/source/utils/InboxUtil.js