This commit is contained in:
Nicolas Héron 2016-06-03 11:33:48 +02:00
commit 3b7807aba6
13 changed files with 114 additions and 186 deletions

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/../drools-lesson8/target/classes" />
<output-test url="file://$MODULE_DIR$/../drools-lesson8/target/test-classes" />
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />

View file

@ -9,7 +9,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>drools-lesson8</artifactId>
<artifactId>drools-lesson4</artifactId>
<dependencies>
<dependency>

View file

@ -32,7 +32,7 @@ public class Testlesson4 {
@Test
public void testRuleFlow1() {
sessionStatefull = KnowledgeSessionHelper
.getStatefulKnowledgeSessionForJBPM(kieContainer, "ksession-lesson4");
.getStatefulKnowledgeSessionForJBPM(kieContainer, "lesson4-session");
OutputDisplay display = new OutputDisplay();
sessionStatefull.setGlobal("showResult", display);
Account a = new Account();
@ -43,7 +43,7 @@ public class Testlesson4 {
@Test
public void testRuleFlow2() {
sessionStatefull = KnowledgeSessionHelper
.getStatefulKnowledgeSessionForJBPM(kieContainer, "ksession-lesson4");
.getStatefulKnowledgeSessionForJBPM(kieContainer, "lesson4-session");
OutputDisplay display = new OutputDisplay();
sessionStatefull.setGlobal("showResult", display);
Account a = new Account();