Many popular languages (e.g. Angular or Mustache) use text interpolation to incorporate dynamic string values into the text. OpenRules Decision Manager Release 8.2.1 gives our customers an option to use text interpolation by putting text decision variables in the double curly braces
}}. For example, see how it’s being used in the standard sample project “PatientTherapy”:
The same text expression can be presented using traditional text concatenation:
Our customers like text concatenation as it allows them to use variable names like “Recommended Medication” or “Drug Interaction Warning” without any special indicators around them. However, the necessity to put quotations around text constants and pluses for concatenation makes it look more like programming and provokes errors. I am sure our customers will appreciate that now they have more choices and will use text interpolation whenever appropriate. Probably DMN may consider to add it to the standard as well.
P.S. Of course, you also may use Java snippets that allow you to do programming inside Excel’s cells. Here is an example:
Of course, everybody would prefer one of two first decision tables to Java snippets. However, all 3 above tables will always produce “Drug Interaction Warning” even when it is “None”. So, if you don’t want to display the warning “None”, you may use adjust the Java snippet as follows: