[mailinglist] Re: [rules-users] Can someone explain what RulebaseConfiguration.setRemoveIdentities(true) does?

Brett M. Bergquist brett at thebergquistfamily.com
Wed Aug 27 08:45:16 EDT 2008


Thanks.  That is what I needed to know. 

Mark Proctor wrote:
> Brett M. Bergquist wrote:
>> In the manual, there is an example when setting up to use identity 
>> assert behavior:
>>
>>    RuleBaseConfiguration conf = new RuleBaseConfiguration();
>>    conf.setAssertBehaviour( AssertBehaviour.IDENTITY );
>>    conf.setRemoveIdentities( true );
>>    RuleBase ruleBase = RuleBaseFactory.newRuleBase( conf );
>>     I need to use AssertBehavior.EQUALITY in one of my RuleBase and I 
>> don't know if I need to call "conf.setRemoveIdentities" or not.  The 
>> API documentation is very sparse on what this method does.
> remove identities is not needed for equality mode - it simply removes 
> cross product rows that have the same instance in multiple matches for 
> that row of data.
>>
>> Thanks in advance.
>>
>> Brett
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list