Getting Document from workflow - custom step | Community
Skip to main content
crich2784
July 21, 2021
Solved

Getting Document from workflow - custom step

  • July 21, 2021
  • 2 replies
  • 2087 views

I have a Java project using a Maven archetype provided by Adobe to get started.

 

I have built several custom workflow steps using this model - all is good.

Until now, all of them have been using typical data types such as Int, String, etc.

 

Now, I have a need to write a Document to the Filesystem.  Because I do not see an existing component to do this, I will need to build my own custom step.

I expect the code will be something like this:

com.adobe.aemfd.docmanager.Document doc = wfd.getMetaDataMap().get("myDoc");

 

However the package com.adobe.aemfd.docmanager isn't in the project setup.  I'm a novice at Maven and adding libraries so, any help to bootstrap this quickly would be helpful.

 

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 Vijayalakshmi_S

Hi @crich2784,

Maven dependency for com.adobe.aemfd family(https://mvnrepository.com/artifact/com.adobe.aemfd/aemfd-client-sdk/1.0.2) is available as part of Adobe Public Repository - https://repo.adobe.com/nexus/content/groups/public/

Try adding this dependency in main/pom.xml and in core/pom.xml -> Update Maven project (By being in core module in your IDE).

In order to resolve as OSGi dependency (once the package is installed in AEM instance), licensed AEM Forms addon package would help.

2 replies

arunpatidar
Community Advisor
Community Advisor
July 22, 2021

Hi,

you can check dependencies at /system/console/depfinder

As I checked I am not able to find this in AEM, so you need to check another API.

Arun Patidar
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
July 22, 2021

Hi @crich2784,

Maven dependency for com.adobe.aemfd family(https://mvnrepository.com/artifact/com.adobe.aemfd/aemfd-client-sdk/1.0.2) is available as part of Adobe Public Repository - https://repo.adobe.com/nexus/content/groups/public/

Try adding this dependency in main/pom.xml and in core/pom.xml -> Update Maven project (By being in core module in your IDE).

In order to resolve as OSGi dependency (once the package is installed in AEM instance), licensed AEM Forms addon package would help.

crich2784
crich2784Author
July 22, 2021
Ok, I've made the changes but, it cannot find the dependency. In Chrome, I navigated here: https://repo.adobe.com/nexus/content/groups/public/ and, it does not appear to be in the repository. Am I missing something? How do I add it if it's not in the repository?