URL Form content path | Community
Skip to main content
Level 2
September 29, 2022
Solved

URL Form content path

  • September 29, 2022
  • 1 reply
  • 1658 views

Hi, 

 

I am completely new to AEM and would need everyone help.

I am creating a form with 2 approval steps.. I can use the "assign task" in the WF but it only allows to view the submitted form in read-only mode. The approver can't change any data... So I would like to build a link that links to the submitted adaptive form with prefilled data that I use jcr:///... /Data.json protocol. Does anyone know how to get the url to the payload (content path) in the workflow? Appreciate any help.

 

Kong

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

1 reply

manjunathdj
New Member
October 3, 2022

@spmonkey1  - Hoping this helps you

 

In AEM Workflow -With resource object in Java you should be able to get page path etc.

 

 

Pseudo Code 

******************************************

@Override
public final void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap args) throws
WorkflowException {

/* Get the Workflow Payload */

final WorkflowData workflowData = workItem.getWorkflowData();
final String type = workflowData.getPayloadType();

......

 

*******************************************************************

spmonkey1Author
Level 2
October 3, 2022

Hi Manjunathdj,

 

Thanks so much for the reply. I appreciate that.

 

Is there any OOTB feature that is available directly in the workflow so we can use and get the payload path/URL without creating a new bundle? We are trying to build a string that could be used in the notification email so when the approver receives an email, they can click on the link, modify the form and submit the form. The following screenshot has one part of the string we would like to build in the WF. Thanks much.

 

PS: I am completely new to AEM so please treat me like a baby when you give any instruction. I really appreciate your time and effort. 🙂