Maybe activation groups is the answer for this problem, only one rule fires within an
activation group, even if there are many rules "activated" matching the
conditions. I had the opposite problem, I had defined an activation-group and rules that
should fire , didn't. So I guess this could do it for you
Regards
-----Original message-----
To:Rules Users List <rules-users(a)lists.jboss.org>;
From:Wolfgang Laun <wolfgang.laun(a)gmail.com>
Sent:Wed 04-06-2014 17:16
Subject:Re: [rules-users] Grouping of rule and range check
On 04/06/2014, Chaturvedi Dewashish <dewashish(a)nirvana-sol.com> wrote:
Hi,
I have a requirement which is as
1. There are three rules lets say rule1, rule2 and rule3
2. rule1 says there is a person
Age < 40
Age >= 20
Then do something
3. rule2 says there is a person
Age < 60
Age >= 40
Then do something else
4. rule3 says there is a person
Age >= 60
Then do something new
Now I am feeding person object as whole as event based from other
application.
So the requirement in form of test cases is
1. Age = 22 - do something
2. Age = 25 - Nothing as rule1 is already triggered and "do something" done
Does a person's age increase by three years while your program is
running? If the age is for a different person: why should nothing be
done for the second person?
This doesn't make sense.
-W
3. Age = 42 - do something else
4. Age = 45 - Nothing as rule1 is already triggered and "do something else"
done
4. Age = 65 - do something new
5. Age = 68 - nothing
6. Age = 25 - do something
7. Age = 45 - do something else
Is there any way to do this using the guvnor UI?
Thanks and regards,
Chaturvedi Dewashish
Nirvana Solutions
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users