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();