With the introduction of the tab: Business Rules in the front-end of the APIcenter a new functionality has been implemented which allows customers to set a default value and/or create a table with conditions and/or add a mapping table to map the value from the datamodel field or the outcome of the conditional table.
And this can be added to any field in the datamodel without a developer being needed or any settings that needs to be created and maintained.
It introduces an enormous amount of freedom for the customer to manipulate the data coming from the get side before it is being processed by the send side.
Some examples of what can be achieved with this new feature:
- Take the value from field Y and append that to field X resulting in X|Y
- check if the value of field X equals the given value and when it does use it, and field Y should hold a value resulting in either: {value field X}|TRUE or {value field X}|FALSE
- check if fields X and/or Y hold a value resulting in TRUE|TRUE, TRUE|FALSE, FALSE|FALSE or FALSE|TRUE
- if field X holds a certain value add 5% to the value of field Y
For all the above examples goes that the resulting value can be mapped using a mapping table and the result will be put in datamodel field Z.
Good to know
To make things more understandable the following terminology is used:
- Business Rule Block: a group of settings that apply to the same datamodel field.
- Conditional block: a group of conditions in a conditional table within a manipulation block
- Default settings: the settings that enable (forced) usage or contain the default value
- Row condition: the conditions that needs to be set in case conditions are grouped.