Highlighted

How do I integrate the process with Watched Folder?

Avatar

Guest

17-09-2008

Hi,



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.



How do I do? Can anyone explain about integrity?



Thanks,

Esref Atak

vukuf.com

Replies

Highlighted

Avatar

Guest

18-09-2008

Hi Jasmin,



There is no useful information about Watched Folder in the 8.2 overview doc. It contains surface information.



We need a deeply informated doc, like that: http://blogs.adobe.com/livecycle/2007/12/simple_stupid_pdf_generator_wa.html



Can you help me in step-by-step style?



Did you ever complete a project like we need about Watched Folder?



Thanks,

Esref Atak

vukuf.com
Highlighted

Jasmin_Charbonn

18-09-2008

What you're trying to do seems to be very straightforward (unless I missed something).



1- Create you LC process.

2- Add a watch folder.

3- Configure the watch folder.

3-1 Specify a folder where the file will be picked up.

3-2 Configure the input and output parameters for your process.



Have you tried to configure it? Give it a try. You'll see it's not that bad.



If you run into problem, then we'll help.



Jasmin
Highlighted

_Murat_Kuru_

18-09-2008

Hi Jasmin,

I am working on same the issue. I create a simple process, then add watch folder endpoint(Home/Services/Applications and Services/Endpoint Management/Configure deneme07agu/Add WatchedFolder Endpoint)

But i cant estimate what to define for Input Parameter and Output Parameter mappings. Do you have any suggestion?



Thanks in advance..

Murat
Highlighted

Jasmin_Charbonn

18-09-2008

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).



Jasmin
Highlighted

Avatar

Guest

19-09-2008

Hi Jasmin,



I have created a video to explain where is the problem. It is accessable at:



http://www.medyasoft.com.tr/blog/watched-folder-forum-sample/index.htm



Occur an error when we copy an offline PDF to the Watched Folder. You can see the problem in video.



I hope this video helps to our to explain the problem.



Thanks for your support,

Esref Atak

vukuf.com
Highlighted

Jasmin_Charbonn

19-09-2008

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.



Jasmin
Highlighted

Jasmin_Charbonn

19-09-2008

Like I suspected your trying to put a PDF in xfaForm variable.



The xfaForm variable is a pointer to a xdp or PDF and has a render service associated with it, but the content of the variable is XML and not PDF.



If you use a watch folder, you need the input variable to be of type 'document' and not xfaForm because it contains the whole PDF and not just the xml data.



Jasmin