Submit to Livecycle Endpoint from AEM
Hi Folks,
I have a livecycle process that expects a input xml as shown in the attached process diagram. I got to pass the xml value from my AEM Form to this Livecycle process on the click of a button (named downloadPDF). The process gets the XML, Merges the xml to the form design a return the reader extended PDF to AEM, where we are supposed to handle the returned PDF for download.
I am able to get the data as a xml with the guideBridge.js API as follows
window.guideBridge.getDataXML({
success: function(result){
alert(result.data);
$.ajax({
type : 'POST',
url : 'http://10.72.0.30:9083/rest/async_invoke/SomeProject/Process/databaseTest:1.0',
data : {
'dataXML' : result.data
},
success : function (pdfDoc) {
//TODO - code to handle the returned pdf form
},
error: function (error) {
alert(error.responseText);
}
});
},
error: function(result){
alert("Get XML Failed to get the xml data");
},
guideState : null,
boundData : true
});
But I am not able to hit my Livecycle endpoint from the above code. Please let me know if I am taking the right direction to atain my goal of sending XML to the Livecycle endpoint.
Regards -
Ashok Deivasigamani
