ksessionId = ksession.getIdentifier(); } else { RuntimeEngine localRuntime = findLocalRuntime(contextId); if (localRuntime != null) { return localRuntime; ksession.addEventListener(new MaintainMappingListener(ksessionId, runtime, this.identifier)); } else { RuntimeEngine localRuntime = findLocalRuntime(contextId); if (localRuntime != null) { return localRuntime;
ksessionId = ksession.getIdentifier(); } else { RuntimeEngine localRuntime = ((PerProcessInstanceRuntimeManager)manager).findLocalRuntime(contextId); if (localRuntime != null && ((RuntimeEngineImpl)engine).internalGetKieSession() != null) { return localRuntime.getKieSession();
Object cachedRE1 = ((PerProcessInstanceRuntimeManager) manager).findLocalRuntime(pi1.getId()); assertNull(cachedRE1); Object cachedRE2 = ((PerProcessInstanceRuntimeManager) manager).findLocalRuntime(pi2.getId()); assertNull(cachedRE2); cachedRE1 = ((PerProcessInstanceRuntimeManager) manager).findLocalRuntime(pi1.getId()); assertNull(cachedRE1); cachedRE2 = ((PerProcessInstanceRuntimeManager) manager).findLocalRuntime(pi2.getId()); assertNull(cachedRE2); manager.close();
ksessionId = ksession.getIdentifier(); } else { RuntimeEngine localRuntime = findLocalRuntime(contextId); if (localRuntime != null) { return localRuntime; ksession.addEventListener(new MaintainMappingListener(ksessionId, runtime, this.identifier)); } else { RuntimeEngine localRuntime = findLocalRuntime(contextId); if (localRuntime != null) { return localRuntime;
ksessionId = ksession.getIdentifier(); } else { RuntimeEngine localRuntime = ((PerProcessInstanceRuntimeManager)manager).findLocalRuntime(contextId); if (localRuntime != null && ((RuntimeEngineImpl)engine).internalGetKieSession() != null) { return localRuntime.getKieSession();