CallUOM

Program ID

MetraPipeline.MTCallUomPlugin.1

Description

The callUOM plugin looks up the value of ParentUOM in the child sessions.  The CallUOM iterates through all the child sessions, looking for the value of ParentUOM. The plugin finishes the first time it finds the property in a child session. Therefore, it it does not look at each child and overwrite the property. If a property matching ParentUOM is found, the value is copied to UOM and the plugin exits.  If no properties with name "ParentUOM" are found, UOM is set to DefaultCurrency.

Required Input Properties

None.

Required Output Properties

Tag name

Value type

Description

UOM

string

The currency of the parent transaction

Additional Configuration Tags

Tag name

Value type

Description

ParentUOM

String

The name of the currency UOM in the children sessions

DefaultCurrency

String

The default currency if non "ParentUOM" values are found in the children

Configuration Example

<configdata>
    <UOM>_Currency</UOM>
    <ParentUOM>_Currency</ParentUOM>
    <DefaultCurrency>USD</DefaultCurrency>
</configdata>