Forum

Notifications
Clear all

Have you used Defaulting Component in OMS ? How and when it will be useful ?

   RSS

0
Topic starter

This component applies defaulting based on configured properties and invokes a class to apply additional overrides. It can also be used to localize data in the XML.
The input to this component is an XML and the output is the same XML with the defaults applied. The properties of this component define the XML attributes to which the defaults are applied. The attributes themselves are defined through the notation used in other service components.
For example, in the createOrder() API assume the unit of measure on the element in the node needs to be defaulted. The component property is defined as:
Attribute=/Order/OrderLines/OrderLine/Item/@UnitOfMeasure
Default Value = “EACH”
Overrride = Y
If the input XML is:

A UnitOfMeasure attribute is added with a value of EACH to the Item element. The override property indicates if the attribute in the input XML needs to be overridden irrespective of the existence of the attribute.
The configuration properties for the defaulting component defined in the following table are optional.
Property Description
General Tab
Defaulting Template Enter the path for the defaulting template. This template consists of a set of attributes and their default values. For example:

Note that the attribute path is an XPath variable.


Notice: Trying to access array offset on value of type null in /home/activeki/blog.activekite.com/wp-content/plugins/wpforo/wpf-themes/classic/layouts/3/post.php on line 62
Share: