Hey Guys,
Could the strict mode changes be causing the issues with generic Sets that I'm seeing
in 5.3.0.Final (cf. Rules-list)? Anyway to modify strict mode in a java context?
best wishes,
Andrew
On Oct 28, 2011, at 12:44 PM, Mark Proctor wrote:
Is the rule using the MVEL or the Java dialect? MVEL does not yet
support generic's notation.
Mark
On 28/10/2011 05:36, Michael Anstis wrote:
>
> Hi,
>
> With Drools-5.4.0-SNAPSHOT, MVEL2-2.1.0.drools4 the following compiles OK:-
>
> org.drools.runtime.process.WorkItemManager wim =
drools.getWorkingMemory().getWorkItemManager();
> org.drools.SessionConfiguration sessionConfiguration =
(org.drools.SessionConfiguration)
kcontext.getKnowledgeRuntime().getSessionConfiguration();
> java.util.Map handlers = sessionConfiguration.getWorkItemHandlers();
>
> However moving the last Map to generics (as you'd expect is needed for strict
mode) does not:-
>
> org.drools.runtime.process.WorkItemManager wim =
drools.getWorkingMemory().getWorkItemManager();
> org.drools.SessionConfiguration sessionConfiguration =
(org.drools.SessionConfiguration)
kcontext.getKnowledgeRuntime().getSessionConfiguration();
> java.util.Map<java.lang.String, org.drools.runtime.process.WorkItemHandler>
handlers = sessionConfiguration.getWorkItemHandlers();
>
> Unable to Analyse Expression org.drools.runtime.process.WorkItemManager wim =
drools.getWorkingMemory().getWorkItemManager(); org.drools.SessionConfiguration
sessionConfiguration = (org.drools.SessionConfiguration)
kcontext.getKnowledgeRuntime().getSessionConfiguration();
java.util.Map<java.lang.String, org.drools.runtime.process.WorkItemHandler> handlers
= sessionConfiguration.getWorkItemHandlers();: [Error: unable to resolve method using
strict-mode: org.drools.spi.KnowledgeHelper.,()] [Near : {... Map<java.lang.String,
org.drools.runtime.process.W ....}] ^ [Line: 3, Column: 32]
>
> Can anybody explain?
>
> Thanks,
>
> Mike
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-dev
_______________________________________________
rules-dev mailing list
rules-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev