I want to save my XDP form to a file system as PDF documents at the end of the workflow. There is a service writeDocument to writing PDF files, which accepts 2 parameters as input
pathname -- type : string
document -- type : document
In my workflow , I have an Xfaform variable which holds my form data.
But, as service requires the parameter as document I could not pass this variable to service. I tried to define a process variable of type document
and assign my xfaform variable to it, then pass this variable to the service. A pdf file is generated but not valid (1 k).
My question is how should I pass the variable to this service?
The xfaForm variable usually contains a pointer to an XDP file. The XDP needs to be rendered by a service to create a PDF. You can then save the resulted PDF into a "document" variable and use that variable with the WriteDocument service.
I guess what I want to make clear is that there are extra step you need to take to get from XDP to PDF before you write it to the file system.