{"id":7824,"date":"2020-03-12T14:30:57","date_gmt":"2020-03-12T21:30:57","guid":{"rendered":"https:\/\/minisoft.com\/support\/?p=7824"},"modified":"2020-03-12T14:38:14","modified_gmt":"2020-03-12T21:38:14","slug":"using-data-queues-in-eformz","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/using-data-queues-in-eformz\/","title":{"rendered":"Using Data Queues in eFORMz (Director)"},"content":{"rendered":"\n<p>NOTE: For accessing Data Queues from within an eFORMz project, consult the following post: <a href=\"\/support\/index.php\/iseries-data-queue\/\">iSeries Data Queue<\/a><\/p>\n\n\n\n<p>The Director Toolkit can use Data Queues from an iSeries in two ways for processing input.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Data&nbsp;Queue Paired with an Input&nbsp;Queue (OUTQ)<\/h2>\n\n\n\n<p>A Data&nbsp;Queue (DTAQ) can be associated with a Director\nInput&nbsp;Queue (aka \u201cOUTQ\u201d), so that when a spool file is placed in the Input&nbsp;Queue,\nthe associated Data&nbsp;Queue wakes up the eFORMz Director queue so that it\nimmediately processes the spool file. This is more efficient than frequent\npolling of the Input&nbsp;Queue and provides more real-time processing of the\nspool files.<\/p>\n\n\n\n<p>Configuring an Input&nbsp;Queue for an associated Data Queue simply requires specifying the full path name of the Data&nbsp;Queue in the Input&nbsp;Queue definition. The dialog box below is for configuring a Remote iSeries queue, and it is almost identical to the dialog box for configuring a Local iSeries queue:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"533\" height=\"525\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-1.png\" alt=\"\" class=\"wp-image-7825\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-1.png 533w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-1-300x295.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-1-150x148.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-1-75x75.png 75w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-1-48x48.png 48w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-1-250x246.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-1-183x180.png 183w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-1-305x300.png 305w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-1-508x500.png 508w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/figure>\n\n\n\n<p>Enter the Data&nbsp;Queue path in the field labeled \u201cDTAQ\nWatch\u201d. In the example above, this path is:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/QSYS.LIB\/QGPL.LIB\/EFORMZD101.DTAQ<\/pre>\n\n\n\n<p>When you configure an Input&nbsp;Queue with an associated\nData&nbsp;Queue, you can specify a relatively large value for the \u201cCheck\ninterval\u201d, since the Data&nbsp;Queue will cause the Input&nbsp;Queue to be\ncalled immediately when a spool file is placed in the Input&nbsp;Queue.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Data&nbsp;Queue as Mechanism for Passing Data to eFORMz<\/h2>\n\n\n\n<p>To process data from a Data Queue, a Director queue can be\nset up to monitor the Data Queue and process any data that is placed in the\nData Queue, typically from an iSeries application. The steps to configure a\nDirector queue to process a Data Queue are shown below. Note that when\nconfiguring a Data Queue, you never specify a polling interval; this is because\nthe Data Queue immediately calls the Director queue when data is ready for\nprocessing, with no polling required.<\/p>\n\n\n\n<p>In the Configure tab of the Director, select the root node of the configuration file. Then click the Add button on the right side of the window, and select the \u201ciSeries Data Queue\u201d from the popup menu:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"152\" height=\"273\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-2.png\" alt=\"\" class=\"wp-image-7826\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-2.png 152w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-2-84x150.png 84w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-2-100x180.png 100w\" sizes=\"(max-width: 152px) 100vw, 152px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Define Director Queue for\nData Queue<\/h3>\n\n\n\n<p>Enter values for the fields in the \u201ciSeries Data Queue\u201d dialog box:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"533\" height=\"424\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-3.png\" alt=\"\" class=\"wp-image-7827\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-3.png 533w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-3-300x239.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-3-150x119.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-3-250x199.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-3-226x180.png 226w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-3-377x300.png 377w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/figure>\n\n\n\n<p><strong>Name:<\/strong> A descriptive name for the Director queue<\/p>\n\n\n\n<p><strong>Host:<\/strong> The name or IP address of the iSeries box<\/p>\n\n\n\n<p><strong>User:<\/strong> user name for logging into the iSeries<\/p>\n\n\n\n<p><strong>Password:<\/strong> password for the user name<\/p>\n\n\n\n<p><strong>Data Queue Path:<\/strong> the fully qualified path to the Data Queue<\/p>\n\n\n\n<p><strong>CCSID (\u201ccoded character set identifier\u201d):<\/strong> the code page to be used for reading data from the Data Queue.<\/p>\n\n\n\n<p>Click OK to add this queue to the Director.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Add Message Selector for Data Queue<\/h3>\n\n\n\n<p>Right click on the Data Queue just added, and select the \u201cAdd Message Selector\u2026\u201d command from the popup menu:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"212\" height=\"103\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-3-B.png\" alt=\"\" class=\"wp-image-7828\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-3-B.png 212w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-3-B-150x73.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-3-B-210x103.png 210w\" sizes=\"(max-width: 212px) 100vw, 212px\" \/><\/figure>\n\n\n\n<p>Enter values for the fields on the \u201cMessage Selection\u201d dialog box:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"446\" height=\"338\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-4.png\" alt=\"\" class=\"wp-image-7829\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-4.png 446w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-4-300x227.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-4-150x114.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-4-250x189.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-4-238x180.png 238w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-4-396x300.png 396w\" sizes=\"(max-width: 446px) 100vw, 446px\" \/><\/figure>\n\n\n\n<p><strong>MatchString:<\/strong> A regular expression which is run against up to the first 2,000 characters in the message. If the message in the Data Queue matches the MatchString, it will be processed; otherwise, it will be ignored. <\/p>\n\n\n\n<p><strong>Format:<\/strong> Select a value from the Format dropdown list, specifying the expected format of the data.<\/p>\n\n\n\n<p><strong>Disposition:<\/strong> Select an option for the Disposition. We recommend \u201cDelete selected file\u201d to delete the message from the Data Queue after processing.<\/p>\n\n\n\n<p><strong>Handle each message as a SPLF request:<\/strong> Non-SPLF messages can currently only be handled as text strings. The SPLF messages include some binary components. This flag enabled correct interpretation of the message data. <\/p>\n\n\n\n<p>Click OK to save the message selection parameters.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Select an eFORMz Project to Process the Data<\/h3>\n\n\n\n<p>With the message selector in place, right click on it and select \u201cAdd Processor\u201d, then \u201ceFORMz\u2026\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"311\" height=\"145\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-5.png\" alt=\"\" class=\"wp-image-7830\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-5.png 311w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-5-300x140.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-5-150x70.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-5-250x117.png 250w\" sizes=\"(max-width: 311px) 100vw, 311px\" \/><\/figure>\n\n\n\n<p>Select an eFORMz project to process the message from the\nData Queue.<\/p>\n\n\n\n<p>From this point, configuring the Director queue is just like configuring a Director queue to process input from a local directory. After configuration is complete, the Director queue might look like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"413\" height=\"69\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-6.png\" alt=\"\" class=\"wp-image-7831\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-6.png 413w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-6-300x50.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-6-150x25.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/OUTQ-6-250x42.png 250w\" sizes=\"(max-width: 413px) 100vw, 413px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>NOTE: For accessing Data Queues from within an eFORMz project, consult the following post: iSeries Data Queue The Director Toolkit can use Data Queues from an iSeries in two ways for processing input. Data&nbsp;Queue Paired with an Input&nbsp;Queue (OUTQ) A Data&nbsp;Queue (DTAQ) can be associated with a Director Input&nbsp;Queue (aka \u201cOUTQ\u201d), so that when a [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[186],"tags":[596,427],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/7824"}],"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\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=7824"}],"version-history":[{"count":3,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/7824\/revisions"}],"predecessor-version":[{"id":7834,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/7824\/revisions\/7834"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=7824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=7824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=7824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}