Make your decision service easy to work with
You might not have realized it, but in the previous chapter, you wrote your first decision service. When running our Greeting Example in the KIE Sandbox, we supplied inputs (a name and if it was morning or not), made a decision, and then shared the output (Good Morning or Good Afternoon).
While we can’t see many colleagues signing up to use this particular service, this will change quickly as we move into the more sophisticated examples in this chapter. It’s worth thinking now about what other people need to know when using our service:
- How we make a decision – in general, the Decision Model and Notation (DMN) format makes this pretty clear. It is certainly much clearer than other solutions (such as functions hidden in code or in Excel).
- The data needed to be passed into the decision service, and the format of the data we get back from it.
In our greetings service, we expected a String (Text name...