Other types of Decision Nodes
We’ve already created two types of decision nodes – the Decision Table that we used earlier in this chapter and the literal expression we used to generate our greeting in Chapter 3.
But when we were creating our decision node, we had to choose from one of seven types. We’ll work through them in the following list. In some ways, the name decision node can be misleading; often, we will use these types as data preparation nodes to feed into a Decision table:
- Literal Expressions: These are simple FEEL expressions, broadly similar to a formula you’d enter in Excel. They return a single value.
- Decision Tables: We have covered these in this chapter. They allow us to group rules in a
when …
then
format. - Functions: This allows us to define reusable logic. We could write a function that takes the parameters of a chocolate bar’s weight and the percentage of chocolate, then returns the actual grams of chocolate...