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

    Edson

2010/8/17 Nicolás Sanchez <sancheznicolas89@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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com