Update 2 Oct 2018: New parameter endSeparator to define end of line separator for input file.
Update 4 Sep 2018: Now available in CPI as well.
Update 22 Jan 2016: New parameters missingLastFields and additionalLastFields to handle structure deviations between configured parameters and actual file content.
Update 26 May 2015: New parameter genericRecordType to cater for records with no key field value as shown in scenario 3. Previous scenario 3 renamed to Scenario 4.
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 17 Mar 2015: Parameter indentXML replaced by indentFactor.
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.DeepPlain2XMLConverter CPI - com.equalize.converter.core.DeepPlain2XMLConverter | Required field. Determines conversion class | |
encoding | UTF-8 | Defines encoding of output plain text file | |
documentName | Required field. Document name of root element of XML output | ||
documentNamespace | Required field. Namespace of root element of XML output | ||
recordsetStructure | Required field. List of substructure names separated by comma | ||
genericRecordType | Name of substructure used as generic type. If configured, any lines that cannot be determined via key field determination will be treated as this generic type. | ||
keyFieldName | Required field. Name of the key field that must occur in all substructures | ||
indentFactor | Integer values beginning from 1 | 0 | Determines the number of indentation spaces for each level in the XML output |
rowOffset | Integer values beginning from 1 | 0 | Starting row to begin extracting content from (i.e. 0 = start from first row, 1 = start from second row) |
trimContents | Y, N | Y | Determines if all the leading and subsequent blanks for a field will be trimmed or not |
endSeparator | Defines default end separator for entire input file | ||
<StructureName>.fieldNames | Required field. Names of fields in this substructure | ||
<StructureName>.keyFieldValue | Required field. Key field value to identify this substructure | ||
<StructureName>.parent | Required field. Specifies the parent of this substructure. Value should correspond to a substructure in recordsetStructure or the value 'Root' to indicate that it belongs directly under the root element | ||
<StructureName>.missingLastFields | ignore,add,error | ignore | Behavior of conversion when there are less fields in content compared to configured fields in <StructureName>.fieldNames
|
<StructureName>.additionalLastFields | ignore,error | ignore | Behavior of conversion when there are more fields in content compared to configured fields in <StructureName>.fieldNames
|
debug | Displays audit log messages of substructure and parent-child determination of each line. WARNING: Use this only for debugging in non-productive systems Available only in PI | ||
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 | ||
<StructureName>.fieldSeparator | Either <StructureName>.fieldFixedLengths or <StructureName>.fieldSeparator must be populated | ||
<StructureName>.enclosureSignBegin | Specify a string that acts as a text delimiter. Field separators within such texts are ignored | ||
<StructureName>.enclosureSignEnd | If the text delimiters for the beginning and end of the text are different, specify the text delimiter for the end of the text here. If it is not populated, it uses value specified in <StructureName>.enclosureSignBegin | ||
<StructureName>.enclosureSignBeginEscape | Specify a string that replaces the text delimiter if it occurs within a text that it delimits. When the text is transferred the string is replaced by the value specified in <StructureName>.enclosureSignBegin | ||
<StructureName>.enclosureSignEndEscape | Specify a string that replaces the text delimiter for the end of the text if it occurs within a text that it delimits. When the text is transferred the string is replaced by the value specified in <StructureName>.enclosureSignEnd. If it is not populated, it uses value soecified in <StructureName>.enclosureSignBeginEscape | ||
<StructureName>.enclosureConversion | Y, N | Y |
|
Parameter Name | Allowed values | Default value | Remarks |
---|---|---|---|
<StructureName>.fieldFixedLengths | Integer separated by commas | Either <StructureName>.fieldFixedLengths or <StructureName>.fieldSeparator must be populated. The number of lengths must match the number of fields listed in <StructureName>.fieldNames |
Parameter Name | Parameter Value |
---|---|
converterClass | com.equalize.xpi.af.modules.deepfcc.DeepPlain2XMLConverter |
documentName | MT_DeepPlain2XML |
documentNamespace | urn:equalize:com |
recordsetStructure | Delivery,Order,Item |
keyFieldName | Type |
Delivery.fieldNames | Type,DeliveryNo |
Order.fieldNames | Type,DeliveryNo,OrderNo |
Item.fieldNames | Type,OrderNo,ItemNo,Quantity |
Delivery.keyFieldValue | D |
Order.keyFieldValue | O |
Item.keyFieldValue | I |
Delivery.parent | Root |
Order.parent | Delivery |
Item.parent | Order |
Delivery.fieldSeparator | '0x09' |
defaultFieldSeparator | , |
Order.enclosureSignBegin | " |
Order.enclosureSignBeginEscape | "" |
Item.enclosureConversion | N |
Item.enclosureSignBegin | " |
rowOffset | 1 |
indentFactor | 4 |
Input | |
Output |
Parameter Name | Parameter Value |
---|---|
converterClass | com.equalize.xpi.af.modules.deepfcc.DeepPlain2XMLConverter |
documentName | MT_DeepPlain2XML |
documentNamespace | urn:equalize:com |
recordsetStructure | Header,Delivery,Order,Item |
keyFieldName | Type |
Header.fieldNames | Type,FileName |
Delivery.fieldNames | Type,DeliveryNo |
Order.fieldNames | Type,DeliveryNo,OrderNo |
Item.fieldNames | Type,OrderNo,ItemNo,Quantity |
Header.keyFieldValue | H |
Delivery.keyFieldValue | D |
Order.keyFieldValue | O |
Item.keyFieldValue | I |
Header.parent | Root |
Delivery.parent | Root |
Order.parent | Delivery |
Item.parent | Order |
Header.fieldFixedLengths | 5,20 |
Delivery.fieldFixedLengths | 5,10 |
Order.fieldFixedLengths | 5,10,10 |
Item.fieldFixedLengths | 5,10,10,10 |
trimContents | N |
indentFactor | 4 |
Input | |
Output |
Parameter Name | Parameter Value |
---|---|
converterClass | com.equalize.xpi.af.modules.deepfcc.DeepPlain2XMLConverter |
documentName | MT_DeepPlain2XML |
documentNamespace | urn:equalize:com |
recordsetStructure | Header,Detail,Footer |
genericRecordType | Detail |
keyFieldName | Type |
Header.fieldNames | Type,HeaderField |
Detail.fieldNames | Field1,Field2,Field3,Field4,Field5 |
Footer.fieldNames | Type,TrailerField |
Header.keyFieldValue | HDR |
Footer.keyFieldValue | TRL |
Header.parent | Root |
Detail.parent | Root |
Footer.parent | Root |
Header.fieldFixedLengths | 3,11 |
Detail.fieldSeparator | , |
Footer.fieldFixedLengths | 3,9 |
indentFactor | 2 |
Input | HDRXXXYYY12345 MM8100422373,M631530008 ,1530008,031615,17 MN8100424411,M631530008 ,1530008,031615,22 XY8100422373,M631530008 ,1530008,031615,17 TRLXXZZZ4321 |
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 |
---|---|
12 | |
7 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |