Boomi Business Rule Shape

By in ,
770
Boomi Business Rule Shape

Rule Based filtering/Routing

In this article we will go through Business Rule Shape:

Business Rule Shape

Business Rule Shape is equivalent to an if-else-if condition of any scripting language.

In Decision shape, there is a limitation that we were able to compare only one condition just like a standard if else condition.

The example that we discussed in the Decision Shape article performed a check of Order Type Equal to Termination based on which documents were sent to the true path or false. There might be times when you would need to check multiple conditions and then decide the flow for which Business Rule is the best option.

How to Configure Business Rule Shape

When you use a Business Rule Shape first step is to define the profile of the incoming data to this shape:

Business Rule Shape Configuration

After specifying the input profile select all the fields using which you will do your comparisons.

Let’s understand this with an example. We want to filter out the documents having the following criteria:

Order Type= termination

Charge Type= One Time

Item Category= License

To achieve this, click on the add button at the top to select the fields you want to compare against:

Business Rule Shape - Inputs

And then add the conditions you need:

Business Rule Shape - Conditions

When you add Inputs there’s a variety of options that you can choose from. You can either select a Profile field or you could select the Function Option which would then enable you to create new map functions or select Dynamic Properties.

Using Business Rule, you could specify both ‘AND’ Conditions or ‘OR’ Conditions

Business Rule Shape - AND Condition

Business Rule Shape - OR Condition

You need to click on And or Or button in the Top Level Operator.

You could Specify Multiple Rules in the Business Shape by clicking on the Plus symbol as highlighted below:

Business Rule Shape - Multiple Rules

Multiple Rules work like an And Condition. If both the Rules get a “True” response from the conditions, the document will go down the Accepted path. If any of the rules return “False” upon doing the check document would go down the rejected path.

Business Rule Shape - Paths

References:

  • Details regarding Rule-based filtering and routing with Decision Shape can be found here

 

Cover Image by Freepik