{"id":5916,"date":"2017-12-12T23:37:52","date_gmt":"2017-12-12T23:37:52","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=5916"},"modified":"2020-07-01T15:09:59","modified_gmt":"2020-07-01T22:09:59","slug":"web-service-post-call-to-wake-up-a-sleeping-queue-part-1","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/web-service-post-call-to-wake-up-a-sleeping-queue-part-1\/","title":{"rendered":"Web Service POST call to \u201cWake Up\u201d a \u201cSleeping\u201d Queue: Part 1"},"content":{"rendered":"<p>To follow along with this guide please download the following zip, which contains WakeUpDirectoryQueue.efz and ws_accessible.cfg.<\/p>\n<p><a href=\"\/support\/wp-content\/uploads\/2017\/12\/WakeUpQueueGuide.zip\">WakeUpQueueGuide<\/a>\u00a0(Project files).<\/p>\n<p>What is a queue? It is a list of data items, commands, etc. that are waiting to be processed. What is a queue in eFORMz and where can you find it? A queue in eFORMz is defined in the Director Toolkit and stored in an eFORMZ configuration file (.cfg extension). A queue in eFORMz is setup manually in a .cfg file (eFORMz configure file), which is located in the <code>\\Minisoft\\eFORMz_6\\<\/code> folder path (Windows) or <code>\/Minisoft\/<\/code> (iSeries &amp; UNIX). By default, eFORMz uses the configuration file called &#8220;LocalPM.cfg&#8221;.<\/p>\n<p>The .zip file you downloaded above contains a file called &#8220;ws_accessible.cfg&#8221;. Move that file into the \\Minisoft\\eFORMz_6\\ folder path. This project uses the .cfg file named \u201cws_accessible.cfg\u201d. Open this file in the Director Toolkit. Select the File menu, then the \u201cOpen configuration\u2026\u201d command. Then select the \u201cws_accessible. cfg\u201d file. Your window should look similar to the screen shot below.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5917\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit.jpg\" alt=\"\" width=\"621\" height=\"628\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit.jpg 621w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit-297x300.jpg 297w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit-148x150.jpg 148w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit-75x75.jpg 75w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit-48x48.jpg 48w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit-250x253.jpg 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit-550x556.jpg 550w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit-178x180.jpg 178w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit-494x500.jpg 494w\" sizes=\"(max-width: 621px) 100vw, 621px\" \/><\/a><\/p>\n<p>The green arrows point to the queues defined in this configuration:<\/p>\n<p>&#8220;Production: Input directory: input\/prod&#8221;<br \/>\n&#8220;Test: Input directory: input\/test&#8221;<br \/>\n&#8220;ClearOldProductionFiles: Input directory: output\/prod&#8221;<br \/>\n&#8220;ClearOldTestFiles: Input directory: output\/test&#8221;<\/p>\n<p>The names of the queues are &#8220;Production&#8221;, &#8220;Test&#8221;, &#8220;ClearOldProductionFiles&#8221;, and &#8220;ClearOldTestFiles&#8221;, and they monitor the specified directories for .xml files, as indicated by the &#8220;File Selection: *.xml&#8221; line in the queue definition.<\/p>\n<p>Switch to the \u201cDirector\u201d tab to see the running queues highlighted by the green arrows.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/InkedToolKit2_LI.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5919\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/InkedToolKit2_LI.jpg\" alt=\"\" width=\"620\" height=\"628\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/InkedToolKit2_LI.jpg 620w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/InkedToolKit2_LI-296x300.jpg 296w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/InkedToolKit2_LI-148x150.jpg 148w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/InkedToolKit2_LI-75x75.jpg 75w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/InkedToolKit2_LI-48x48.jpg 48w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/InkedToolKit2_LI-250x253.jpg 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/InkedToolKit2_LI-550x557.jpg 550w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/InkedToolKit2_LI-178x180.jpg 178w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/InkedToolKit2_LI-494x500.jpg 494w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>Switch back to the configure tab, right click on the \u201cTest\u201d queue and select \u201dChange\u2026\u201d.The \u201cCheck Interval\u201d is currently set to 500 seconds, indicating that the Director will check the specified directory \u201cinput\/test\/\u201d every 500 seconds. Since the directory name does not start with a slash or backslash, it is a relative directory, and it is relative to the eFORMz install directory, C:\\Minisoft\\eFORMz_6 on Windows. The queue \u201csleeps\u201d until 500 seconds elapse, then it wakes up and checks for input, processes any input found, and then goes back to sleep. Click \u201cCancel\u201d since we did not make any changes.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit3.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5920\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit3.jpg\" alt=\"\" width=\"533\" height=\"372\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit3.jpg 533w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit3-300x209.jpg 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit3-150x105.jpg 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit3-250x174.jpg 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit3-258x180.jpg 258w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ToolKit3-430x300.jpg 430w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/a><\/p>\n<p>Switch back to the Configure tab and deactive everything except for the \u201cTest\u201d queue. To deactivate, right click on the queue and select the \u201cActive\u201d menu item to uncheck it.<\/p>\n<p>Next, we will learn about the <a href=\"\/support\/index.php\/web-service-post-call-to-wake-up-a-sleeping-queue-part-2\/\">available options in a web service call<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To follow along with this guide please download the following zip, which contains WakeUpDirectoryQueue.efz and ws_accessible.cfg. WakeUpQueueGuide\u00a0(Project files). What is a queue? It is a list of data items, commands, etc. that are waiting to be processed. What is a queue in eFORMz and where can you find it? A queue in eFORMz is defined [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[343,344,345,341,342,340],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/5916"}],"collection":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=5916"}],"version-history":[{"count":6,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/5916\/revisions"}],"predecessor-version":[{"id":8178,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/5916\/revisions\/8178"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=5916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=5916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=5916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}