Skip to content

❓ How to build rules with conditional expressions? #1240

Answered by hanjoosten
NikitaIT asked this question in Q&A
Discussion options

You must be logged in to vote

Let me start to disappoint you 😉. Ampersand is not a rule engine like Drules, Oracle Policy Automation, or the like. These tools are about knowledge inferencing, which can be very powerful on its own. These rules are known as inference rules.

Ampersand tackles another class of rules: Behavioural rules.

The main difference between those rules is that inference rules cannot be violated. In your example, you have a rule that states that any person of age 18 or older is an adult person. According to this rule, a person of age 20 is an adult person. Like it or not. It cannot be violated.

Now consider a behavioral rule. This is a rule that can be violated: The shipping address of a person who p…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Michiel-s
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1108 on November 13, 2021 16:58.