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 { ...@@ -101,7 +101,6 @@ public class KnowledgeSessionServiceImpl implements KnowledgeSessionService {
protected KieSession getStatefulSession(KieServices ks, ReleaseId releaseId) { protected KieSession getStatefulSession(KieServices ks, ReleaseId releaseId) {
KieContainer kc = ks.newKieContainer(releaseId); KieContainer kc = ks.newKieContainer(releaseId);
return kc.newKieSession(); return kc.newKieSession();
} }
...@@ -122,6 +121,7 @@ public class KnowledgeSessionServiceImpl implements KnowledgeSessionService { ...@@ -122,6 +121,7 @@ public class KnowledgeSessionServiceImpl implements KnowledgeSessionService {
ksession.insert(idp); ksession.insert(idp);
ksession.insert(idpEntityDescriptor); ksession.insert(idpEntityDescriptor);
ksession.insert(sp); ksession.insert(sp);
ksession.insert(new Date());
ksession.fireAllRules(); ksession.fireAllRules();
...@@ -136,6 +136,8 @@ public class KnowledgeSessionServiceImpl implements KnowledgeSessionService { ...@@ -136,6 +136,8 @@ public class KnowledgeSessionServiceImpl implements KnowledgeSessionService {
logger.warn("Facthandle for Object {} is null", o); logger.warn("Facthandle for Object {} is null", o);
} }
ksession.dispose();
return objectList; return objectList;
} }
...@@ -183,12 +185,13 @@ public class KnowledgeSessionServiceImpl implements KnowledgeSessionService { ...@@ -183,12 +185,13 @@ public class KnowledgeSessionServiceImpl implements KnowledgeSessionService {
ksession.insert(user); ksession.insert(user);
ksession.insert(service); ksession.insert(service);
ksession.insert(registry); ksession.insert(registry);
ksession.insert(new Date());
logger.debug("Test all Rules for service {}", service.getName()); logger.debug("Test all Rules for service {}", service.getName());
ksession.fireAllRules(); ksession.fireAllRules();
List<Object> objectList = new ArrayList<Object>(ksession.getObjects()); List<Object> objectList = new ArrayList<Object>(ksession.getObjects());
for (Object o : objectList) { for (Object o : objectList) {
logger.debug("Deleting fact handle for Object {}", o); logger.debug("Deleting fact handle for Object {}", o);
FactHandle factHandle = ksession.getFactHandle(o); FactHandle factHandle = ksession.getFactHandle(o);
...@@ -198,6 +201,8 @@ public class KnowledgeSessionServiceImpl implements KnowledgeSessionService { ...@@ -198,6 +201,8 @@ public class KnowledgeSessionServiceImpl implements KnowledgeSessionService {
logger.warn("Facthandle for Object {} is null", o); logger.warn("Facthandle for Object {} is null", o);
} }
ksession.dispose();
if (registry != null) { if (registry != null) {
ServiceRegisterEvent serviceRegisterEvent = new ServiceRegisterEvent(registry); ServiceRegisterEvent serviceRegisterEvent = new ServiceRegisterEvent(registry);
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<groupId>org.drools</groupId> <groupId>org.drools</groupId>
<artifactId>drools-bom</artifactId> <artifactId>drools-bom</artifactId>
<type>pom</type> <type>pom</type>
<version>6.0.1.Final</version> <version>6.2.0.Final</version>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
<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