In this article, we will take a detailed look into the steps to create a new business rule using BizTalk360 Business Rules Composer. We will show how you can use the rich features of the composer to compose your complex business rules.
Please remember that the current version of BizTalk360 Business Rules Composer allows you to only use the predefined vocabularies, and the vocabularies that have been created using the BizTalk Business Rules Composer. You will not be able to use the XML Schemas, Databases, and .NET Classes to define your business rules. We will add these capabilities to the product in the upcoming releases.
Follow the steps as shown below to create a new business rule using the BizTalk360 Business Rules Editor.
- Log in to BizTalk360
- Expand the Rules section. Click Business Rules Composer from the drop down.
- Under the Policies Pane, click Add New Policy
- Give a name for your policy, say, PurchaseOrder
- One a policy is created, a new version is automatically created underneath the policy with the name 'Version: 1.0 Not Saved'. Select the version and click Add Rule.
- Give a name for your rule, say, PORule
- From the Vocabulary Pane, expand the functions and predicates to get the detailed listAll the functions and predicates in the list are the same as what is available in the BizTalk Business Rules Composer. Also, you cannot create any vocabularies directly from BizTalk360. The current version of BizTalk360 supports creation of custom vocabularies only in the BizTalk Business Rules Composer.
- Drag the predicates towards the 'if'' block and functions towards the 'then' block to build your business rule. You can also use your custom vocabulary that you defined to create the business rule. In the below screenshot, we will be taking an example from one of the custom vocabularies that we created for this purpose.
- Once you have finished creating the business rule, follow the steps as shown in this article to save and publish the business rule (version). The last and final step would be to deploy the business rule (policy) to the production environment.
Click the sliders to go through the process.