Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

AEM Workflow: set user input values from workflow initiator to be available in approver view

Avatar

Adobe Champion
  • Have a use case in which a workflow initiator need to input some values for E.g - assignee user dropdown, move path field etc and trigger a workflow.
  • This is already achieved by overlaying the timeline nodes and adding custom input fields (overlayed apps path- /apps/dam/gui/coral/components/admin/timeline and /apps/dam/gui/coral/content/commons/sidepanels/timeline)
  • Now the next part is to fetch these input values entered by the workflow initiator and show it in the inbox view for approver to approve the asset/page.

Though we have all user inputs saved inside the /var/workflow metadata path, is it possible to get this metadata path dynamically and fetch the user inputs inside repository and display in the workflow inbox view?

Does anyone have any sample examples to share this inbox view overlay?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 3

Unfortunately you need to overlay hidden nodes to achieve this which may not be a good practice but still you can achieve this by overlaying the jsp path

/libs/cq/inbox/gui/components/inbox/itemdetails/tabs/dataprovider/workitem/workitem.jsp

and read the user input value from WorkItem and append to the ValueMapDecorator.

 

Once you do that do create nodes under the overlayed node path

/libs/cq/inbox/content/inbox/details/workitem/jcr:content/content/items/tabs/items/workitemInfo/items/workitemProvider/items/content/items/fixedColumnContainer/items/right/items

Your new node should contain the jcr property name with the value you have added in the jsp.

Eg: In the jsp if you add

vm.put("userInputPath", "/content/dam/custom");

your new node should have a property 'name' with value 'userInputPath'

 

Thanks

View solution in original post

3 Replies

Avatar

Correct answer by
Level 3

Unfortunately you need to overlay hidden nodes to achieve this which may not be a good practice but still you can achieve this by overlaying the jsp path

/libs/cq/inbox/gui/components/inbox/itemdetails/tabs/dataprovider/workitem/workitem.jsp

and read the user input value from WorkItem and append to the ValueMapDecorator.

 

Once you do that do create nodes under the overlayed node path

/libs/cq/inbox/content/inbox/details/workitem/jcr:content/content/items/tabs/items/workitemInfo/items/workitemProvider/items/content/items/fixedColumnContainer/items/right/items

Your new node should contain the jcr property name with the value you have added in the jsp.

Eg: In the jsp if you add

vm.put("userInputPath", "/content/dam/custom");

your new node should have a property 'name' with value 'userInputPath'

 

Thanks