Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 4
  • 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

0 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