Share via


Can i write Business Rules using Logic Apps?

Question

Thursday, October 6, 2016 9:36 AM

Hello,

We would like to isolate business rules applied based on business requirements which can be done out of Web App developed.

Can i achieve this using Logic Apps?

For e.g.

If Age > 40, do this

If date is nearer to due date, offer discount and so on?

If yes, can you please provide link which explains how to?

Actually we were looking for Business Rule Engine (low cost or no cost), which needs to deploy on Azure platform.

If no, is there any alternative?

Technical Project Manager cum Architect

All replies (5)

Thursday, October 6, 2016 10:01 AM ✅Answered | 1 vote

Hi Manish,

I don't think that Logic Apps is the right fit for what you are looking for. The idea of logic apps is mostly orchestrate business processes.

There is the ability to create a decision tree in logic apps (if-then-else), but that is different from a set of rules evaluation (similar to what BizTalk Business Rules Engine offers, for example).

In the early days of logic apps, there was a Business Rules API App that was something similar to what you are looking for. I couldn't find it in the marketplace anymore, and I'm not sure where this API is in the order of priority for the Pro Integration team. That managed API looked quite promising.

What I would suggest is for you to include an entry on the Logic Apps User Voice (https://feedback.azure.com/forums/287593-logic-apps) to request for the Business Rules API App to be included in the Integration Account.

I hope this helps, Wagner.


Thursday, October 6, 2016 10:05 AM ✅Answered | 1 vote

Hi manish,

Refer the below link for the available connectors for the logic apps...BRE is by default is not available in this.

List of connectors

You can use the azure functions top create the rule eveluation though.Refer below link for more details

Azure Functions

You can have the azure function inside your logic app and then you can write  the rules in it..

Also I found this while searching...see if this helps you.

Regards,

Mandar Dharmadhikari


Thursday, October 6, 2016 10:54 AM

Thanks Wagner, Mandar for quick response.

@Wagner,

Ok, I will put up this on Azure User Voice channel.

@Mandar,

Azure functions again is C# code, i want to have it similar to what InRule provides (I have already worked on this in past) where business people can write dynamic rules and then integrate it with Asp.Net core, but it is commercial product.

So was looking for something which Azure supports and can be easily integrate in Web App host in Azure PaaS.

Technical Project Manager cum Architect


Thursday, October 6, 2016 10:59 AM

Hi Manish,

Agreed..InRule is a commercial product..you have to put this query on the Azure Voice channel as there is currently no way of doing it with the existing connectors if you don ot wish to use the Azure functions.

Regards,

Mandar Dharmadhikari


Wednesday, January 17, 2018 10:56 PM

Now you can implement and externalise business rules on Logic Apps using Liquid templates, as described here https://blog.mexia.com.au/business-rules-on-azure-logic-apps-with-liquid-templates

HTH