[rules-users] How to get the FactId in rule design

Mark Proctor mproctor at codehaus.org
Tue Apr 14 10:27:54 EDT 2009


nestabur wrote:
> Hi all,
>
> I'm trying to design a rule that checks if the inserted fact is a new one
> using the command "exists". 
> Using the WorkingMemoryFileLogger I saw that each fact has his own Id so...
> how can I get this Id from the rule (drl, dsl)?
>   
You can't, it's an internal implementation detail and the ID should not 
be relied on.
> Thanks,
>
> NEStor
>
> PD: I'm using drools 5 CR1 and guvnor for creating/editing the rules
>   





More information about the rules-users mailing list