This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RunWith(Arquillian.class) | |
public class KSessionTest | |
{ | |
@Deployment | |
public static JavaArchive createTestArchive() | |
{ | |
String pkgPath = KSessionTest.class.getPackage().getName().replaceAll("\\.", "/"); | |
JavaArchive archive = ShrinkWrap.create("test.jar", JavaArchive.class) | |
.addPackages(true, new DroolsModuleFilter("ksession"), KnowledgeBaseProducer.class.getPackage()) | |
.addClass(KSessionTestRules.class) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RunWith(Arquillian.class) | |
public class KSessionTest | |
{ | |
@Deployment | |
public static JavaArchive createTestArchive() | |
{ | |
String pkgPath = KSessionTest.class.getPackage().getName().replaceAll("\\.", "/"); | |
JavaArchive archive = ShrinkWrap.create("test.jar", JavaArchive.class) | |
.addPackages(true, new DroolsModuleFilter("ksession"), KnowledgeBaseProducer.class.getPackage()) | |
.addClass(KSessionTestRules.class) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------------------------- | |
Test set: org.jboss.seam.drools.test.kbase.KBaseTest | |
------------------------------------------------------------------------------- | |
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.713 sec <<< FAILURE! | |
org.jboss.seam.drools.test.kbase.KBaseTest Time elapsed: 0.722 sec <<< ERROR! | |
org.jboss.arquillian.impl.event.FiredEventException: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [DroolsConfigUtil] with qualifiers [@GenericBean] at injection point [[field] @GenericBean @Inject org.jboss.seam.drools.KnowledgeBaseProducer.configUtils] | |
at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68) | |
at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115) | |
at org.jboss.arquillian.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:96) | |
at org.jboss.arquillian.junit.Arquillia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.jboss.seam.drools.test.kbase; | |
import javax.enterprise.context.ApplicationScoped; | |
import javax.enterprise.inject.Produces; | |
import org.jboss.seam.drools.config.Drools; | |
import org.jboss.seam.drools.config.DroolsConfig; | |
import org.jboss.seam.drools.config.DroolsProperty; | |
import org.jboss.seam.drools.config.RuleResource; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sample | |
import com.sample.Person; | |
import com.sample.Vehicle; | |
function boolean checkName(String name) { | |
System.out.println("hi from function..."); | |
return true; | |
} | |
rule "xyz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.RuntimeException: java.io.InvalidClassException: org.drools.rule.MVELDialectRuntimeData; local class incompatible: stream classdesc serialVersionUID = 8808844570772337501, local class serialVersionUID = -1899561210033391346 | |
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:545) | |
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28) | |
at com.sample.ChangeSetTest.getAgent1(ChangeSetTest.java:111) | |
at com.sample.ChangeSetTest.main(ChangeSetTest.java:24) | |
Caused by: java.io.InvalidClassException: org.drools.rule.MVELDialectRuntimeData; local class incompatible: stream classdesc serialVersionUID = 8808844570772337501, local class serialVersionUID = -1899561210033391346 | |
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562) | |
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582) | |
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15:50:15,635 INFO [STDOUT] ***** xml from guvnor: <?xml version="1.0" encoding="UTF-8"?> | |
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="12345678" name="" targetNamespace="http://www.omg.org/bpmn20"> | |
<bpmn2:process id="_XZ-qISmMEeCAi6G6l4FmOA" name=""> | |
<bpmn2:startEvent id="_53DEDBCD-AB8B-4960-9874-5119EE48EE02" name="Start"> | |
<bpmn2:outgoing>_BCB6BACE-80D4-467F-9ADB-5678C9F39E27</bpmn2:outgoing> | |
</bpmn2:startEvent> | |
<bpmn2:task id="_E5AAC447-5BA6-4FBE-A2CC-F8C89A37DAC7" name="Hello234
"> | |
<bpmn2:incoming>_BCB6BACE-80D4-467F-9ADB-5678C9F39E27</bpmn2:incoming> | |
<bpmn2:outgoing>_3D54AB72-6E02-4880-A71A-5D3BF96FCA47</bpmn2:outgoing> | |
</bpmn2:task> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17:57:21,469 ERROR [ContainerBase] StandardWrapper.Throwable | |
java.lang.RuntimeException | |
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.printSourceNumber(JavaScriptCompressor.java:299) | |
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:335) | |
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:532) | |
at org.oryxeditor.server.EditorHandler.initEnvFiles(EditorHandler.java:206) | |
at org.oryxeditor.server.EditorHandler.init(EditorHandler.java:171) | |
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161) | |
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806) | |
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sample | |
import com.sample.Person; | |
import com.sample.PersonManager; | |
import com.sample.ControlFact; | |
import java.util.List; | |
global PersonManager manager; | |
rule "control rule" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sample | |
import com.sample.Person; | |
import com.sample.PersonManager; | |
import com.sample.ControlFact; | |
import java.util.List; | |
global PersonManager manager; | |
OlderNewer