using BlueSeer transformation in a REST context #141
-
First off let me say that I am super appreciative for the work it takes, and the selflessness it shows to put that hard work out there for others to use and learn from, no strings attached. Hats off, I really admire your ethic and generosity!!! I am most interested in using BlueSeer in "standalone translator" mode and in as much of a REST context, or scripting context calling the jars/classes as directly as possible. For a first example, I'm attempting to call a translation upon an arbitrary input file, using a specific map, and writing the output file to specific location. My 1st attempt is to use EDIbs like so, from the powershell commandline on windows11, current directory C:\BlueSeer where I've installed BS from the binary installer: This does kickoff the translation, picking up the sampledata\ACME_850.txt and creating a XML, BUT it doesn't respect the -of argument - it creates the files in edi\batch and edi\out using the edpd Attributes page FilePrefix+counter+FileSuffix entries First question: How can I specify an overridden output filename in this context? Second question: Is there a way to call the classes already available, in a REST context, supplying the X12 input from a POST method and returning the transformed XML in the response body, or using a *.bat file to call java -cp getting the input X12 text from stdin and sending the transformed text to stdout? As I gain confidence and understanding of BlueSeer, I will happily share any code I create. Thanks again for the fine work |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey Matt, First of all...thank you for the compliments. Much appreciated. You are correct about the EDIbs class issue ignoring the -of flag. It's a bug. The command line EDIbs class was done prior to some recent updates in config lookup and I failed to bake the changes back into EDIbs...as it is not used a lot. I'll be uploading a new jar file immediately after posting this. Download the blueseer.jar file from the following zip (https://github.com/blueseerERP/blueseer/releases/download/v7.0/blueseer.jaronly.zip) and overlay into your c:\blueseer\dist folder...overwriting the old....then try your command line again. I also need to update the documentation as the allow parameters to EDIbs have changed slightly. For the '-m' parameter....use only the name of the map...(without .jar) and do not use the full path. Also, add a '-x' parameter to the end of the command string...as this is now required to distinguish cmd line processing in the engine. Here's a working example: |
Beta Was this translation helpful? Give feedback.
Hey Matt,
First of all...thank you for the compliments. Much appreciated. You are correct about the EDIbs class issue ignoring the -of flag. It's a bug. The command line EDIbs class was done prior to some recent updates in config lookup and I failed to bake the changes back into EDIbs...as it is not used a lot. I'll be uploading a new jar file immediately after posting this. Download the blueseer.jar file from the following zip (https://github.com/blueseerERP/blueseer/releases/download/v7.0/blueseer.jaronly.zip) and overlay into your c:\blueseer\dist folder...overwriting the old....then try your command line again. I also need to update the documentation as the allow parameters to EDIbs h…