#### Overview of this book

Free Chapter
Part 1:The Problem with Excel, and Why Rule-Based AI Can Be the Solution
Chapter 1: Wrestling with Excel? You Are Not Alone
Chapter 2: Choosing an AI and Business Rules Engine – Why Drools and KIE?
Part 2: Writing Business Rules and Decision Models – with Real-Life Examples
Chapter 4: More Decision Models, Business Rules, and Decision Tables
Chapter 5: Sharing and Deploying Decision Models Using OpenShift and GitHub
Chapter 6: Calling Business Rules from Excel Using Power Query
Part 3: Extending Excel, Decision Models, and Business Process Automation into a Complete Enterprise Solution
Chapter 7: Using Business Rules in Excel with Visual Basic, Script Lab, or Office Scripts
Chapter 8: Using AI and Decision Services Within Power Automate Workflows
Chapter 9: Advanced Expressions, Decision Models, and Testing
Part 4: Next Steps in AI, Machine Learning, and Rule Engines
Chapter 10: Scaling Rules in Business Central with Docker and the Cloud
Chapter 11: Rules-Based AI and Machine Learning AI – Combining the Best of Both
Chapter 12: What Next? A Look inside Neural Networks, Enterprise Projects, Advanced Rules, and the Rule Engine
Index
Other Books You May Enjoy
Appendix A - Introduction to Visual Basic for Applications
Appendix B - Testing Using VSCode, Azure, and GitHub Codespaces
Appendix C - Troubleshooting Docker

# 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...