High Demand Rules

"As I wrote," Mark explains, "some items we consider in 'high demand'. Anything that’s available online and has an Inventory Trend that’s dropping, we should order before the normal threshold. I know I wrote that this needs to happen if the trend is up, but it turns out that the data we’ll get from WMS will be an indexed range from -2 to +2, where negative means our stock is moving down quicker than before and positive means it’s the other way around. So we need to look out for the negative ones."

Check the DRD. As you can see, Mark has added a new supporting decision High Demand, with inputs Available Online and Inventory Trend. It’s a supporting decision for Order Amount.

"That looks like a great start," you offer. "The new High Demand decision, that produces a boolean, I assume?"

"That’s right, look."

Mark opens the decision table, showing the columns for inputs and outputs. "Online is a boolean and trend is a number. The combination of both is the result. I need some help with the rules."

"Sure."

After asking some questions and challenging them with some examples, you agree on the following rule descriptions.

Example 1. Rules for High Demand

If items can be ordered online, they are higher in demand generally, but that alone doesn’t mean they are High Demand. High Demand only happens if the item that is available online also has a trend of -1 or 0. For items with a trend index of -2, they are always in high demand. Other items are not in high demand.

In Camunda Modeler, click on the blue table in the top left corner of High Demand to edit the decision table.

Add the rules to the table to complete the High Demand decision.

You will need 4 rules in the decision table to cover these requirements.