Access form data from workflow in AEM 5.6.1 | Community
Skip to main content
jacob_m1
New Participant
November 11, 2015
Solved

Access form data from workflow in AEM 5.6.1

  • November 11, 2015
  • 1 reply
  • 606 views

Hi Guys,

I want to create a form using form component. Once form is submitted I want to trigger a workflow ( I guess name of workflow I can specifiy in form dialog box).

Inside that workflow... How can I access to all values filled in the form?

Thanks

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

One way to perform this use case is to submit the form data to a custom sling servlet. 

In side the sling servlet, you can write the form fields to the JCR. Then programmatically invoke the workflow.

http://scottsdigitalcommunity.blogspot.ca/2013/09/creating-workflows-for-adobe-experience.html

Write a custom workflow step that reads the JCR node where form values are stored. Here is how you create a custom workflow step.

http://scottsdigitalcommunity.blogspot.ca/2013/10/creating-custom-aem-workflow-steps-that.html.

Now you have form values in a AEM workflow.

1 reply

smacdonald2008
smacdonald2008Accepted solution
New Participant
November 11, 2015

One way to perform this use case is to submit the form data to a custom sling servlet. 

In side the sling servlet, you can write the form fields to the JCR. Then programmatically invoke the workflow.

http://scottsdigitalcommunity.blogspot.ca/2013/09/creating-workflows-for-adobe-experience.html

Write a custom workflow step that reads the JCR node where form values are stored. Here is how you create a custom workflow step.

http://scottsdigitalcommunity.blogspot.ca/2013/10/creating-custom-aem-workflow-steps-that.html.

Now you have form values in a AEM workflow.