assert(new TempFact("MapExists")); something like that. You can use TempFact
over and over. If you intern the string in the TempFact bean, then it could
be pretty fast to check (as the JVM will do an identity compare before a
string char compare I think). You only need to create it once.
On 4/19/06, Mitch Christensen <[EMAIL PROTECTED]> wrote:
>
> Hey,
>
> Quite often I want to work with 'temporary' facts that I often refer to as
> 'indicator' facts. With Jess I used to use ordered facts for this
> purpose.
> In Drools, do I have to create a Java bean for every such case?
>
> What if I wanted to do the following,
>
> then
> assert("MapExists");
> end
>
> How would I match this fact elsewhere?
>
> -Mitch
>
>