Update 5 Nov 2019: Add new parameter trim to trim XML text nodes
Update 4 Jul 2019: Add parameters defaultEnclosureSign & defaultEnclosureSignEscape for CPI version.
Update 2 Nov 2018: Default parsing in CPI will be using SAX-based XmlSlurper.
Update 4 Sep 2018: Now available in CPI as well.
Update 25 Mar 2015: DeepFCCBean has been refactored to be part of FormatConversionBean. Parameter conversionType replaced with converterClass. Note that some of the screenshots are not updated to reflect the new parameter converterClass.
Update 12 Mar 2015: Update links to second part of the series. Parameter for conversion type has been renamed to XML2DeepPlain. Reformat parameter reference section to split parameters applicable for field separator based and fixed length based conversion.
Number | Module Name | Type | Module Key |
---|---|---|---|
<Depending on position of module in chain> 1) Asynchronous scenario, Normally before the last module in channels 2) Synchronous scenario, Before last module to convert request payload After last module to convert response payload | Custom_AF_Modules/FormatConversionBean | Local Enterprise Bean | <Any Arbitrary Value> |
Parameter Name | Allowed values | Default value | Remarks |
---|---|---|---|
converterClass | PI - com.equalize.xpi.af.modules.deepfcc.XML2DeepPlainConverter CPI - com.equalize.converter.core.XML2DeepPlainConverter | Required field. Determines conversion class | |
encoding | UTF-8 | Defines encoding of output plain text file | |
recordsetStructure | Required field. List of substructure names separated by comma | ||
<StructureName>.endSeparator | System specific new line | Defines end of record separator | |
useDOM | Y, N | N | Available only in CPI Parser used in parsing input XML
|
trim | Y, N | N | Available only in CPI Trim whitespace in XML text nodes during parsing |
messageLog | pre, post | Saves a log version of the message that is viewable in Message Monitor
Available only in PI | |
logLocation | Name of log version when messageLog is populated. Location defaulted to value in messageLog if logLocation not populated. Available only in PI |
Parameter Name | Allowed values | Default value | Remarks |
---|---|---|---|
defaultFieldSeparator | Defines a default field separator for all substructures that do not have <StructureName>.fieldSeparator explicitly configured Note: Cannot be used together with <StructureName>.fieldFixedLengths | ||
defaultEnclosureSign | Specify a string that acts as a text delimiter for each field. For example: " (double quote character). Available only in CPI | ||
defaultEnclosureSignEscape | Specify a string that replaces the text delimiter defaultEnclosureSign if it occurs within a field that it delimits. For example: "" will replace ". Available only in CPI | ||
<StructureName>.fieldSeparator | Either <StructureName>.fieldFixedLengths or <StructureName>.fieldSeparator must be populated |
Parameter Name | Allowed values | Default value | Remarks |
---|---|---|---|
<StructureName>.fieldFixedLengths | Integer separated by commas | Either <StructureName>.fieldFixedLengths or <StructureName>.fieldSeparator must be populated | |
<StructureName>.fixedLengthTooShortHandling | Error, Cut, Ignore | Error | Applicable when <StructureName>.fieldFixedLengthsis configured. Determines behavior when actual length of field exceeds corresponding length configured:
|
Parameter Name | Parameter Value |
---|---|
converterClass | com.equalize.xpi.af.modules.deepfcc.XML2DeepPlainConverter |
recordsetStructure | Delivery,Order,Item |
Delivery.fieldSeparator | , |
Delivery.endSeparator | ZZZZ'nl' |
Item.fieldSeparator | '0x09' |
Order.fieldSeparator | , |
Input | <?xml version="1.0" encoding="UTF-8"?> <ns0:MT_Deep xmlns:ns0="urn:equalize/DeepFCC"> <Delivery> <Type>D</Type> <DeliveryNo>Delivery2</DeliveryNo> <Order> <Type>O</Type> <DeliveryNo>Delivery2</DeliveryNo> <OrderNo>Order2_A</OrderNo> <Item> <Type>I</Type> <OrderNo>Order2_A</OrderNo> <ItemNo>10</ItemNo> <Quantity>90</Quantity> </Item> <Item> <Type>I</Type> <OrderNo>Order2_A</OrderNo> <ItemNo>20</ItemNo> <Quantity>80</Quantity> </Item> </Order> </Delivery> </ns0:MT_Deep> |
Output |
Parameter Name | Parameter Value |
---|---|
converterClass | com.equalize.xpi.af.modules.deepfcc.XML2DeepPlainConverter |
recordsetStructure | Delivery,Order,Item |
Delivery.fieldFixedLengths | 5,10 |
Order.fieldFixedLengths | 5,5,10 |
Order.fixedLengthTooShortHandling | Ignore |
Item.fieldFixedLengths | 5,5,10,10 |
Item.fixedLengthTooShortHandling | Cut |
Input | <?xml version="1.0" encoding="UTF-8"?> <ns0:MT_Deep xmlns:ns0="urn:equalize/DeepFCC"> <Delivery> <Type>D</Type> <DeliveryNo>Delivery2</DeliveryNo> <Order> <Type>O</Type> <DeliveryNo>Delivery2</DeliveryNo> <OrderNo>Order2_A</OrderNo> <Item> <Type>I</Type> <OrderNo>Order2_A</OrderNo> <ItemNo>10</ItemNo> <Quantity>90</Quantity> </Item> <Item> <Type>I</Type> <OrderNo>Order2_A</OrderNo> <ItemNo>20</ItemNo> <Quantity>80</Quantity> </Item> </Order> </Delivery> </ns0:MT_Deep> |
Output |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 |