<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: CMS - add a PDF file to the process</title><link>https://answers.axonivy.com/questions/2636/cms-add-a-pdf-file-to-the-process</link><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I'm trying to find the way to do the following. We need to start a process when a email comes with an attachment. I can solve this by a daemon in OS at host. But then, when the file moves to a folder, I need to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Start the process &lt;/li&gt;
&lt;li&gt;Add the PDF to the process to be available to process users.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I'm writing a Java class in order to search if there is a file to the folder and raise the start of the process. I need to know how can put it in a daemon that executes that every x minutes. 
Then, I have to attach the PDF to the process, but I'm not finding a way to do it.&lt;/p&gt;
&lt;p&gt;Any idea?&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2636/cms-add-a-pdf-file-to-the-process" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 01 Jun 2017 05:23:48 -0400</lastBuildDate><item><title>Comment by jirazazabal on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/2636/cms-add-a-pdf-file-to-the-process#2659</link><description>&lt;p&gt;How can I reference the document attached, for example, in a HTML Form? I would like the user be able to open the pdf from the dialog...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jirazazabal</dc:creator><pubDate>Thu, 01 Jun 2017 05:23:48 -0400</pubDate><guid>https://answers.axonivy.com/questions/2636/cms-add-a-pdf-file-to-the-process#2659</guid></item><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/2636/cms-add-a-pdf-file-to-the-process#2640</link><description>&lt;p&gt;You're welcome. &lt;/p&gt;
&lt;p&gt;See this answer for a demo how to add something to the CMS: &lt;a href="http://answers.axonivy.com/questions/1981/edit-cms-on-the-server"&gt;http://answers.axonivy.com/questions/1981/edit-cms-on-the-server&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But I'd favour the &lt;code&gt;ivy.case.documents()&lt;/code&gt; API if you like to attach something to a running case. The CMS should primary be used for static 'translatable' content.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 26 May 2017 05:11:33 -0400</pubDate><guid>https://answers.axonivy.com/questions/2636/cms-add-a-pdf-file-to-the-process#2640</guid></item><item><title>Comment by jirazazabal on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/2636/cms-add-a-pdf-file-to-the-process#2639</link><description>&lt;p&gt;Great! Thanks a lot! &lt;/p&gt;
&lt;p&gt;How can I store this file into the CMS? I don't want the user has to do it manually.&lt;/p&gt;
&lt;p&gt;Thanks a lot again!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jirazazabal</dc:creator><pubDate>Fri, 26 May 2017 03:41:46 -0400</pubDate><guid>https://answers.axonivy.com/questions/2636/cms-add-a-pdf-file-to-the-process#2639</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/2636/cms-add-a-pdf-file-to-the-process/2637</link><description>&lt;p&gt;This is a task that you can easily solve with the standard process 'Program Start' event. 
Choose the 'FilePickupStartEventBean' in the 'Start' tab and configure the path to monitor for new files in the 'Editor' tab. You can also define which process attributes should contain the PDF.&lt;/p&gt;
&lt;p&gt;With this start event a process will run whenever a file was found in the configured folder and you have access to it on the process data.&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/filePickupStartEvent_ea0SmMC.png"&gt;
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/filePickup_editor.png"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Wed, 24 May 2017 08:19:22 -0400</pubDate><guid>https://answers.axonivy.com/questions/2636/cms-add-a-pdf-file-to-the-process/2637</guid></item></channel></rss>