How do I integrate the process with Watched Folder? There are many Watched Folder in our system and there are many process in our system. There is no way in Admin UI, to invoke the process that we want to start?
We want to use the offline capabilities of PDF platform. Users of our customer will copy-paste the offline PDF files in to a FTP folder. When a PDF file uploaded then start a specific LiveCycle process to export the data of PDF and save the data to the database.
We are currently using the Watched Folder service to convert the files in any type to the PDF format.
And now we want to create a process and use the Watched Folders as an Endpoint.
Usually you want an INPUT variable of type 'document' to store the file you drop in the watch folder.
Then when you go under the configuration, under the Input Mapping Section.
Map your input document to *.* (for every file type you may drop) or *.pdf (if you only want to get PDF)
As for the output, you can also use a 'document' variable and set it to OUTPUT.
The mappging for that variable would be the name of the pdf to write to the file system (i.e. MyFile.pdf). You can use the keyword %F and %E if you want to reuse the name and/or the extension of the input file (i.e %F.pdf).
I watched the video and I can identify two things:
1- When you create your watch folder endpoint you don't specify anything for your output variable. That might be what you want to do. I just wanted to make sure you realize that nothing will be written to the result folder when there is no more errors.
2- The error your getting is because of a coercion error. That means it's trying to cast one data type into another. From what I can see you're trying to put the content of your 'document' variable into an xfaForm and that won't work since one is binary (document contains PDF) and the other on is XML. Is this possible. Without seeing your process I can only guess.
In out process we want people can submit forms via workspace or offline. So I have to use xfa form for workspace, (am I wrong?) but on the otherhand you say that; we need input variable as document. What do you recommend for us?
I have 2 variable in the process. First one is document type, other is xml. When pdf is sent to watch folder process starts. Then I convert document variable into xml variable. At the end, I try to write the values to database. I dont know why but values are empty. (You can also see empty record on the video)
The problem is when you try to convert the document variable (that contains PDF) into a xml variable.
The document variable contains binary information (the pdf) and you're trying to put that into a XML variable. The SetValue doesn't know anything about PDF and won't extact the data for the PDF automatically.
At this point (and I'm not sure because I can't see the content of the xml variable from the recording), I think it put the whole PDF under process_data/form_1/form1/Johnson node.
You need an intermediate step before the setValue to extract the data from the PDF and then assign it to the xml variable. You can use the ExportData operation from the Form Data Integration service to do that.