Hello All - I've written a servlet that simply takes a PDF document and calls a process I have written. In the first step in the process I'm trying to use the processFormSubmission service to process the PDF submission. I'm trying to get the output of the service into an xfaForm variable but I'm having no luck. Whenever I try to set the FormsResults' outputContent to xfaForm variable I get a coercision exception.
My ultimate goal is to use information from the form to make decisions in the process. I've also tried just using the processFormSubmission's "Output XML" but it requires me to use a "document" variable. I need to apply a schema to it so that I can drill down into the data in my process.
Jasmin - I do have the XSD bound to a schema (its the schema I have in the above message).
I'm wondering if this will work (I'll probably try it when I get to work on monday) - just create an input variable of type xfaForm and do not use the processFormSubmission service at all. I'm thinking that I'm running into issues because I'm submitting this data through a servlet not through workspace.
Could you manage to resolve this problem Bryan? I'm facing the same, when I extract data from a PDF using exportData service and log the variable. It appears as XDP but I want XML because I want to render the form again in later stage.
I would use the exportData service under Common. this will give you your data as a document. Then you can use a setValue operation to put the document contents into an XML var. Now you can use XPath on the XML var to do what you wish.
I did the same Paul but when I drill down the XML to get the perticular field I gets a null instead of the field value. But when I see the whole XML variable, it has the data. What could be the problem?