Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Migrating workflows from AEM Forms Jee to OSGI

Avatar

Level 2

Hi,

 

We have couple of workflows running on AEM Forms JEE. We are thinking of using the similar workflow in OSGi. To start with rendering a PDF form using a xdp. I created the workflow and given the payload through an absolute path where the xdp is located. When I started the workflow, all I got is a notification in inbox where only I could see the xdp as payload and option to complete/delegate the task etc.

 

I was interested to see if the PDF document comes as an output from the workflow as it used to be in osgi. Also, I could not find an option to make a variable as input or output, so that when the workflow gets invoked it would ask for an input variable and would show the output.

 

Thanks,

Bibhu.

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi,

first of all see this URL which is one of the very few practical examples documented that I could find.

https://khushwantsehgal.wordpress.com/2019/04/14/use-aem-workflow-to-convert-an-xdp-document-to-pdf-...

 

I have been a LiveCycle / JEE developer since the beginning of times. Honestly, AEM Workflow is no replacement for the orchestration engine in JEE. You can replace some aspects of render services etc and maybe some very basic interactive flows with users - but that is way more simplistic compared to the JEE engine. You cannot migrate a JEE solution with all its aspects to OSGi. If you start a fresh OSGi based system/project then you probably have completely different use-cases where the capabilities might match.

You can write your own services or extend the workflows with Java based custom steps - but that is more geek stuff than was required in JEE - still it is possible to integrate workflows in custom services and offer SOAP or watched folders for batch invocation. AEM workflows are not like orchestrations which become services with end-points automatically.

 

 

View solution in original post

4 Replies

Avatar

Correct answer by
Employee

Hi,

first of all see this URL which is one of the very few practical examples documented that I could find.

https://khushwantsehgal.wordpress.com/2019/04/14/use-aem-workflow-to-convert-an-xdp-document-to-pdf-...

 

I have been a LiveCycle / JEE developer since the beginning of times. Honestly, AEM Workflow is no replacement for the orchestration engine in JEE. You can replace some aspects of render services etc and maybe some very basic interactive flows with users - but that is way more simplistic compared to the JEE engine. You cannot migrate a JEE solution with all its aspects to OSGi. If you start a fresh OSGi based system/project then you probably have completely different use-cases where the capabilities might match.

You can write your own services or extend the workflows with Java based custom steps - but that is more geek stuff than was required in JEE - still it is possible to integrate workflows in custom services and offer SOAP or watched folders for batch invocation. AEM workflows are not like orchestrations which become services with end-points automatically.

 

 

Avatar

Level 2

Thanks for your response. Yes LiveCycle developers have become an endangered species these days. 

If Adobe could share any migratory tool which could migrate/convert JEE workflows to OSGi workflows it would be really helpful.

Avatar

Employee
That would be great, wouldn't it I am afraid though - these 2 are so different that there is no tool to convert an orchestration into an AEM workflow or some custom service. You will have to develop it from scratch. The APIs are somewhat similar but not equal. If there is migration support then for the assets (XFA, Adaptive Forms or Interactive Communication). But that would not help you with the application.

Avatar

Level 9

You will probably have to write a simple REStful service to do that 

follow this documentation which has sample assets to get you a head start

https://docs.adobe.com/content/help/en/experience-manager-learn/forms/document-services/output-and-f...