{"id":7266,"date":"2022-03-16T09:49:00","date_gmt":"2022-03-16T16:49:00","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=7266"},"modified":"2022-03-31T09:43:34","modified_gmt":"2022-03-31T16:43:34","slug":"integrating-eformz-with-jda-redprairie-wms","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/integrating-eformz-with-jda-redprairie-wms\/","title":{"rendered":"Integrating eFORMz with Blue Yonder (JDA\/RedPrairie) WMS"},"content":{"rendered":"\n<p>eFORMz can use multiple data formats that Blue Yonder (JDA\/RedPrairie) WMS creates. Your current process is an important consideration in how you integrate eFORMz. For example, if your current process includes creating PDF files, eFORMz can pick up the PDF files and extract the data they contain, which minimizes your changes to existing business processes and speeds development time and accuracy. Sometimes a combination of these methods works best.<\/p>\n\n\n\n<p>For more information,&nbsp;<a href=\"\/support\/index.php\/submit-support-request\/\">contact us<\/a>. For more details on eFORMz integration, consult the following post:&nbsp;<a href=\"\/support\/index.php\/integration\/\">How Does eFORMz Integrate? | eFORMz Integration<\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Java Print Service (JPS) &#8211; JDA MOCA services<\/h1>\n\n\n\n<p>eFORMz integrates with BlueYonder WMS by capturing output via JDA MOCA services using Java Print Service (JPS). <code>PrintServices.xml<\/code> is a part of the eFORMz installation and it holds configuration of eFORMz printers. The <a href=\"\/support\/index.php\/director-toolkit\/\">Director Toolkit (Configuration)<\/a> is an app that&#8217;s used to configure eFORMz printers. The eFORMz Java Print Service Provider jar file (<code>eFORMzPrinter.jar<\/code>) translates Java drawing operations to Minisoft eFORMz Document (<code>.efd<\/code>) formatted output. The resulting <code>.efd<\/code> files are read in by eFORMz and outputted to <code>.pdf<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">eFORMzPrinter.jar<\/h2>\n\n\n\n<p>Reference <code>eFORMzPrinter.jar<\/code> in the classpath. This entails either copying it to a directory that is automatically searched by your application\u2019s class loader, or specifically referencing <code>eFORMzPrinter.jar<\/code> in the <code>-cp<\/code> parameter. Download <code>eFORMzPrinter.jar<\/code> here: <a href=\"\/support\/wp-content\/uploads\/2022\/03\/eFORMzPrinterJar.zip\">eFORMzPrinter.zip<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PrintService.xml<\/h2>\n\n\n\n<p>Create a <code>PrintService.xml<\/code> file to configure your printers and put it in a dedicated local directory. Download a simple sample here: <a href=\"\/support\/wp-content\/uploads\/2022\/03\/PrintServices.zip\">PrintServices.zip<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">-DefzPrintServicesDefaultDirectory=&lt;config directory&gt;<\/h2>\n\n\n\n<p>Modify the application&#8217;s start-up command by adding the <code>-DefzPrintServicesDefaultDirectory=&lt;config directory&gt;<\/code> parameter, where <code>directory<\/code> is where <code>PrintServices.xml<\/code> is located. In other words, add the following in a Java command to whatever is calling the print service.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">-DefzPrintServicesDefaultDirectory=&lt;config directory&gt; <\/pre>\n\n\n\n<p><em><strong>Note:<\/strong> To avoid dash substitution, it is recommended that you type the dash (<code>-<\/code>) in place instead of copying it.<\/em><\/p>\n\n\n\n<p>The <code>-D<\/code> parameter refers to a directory created to contain the <code>PrintServices.xml<\/code> file. It is also the directory that will contain the folders for the intercepted output from BlueYonder\/JDA. Typically we use <code>\/minisoft<\/code> or <code>\/opt\/minisoft<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Restart the Java application<\/h2>\n\n\n\n<p>Restart the Java application. The logging setup in the sample <code>PrintServices.xml<\/code> will create logging in the <code>&lt;config directory&gt;<\/code>. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Process w\/Director<\/h2>\n\n\n\n<p>Using <code>eFORMzPrinter.jar<\/code>, <a href=\"\/support\/index.php\/process-w-director\/\">Process w\/Director<\/a> allows the user to call the eFORMz Director service. <code>eFORMzPrinter.jar<\/code> can send print output to the Director for processing using a web service by modifying <code>PrintServices.xml<\/code>, the configuration XML file. Here is a sample: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;PrintService Name=\"Web Service\"&gt;\n    &lt;Output Type=\"ws\" Url=\"http:\/\/localhost:8001\/servlet\/com.minisoft.AppServer.AppServer?APP=com.minisoft.eformz.eFORMzApp&amp;amp;director&amp;amp;Host=localhost&amp;amp;Port=9996&amp;amp;User=minisoft&amp;amp;Password=password&amp;amp;ConfigurationName=eFORMzPrinters_new.cfg&amp;amp;QueueName=FromWS&amp;amp;NameTemplate=fromws.efd&amp;amp;QueueData=true&amp;amp;ProcessData=true\" ContentType=\"text\/xml\"&gt;\n      &lt;Output Type=\"file\" Directory=\"\/Users\/username\/Minisoft\/build\/print\/FromWS\" FileName=\"packslip.efd\" ProcessWDirector=\"false\" WebServiceUrl=\"\" Host=\"\" Port=\"\" User=\"\" Password=\"\" Configuration=\"\" Queue=\"\" \/&gt;\n    &lt;\/Output&gt;\n    &lt;Option Name=\"Omit white rectangles\" Value=\"Yes\" \/&gt;\n    &lt;Option Name=\"Consolidate glyphs\" Value=\"No\" \/&gt;\n    &lt;Option Name=\"Omit lines\" Value=\"Yes\" \/&gt;\n  &lt;\/PrintService&gt;<\/pre>\n\n\n\n<p>Change the host addresses and directory references. Make sure that the Director configuration is accessible. This means that the configuration needs to be started with the <code>-ac<\/code> switch. You can include <code>-ac<\/code> as a startup parameter. The <code>-ac<\/code> switch must precede the queue name. Usually the accessible queue is named <code>accessible.cfg<\/code>. So this is the typical startup configuration with an accessible queue:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/DirConfig3.png\"><img decoding=\"async\" loading=\"lazy\" width=\"624\" height=\"178\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/DirConfig3.png\" alt=\"\" class=\"wp-image-6065\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/DirConfig3.png 624w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/DirConfig3-300x86.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/DirConfig3-150x43.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/DirConfig3-250x71.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/DirConfig3-550x157.png 550w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/a><\/figure>\n\n\n\n<p>This is explained here: <a href=\"https:\/\/minisoft.com\/support\/index.php\/setting-the-eformz-startup-configuration\/\">Setting the eFORMz Startup Configuration<\/a>. Another option is to check the &#8220;Make configuration accessible from eFORMz Web Services&#8221; checkbox. The checkbox for making the configuration accessible to web services is shown when you add a new configuration in the Director tab. This is explained here: <a href=\"\/support\/index.php\/director-setup-for-windows\/#Automate\">Director Setup for Windows<\/a>, <a href=\"\/support\/index.php\/director-setup-for-unix\/#Automate\">Director Setup for Unix<\/a> and <a href=\"\/support\/index.php\/director-setup-for-as400\/#Automate\">Director Setup for iSeries\/AS400<\/a>.<\/p>\n\n\n\n<p>Depending on the version of eFORMz you are running and its configuration, you may or may not need the <code>User<\/code> and <code>Password<\/code> parameters. This example shows how to include a backup transfer method if the WS fails <code>&lt;Output Type=\"file\"&gt;<\/code>. This would need to use a shared files system if eFORMz is on a server separate from Blue Yonder. Note that when you update <code>PrintServices.xml<\/code>, the jar file automatically reads in the changes. You do not have to restart Blue Yonder.<\/p>\n\n\n\n<p>Consult the following post for more details: <a href=\"https:\/\/minisoft.com\/support\/index.php\/process-w-director\/\">Process w\/Director<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>eFORMz can use multiple data formats that Blue Yonder (JDA\/RedPrairie) WMS creates. Your current process is an important consideration in how you integrate eFORMz. For example, if your current process includes creating PDF files, eFORMz can pick up the PDF files and extract the data they contain, which minimizes your changes to existing business processes [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106],"tags":[773,27,583,772,210,499,501],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/7266"}],"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=7266"}],"version-history":[{"count":13,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/7266\/revisions"}],"predecessor-version":[{"id":10496,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/7266\/revisions\/10496"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=7266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=7266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=7266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}