Commit 223afca8 authored by michael.simon's avatar michael.simon
Browse files

Update Drools to 6.2.0.Final

parent 5da1c295
......@@ -101,7 +101,6 @@ public class KnowledgeSessionServiceImpl implements KnowledgeSessionService {
protected KieSession getStatefulSession(KieServices ks, ReleaseId releaseId) {
KieContainer kc = ks.newKieContainer(releaseId);
return kc.newKieSession();
}
......@@ -122,6 +121,7 @@ public class KnowledgeSessionServiceImpl implements KnowledgeSessionService {
ksession.insert(idp);
ksession.insert(idpEntityDescriptor);
ksession.insert(sp);
ksession.insert(new Date());
ksession.fireAllRules();
......@@ -136,6 +136,8 @@ public class KnowledgeSessionServiceImpl implements KnowledgeSessionService {
logger.warn("Facthandle for Object {} is null", o);
}
ksession.dispose();
return objectList;
}
......@@ -183,12 +185,13 @@ public class KnowledgeSessionServiceImpl implements KnowledgeSessionService {
ksession.insert(user);
ksession.insert(service);
ksession.insert(registry);
ksession.insert(new Date());
logger.debug("Test all Rules for service {}", service.getName());
ksession.fireAllRules();
List<Object> objectList = new ArrayList<Object>(ksession.getObjects());
for (Object o : objectList) {
logger.debug("Deleting fact handle for Object {}", o);
FactHandle factHandle = ksession.getFactHandle(o);
......@@ -198,6 +201,8 @@ public class KnowledgeSessionServiceImpl implements KnowledgeSessionService {
logger.warn("Facthandle for Object {} is null", o);
}
ksession.dispose();
if (registry != null) {
ServiceRegisterEvent serviceRegisterEvent = new ServiceRegisterEvent(registry);
......
......@@ -111,7 +111,7 @@
<groupId>org.drools</groupId>
<artifactId>drools-bom</artifactId>
<type>pom</type>
<version>6.0.1.Final</version>
<version>6.2.0.Final</version>
<scope>import</scope>
</dependency>
<dependency>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment