[rules-users] [rules-user] Setting Configuration Option in KnowledgeBase

Edson Tirelli tirelli at post.com
Tue Aug 17 11:01:45 EDT 2010


    Correct is EventProcessingOption.STREAM, not EventProcessingMode.STREAM.
Where did you saw this in the docs (link)?

    Edson

2010/8/17 Nicolás Sanchez <sancheznicolas89 at gmail.com>

> Hi, I am a Newbie with Drools5.1.0 and I was trying to set a
> KnowledgeBaseConfiguration Option using Drools Fusion.
> I tried the code that was in the Documentation part of Drools Fusion:
>
> KnowledgeBaseConfiguration config =
> KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
> config.setOption(EventProcessingMode.STREAM);
>
> And the next Error appears, and I don`t understand why:
>
> Bound mismatch: The generic method setOption(T) of type
> KnowledgeBaseOptionsConfiguration is not applicable for the arguments
> (RuleBaseConfiguration.EventProcessingMode). The inferred type
> RuleBaseConfiguration.EventProcessingMode is not a valid substitute
> for the bounded parameter <T extends KnowledgeBaseOption>
>
> Regards,
>
> Nicolas
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100817/6cc82f9e/attachment.html 


More information about the rules-users mailing list