We used workflow variables in DDX assembler with Livecycle ES4 JEE. Like this:
<DDX xmlns="http://ns.adobe.com/DDX/1.0/"> <PDF result = "myPDF"> <Watermark scale="70%" verticalOffset="-85pt" opacity="100%"> <PDF source = "docLoteDeclaracoes" pages="{$/process_data/@intPagina$}"/> </Watermark> <PDF source = "docModeloAnexo"/> </PDF> <?ddx-source-hint name = "docLoteDeclaracoes"?> <?ddx-source-hint name = "docModeloAnexo"?> </DDX>
In this code workflow process put value of page to be extracted from "docLoteDeclaracoes" in variable intPaginas.
I need to do similar thing using AEM Forms OSGI workflow, but this form to reference variables don't working.
Any one know how reference OSGI workflow variables in DDX document?
OBS: I am using AEM Forms 6.5
Solved! Go to Solution.
Views
Replies
Total Likes
This is other solution for this case.
<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<PDF result = "doc.pdf">
<PDF source = "docLoteDeclaracoes" pages="1"/>
</PDF>
<?ddx-source-hint name = "docLoteDeclaracoes"?>
</DDX>
XPath: //PDF[@source="docLoteDeclaracoes"]/@pages
Views
Replies
Total Likes
Views
Replies
Total Likes
I have created custom OSGI bundle that allows you to set the value in DDX attribute as part of the workflow as shown in the screen shot
The first parameter is the location of your DDX file. The second is the element and the third is the attribute , and fourth is the value that needs to be set
After the attribute values are set, the DDX is updated in the original location
You can set multiple attributes as shown in the screenshot
The bundle is shared here.
upload your DDX file into AEM DAM
Deploy the bundle and create a simple workflow with the a process step. Set the process step arguments as shown in the screen shot
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
This is other solution for this case.
<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<PDF result = "doc.pdf">
<PDF source = "docLoteDeclaracoes" pages="1"/>
</PDF>
<?ddx-source-hint name = "docLoteDeclaracoes"?>
</DDX>
XPath: //PDF[@source="docLoteDeclaracoes"]/@pages
Views
Likes
Replies
Views
Likes
Replies