Using Jython Objects with Mapping Scripts

Use the following predefined FDMEE Jython objects within mapping scripts.

Table 48. Using Jython Objects with mapping scripts

Jython Object Description
fdmRowfdmRow id used to access any column in the current row being processed by the mapping process. You can access any column in the TDATASEG table. To access a value in a column you specify the following: fdmRow.getString[“<COLUMN NAME>”]. For example, to get the value of the ENTITY column you specify fdmRow.getString[“ENTITY”].
fdmResultfdmResult is used to return the value from the mapping function. You can set the value as follows fdmResult = “Cash”. The fdmResult is used to update the value for the target dimension, which is also referred to as the “X” column.

For every dimension in the TDATASEG table there are two columns, one for source and another for target. For example, ENTITY provides the source value, and ENTITYX provides target value that is the result of the mapping process.

fdmResultMapfdmResultMap is used to update any column in the TDATASEG table. The column name in the TDATASEG table is used as the key in the map. For example, to update the ATTR1 column use fdmResultMap[“ATTR1”] = “Asset Acct”. To set the target amount to 0 use fdmResultMap[“AMOUNTX”] = 0.