Introduction to Script Code Generator Tool
The Script Code Generation tool (or “CodeGen tool”) helps you speed up Script development by automatically generating Script code based on a number of Script code generator definitions.
The Script Code Generation Tool is recommended for advanced iCore developers only. Using the tool incorrectly can result in poorly optimized, or “dirty” code which makes further development of your integration solution difficult.
The Script Code Generator tool is installed as an additional feature in the iCore integration Suite installation (see Installing binary files)
The following generator definitions are currently available:
Common Generator
Generates Script properties (Version, Author, Change log), DebugLog, Script Start/End, CreateOutNode, SetMessageDefinition, DoMain. This generator is used by other generators.Delta Handling From XML Generator
Generates code for Delta handling (identify differences between two sequential messages in XML format). For more information about the Delta package, refer to the documentation available on iCore Tech.Translate From Flat file to IM Generator
Generates code for parsing a flat file and translating to IM format. DoMain, Parse, Map to variables/dummy, DebugLog, Clear, incl. Common Generator Definition. Note that flat file also covers EDIFACT, ANSI X12, and VDA.Translate From IM to Flat file Generator
Generates code for translating an IM file to flat file. DoMain, Write variables/dummy, DebugLog, Clear, incl. Common Generator Definition. Note that flat file also covers EDIFACT, ANSI X12, and VDA.Translate From XML to IM Generator
Generates code for parsing an XML file and translate it to IM format. DoMain, Parse, Maps to variables/dummy, DebugLog, Clear, incl. Common Generator Definition.Translate From IM to XML Generator
Generates code for translating an IM file to XML format. DoMain, Write variabler/dummy, DebugLog, Clear, incl. Common Generator Definition.Translate from XML Xpath to IM Generator
Generates code for translating an XML file using XPath. Instead of parsing the XML, the tool will create XPath to all possible data paths.XML Intermediate Format Generator
Generates a base Script that can both parse and create IM format. Will serve as a base for Scripts generated by Translate From IM to XML/flat file and Translate From XML/flat file To IM.