Package com.orchestranetworks.addon.dint.transformation.split

Provides classes and interfaces for creating a split transformation.

Example code for StringSplit transformation:

  1. Create a mapping that allows to split field 'full_name' from source into two fields 'firstName' and 'lastName' in target:

                    TableMapping<CSVField, EBXField> tableMapping = TableMapping.of(sourceTable, targetTable);
                    CSVTable csvTable = sourceTable.getTable();
                    EBXTable ebxTable = targetTable.getTable();
    
                    SplitTransformationMappingStep nameSplitStep = tableMapping.fromSourceFieldStep(csvTable.get("full_name"))
                            .split(StringSplit.getInstance())
                            .param(StringSplit.SEPARATOR, " ")
                            .into("firstName", "lastName");
                    nameSplitStep.toField("firstName", ebxTable.get(Path.parse("/firstName")));
                    nameSplitStep.convert("lastName", StringUpperCase.getInstance())
                            .toField(ebxTable.get(Path.parse("/lastName")));