Creating a value translator
You use a value translator to define how IRL is generated for your business-specific BOM types.
About this task
A value translator provides a mechanism for generating IRL source code from a literal value. You can attach a value translator to a BOM class, or to a BOM member with a value info. In the value info implementation, use the method IlrValueInfo.getValueTranslator(String) to reference your value translator implementation.
Semantic queries run on the IRL code generated from the business rule. If a value translator is attached to a BOM member, the generated IRL uses this translation. Therefore, semantic queries cannot find the BOM member as it does not appear in the IRL code.
Procedure
To create a value translator for a BOM class:
Results
You now have a value translator, which you must integrate into the relevant Operational Decision Manager modules.
Integration into Rule Designer |
Integration into Decision Center |
|---|---|
Create a Rule Designer plug-in with a value translator extension point. |
Repackage the Decision Center archive to integrate and declare the value translator. |