DMN Expression Auto Completion
DMN defines many expressions, such as FunctionDefinition, DecisionTable, Boxed Context, Invocation and Literal Expression. The parameters, arguments and logic of these expressions are implemented largely by text.
To make modeling easy and reliable, Enterprise Architect provides an Auto Completion facility, helping provide the:
- Allowed Values of ItemDefinition
- Input/Output Entries of a Decision Table
Allowed Values of ItemDefinition
The idea is to define allowed value enumerations in ItemDefinition, then compose a list for selection whenever these values are requested.
In this example, ItemDefinition 'Applicant data . Employment Status' defines an enumeration of allowed values.
When editing values for the InputData typed to this ItemDefinition, press theon the keyboard to display a list of values to select from.
We could also define multiple data sets for the InputData, as the Auto Completion feature is available on this dialog.
Input/Output Entries of a Decision Table
Take the 'Strategy' ItemDefinition as an example:
We can quickly fill the 'Allowed Values' field for a Decision Table by selection:
Then we can quickly fill the Decision Table rules by selection:
On a decision hierarchy, a decision might access required decisions and input data; these required elements form a list of variables that can be used by the decision.
In this example, Decision 'Eligibility' requires two decisions - 'Pre-bureau risk category' and 'Pre-bureau affordability' - and one Input Data item 'Applicant data'.
When setting the binding values for the invoked BusinessKnowledgeModel 'Eligibility rules', an Auto Completion list will prompt for selection. In this list, there are sub-decision names - leaf components of the input data. With this feature, you can easily set up an invocation.