Development tools : Transaction editor : Defining formatters in transaction editor : Adding customized mapping engine : Configuring customized direct mapping engine
  
Configuring customized direct mapping engine
Implement your customized direct mapping engine through the interface com.ibm.btt.base.mapper.engine.IDirectMappingEngine.
doDirectMapping
The following method is required.
public void doDirectMapping(Context inputContext, Context outputContext, MapParams params) throws DSEInvalidArgumentException, DSEInvalidRequestException;
Parameters
inputContext
The input flow context.
outputContext
The output flow context.
params
Mapping parameters that includes the following content:
from
The directory of the input data in inputContext.
to
The directory of the outputContext where the data of from is to be saved.
append
Defines how data is saved in outputContext.
I: The data is saved to the corresponding location in outputContext. For example, srcIColl[10] is saved to targetIColl[10].
T: Save data as the last record of target IndexedCollection. For example, if there are two records in targetIColl and the first records starts from 0, the new record is saved to targetIColl[2].
F: Records in targetIColl is removed, then execute the same action as option T.
setElementFilter
public void setElementFilter(ElementMappingFilter elementFilter);
Set filter to filter out the source data elements that do not need to map. One usage scenario is by remote flow to filter out the system elements when processing mapping.
See also
Adding customized mapping engine