Passing Values between AEM Workflow Steps | Community
Skip to main content
smacdonald2008
Level 10
April 18, 2016

Passing Values between AEM Workflow Steps

  • April 18, 2016
  • 4 replies
  • 16719 views

You can develop a custom Adobe Experience Manager (AEM) workflow step that sets a value that can be retrieved by another step in the same workflow. For example, assume you read a property of a payload and you need that value in a later step. You can store the value and retrieve it in a later step.

To read and write values in an AEM workflow, you need to write custom steps. A custom workflow step is implemented as an OSGi bundle that you can build using Maven and the AEM Workflow APIs that belong to the com.adobe.granite.workflow.exec package. For information, see Package com.adobe.granite.workflow.exec.

To demonstrate how to pass values in a workflow between steps, this article uses the following workflow model.

To read this development article, click   https://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-pass-data.ht ml.

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

4 replies

Level 9
April 18, 2016

Hi Scott,

Thank you for sharing this across.

April 21, 2016

Hi Scott,

I have tried to this example on AEM 6.1 Service Pack 1 server, and I got some error when I deploy and start the bundle.

21.04.2016 17:28:05.384 *ERROR* [FelixStartLevel] ERROR: Error starting inputstream:demobundle-bundle-1.0-SNAPSHOT.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle com.dsa.demo.demobundle-bundle [470]: Unable to resolve 470.0:
missing requirement [470.0] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.granite.workflow)(version>=1.0.0)(!(version>=2.0.0))))
org.osgi.framework.BundleException: Unresolved constraint in bundle com.dsa.demo.demobundle-bundle [470]:
Unable to resolve 470.0: missing requirement [470.0] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.granite.workflow)(version>=
1.0.0)(!(version>=2.0.0)))
        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4095)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2114)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1368)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
        at java.lang.Thread.run(Thread.java:745)

Thanks.

smacdonald2008
Level 10
April 21, 2016

can you try on an fresh version of AEM. We have had many community members get this working., Did you use all of the Dependencies in the POM in the artilce and follow it exactly? 

chintan97
Level 2
May 27, 2020
March 18, 2022

@smacdonald2008 ,

Do you have the correct development article link or working package of it?
https://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-pass-data.html is taking to different page.

 

Thanks,

Shiv MN