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
10:44:13,965 ERROR [org.infinispan.server.hotrod.HotRodDecoder] (HotRodServerWorker-3) ISPN005009: Unexpected error before any request parameters read: org.infinispan.commons.CacheException: java.util.concurrent.ExecutionException: java.lang.ClassCastException: java.lang.String cannot be cast to [B | |
at org.infinispan.distexec.mapreduce.MapReduceTask.execute(MapReduceTask.java:360) [infinispan-core-6.0.0.Final.jar:6.0.0.Final] | |
at org.infinispan.distexec.mapreduce.MapReduceTask.execute(MapReduceTask.java:634) [infinispan-core-6.0.0.Final.jar:6.0.0.Final] | |
at org.infinispan.server.hotrod.util.BulkUtil.getAllKeys(BulkUtil.java:36) [infinispan-server-hotrod-6.0.0.Final.jar:6.0.0.Final] | |
at org.infinispan.server.hotrod.AbstractEncoder1x.writeResponse(AbstractEncoder1x.scala:111) [infinispan-server-hotrod-6.0.0.Final.jar:6.0.0.Final] | |
at org.infinispan.server.hotrod.HotRodEncoder.encode(HotRodEncoder.scala:47) [infinispan-server-hotrod-6.0.0.Final.jar:6.0.0.Final] | |
at org.jboss.netty.handler.codec.oneone.OneToOneEn |
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
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>Localhost2</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/sbin/ifconfig</string> | |
<string>lo0</string> | |
<string>alias</string> | |
<string>127.0.0.2</string> |
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.ddoyle.drools.rules | |
import org.jboss.ddoyle.drools.model.SimpleEvent | |
import org.jboss.ddoyle.drools.model.NoExpirationSimpleEvent | |
declare SimpleEvent | |
@role( event ) | |
@timestamp( timestamp ) | |
@expires( 10s ) | |
end |
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.ddoyle.drools.rules | |
import org.jboss.ddoyle.drools.model.SimpleEvent | |
declare SimpleEvent | |
@role( event ) | |
@timestamp( timestamp ) | |
@expires( 120s ) | |
end |
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
rule "SimpleEvent_retract" | |
when | |
$s: SimpleEvent() | |
$clock: SessionClock(currentTime after [300s] $s.timestamp) | |
then | |
System.out.println("Retracting event: " + $s.getId()); | |
System.out.println("Current clock-time: " + $clock.getCurrentTime()); | |
retract($s); | |
end |
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.ddoyle.drools.rules | |
import org.jboss.ddoyle.drools.model.SimpleEvent | |
import org.kie.api.time.SessionClock | |
declare SimpleEvent | |
@role( event ) | |
@timestamp( timestamp ) | |
//There is a bug in Drools which causes disabling event expiration with @expires( -1 ) not to work: https://issues.jboss.org/browse/DROOLS-984 | |
//So we set expiration to a very large value. |
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
rule "Average weight of last 5 bags that entered Sorting stage." | |
enabled true | |
when | |
$number: Number() from accumulate ($b:BagScannedEvent(location == Location.SORTING) over window:length(5), average($b.getWeight())) | |
then | |
System.out.println("\nAverage weight of last 5 bags: " + $number + ". CurrentTime: " + drools.getWorkingMemory().getSessionClock().getCurrentTime()); | |
end |
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
<batch-execution> | |
<insert out-identifier="applicant"> | |
<com.redhat.loandemo.Applicant> | |
<name>Eric D. Schabell</name> | |
<creditScore>230</creditScore> | |
</com.redhat.loandemo.Applicant> | |
</insert> | |
<insert out-identifier="loan"> | |
<com.redhat.loandemo.Loan> | |
<amount>2500</amount> |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<response type="SUCCESS" msg="Container container-loan1.0 successfully called."> | |
<results><?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<execution-results> | |
<results> | |
<item key="loan"> | |
<value xsi:type="jaxbListWrapper" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<type>LIST</type> | |
</value> |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<response type="SUCCESS" msg="Container container-loan1.0 successfully called."> | |
<results><?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<execution-results> | |
<results> | |
<item key="loan"/> | |
<item key="applicant"/> | |
</results> | |
<facts> | |
<item key="loan"/> |
OlderNewer