Discussion

Availability of rules

I have a rule1 :Rule-Obj-Activity ,RuleSetName: Alpha:01-02-03,Applies to Class: A ,RuleName:POJO . Other rule2 :Rule-Obj-Property ,RuleSetName: Alpha:01-02-03,Applies to Class: A ,RuleName:POJO Now if i Block rule1 ,will it also block the rule2. I mean to block rules considers ruletype or not.

***Updated by moderator: Marissa to close post***
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

April 7, 2009 - 5:32pm

Blocking a rule means...telling the RULE RESOLUTION **NOT** to use the rule of this name (of this rule type ofcourse). And here you blocked rule1, which means whenever rule1 is going to be the survival rule for rule resolution algorithm, it simply throws 'no rule found' exception. Rule resolution will never go back in this case (when you block a rule) to the classes up in the class hierarchy to look for the rules of that rule type and rule name.
-Govardhan

April 8, 2009 - 4:51pm

Does any of the following PDN material help to get you further?

Understanding Rule availability options

Blocked Rule -- definition

July 16, 2008 - 1:19am

It wont block Rule2

October 9, 2008 - 7:56am

Blocking Rule A will never block Rule B for the simple reason that they are different rule-type instances

July 31, 2008 - 8:54am

It wont block rule2 as it is of different rule type instance

July 31, 2008 - 10:33am

You are trying to block the rule1 means you are just blocking that perticular rule instance (whcih is just an instance of Rule-Obj-Activity). That means it won't block rule2.

July 31, 2008 - 7:57pm

Blocking only does that rule only and all its lowest version also, in your scenario it so other that activity rule it won't affect, Blocking is not for Ruleset it is only for rule