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