Expand my Community achievements bar.

SOLVED

Getting Document from workflow - custom step

Avatar

Level 7

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,

1 Accepted Solution

Avatar

Correct answer by
Level 10

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.

View solution in original post

10 Replies

Avatar

Community Advisor

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

Avatar

Correct answer by
Level 10

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.

Avatar

Level 7
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?

Avatar

Level 7
I clicked on that link. I do not see docmanager. Are you seeing something different?

Avatar

Level 7
../ adobe-aemfd-cmb-service/ 03-Apr-2018 10:35 - adobe-aemfd-cpdf-bmc/ 03-Jul-2018 13:33 - adobe-aemfd-cpdf-service/ 03-Jul-2018 13:33 - aemfd-client-sdk/ 03-Jun-2020 14:32 - aemfd-client-sdk-test/ 02-May-2018 11:35 -

Avatar

Level 10

@crich2784,

You need to use this dependency - aemfd-client-sdk

com.adobe.aemfd.docmanager Package is part of this aemdf-client-sdk artifact

Avatar

Level 10

@crich2784 

Dependency entry to be added in POM -  You can change the version per your need.

<dependency> 
<groupId>com.adobe.aemfd</groupId> 
<artifactId>aemfd-client-sdk</artifactId> 
<version>1.0.2</version> 
</dependency>

 

Avatar

Level 7
Ahhh!!! I guess I have a hard head. I read your original post and it says that but, I couldn't tell. I updated it and it's working now. Thank you.