Skip to content

Instantly share code, notes, and snippets.

View tsurdilo's full-sized avatar

Tihomir Surdilovic tsurdilo

View GitHub Profile
2011-05-18 17:06:47,523 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-4) ERROR 18-05 17:06:47,522 (LoggingHelper.java:error:69) Type 'org.drools.guvnor.client.rpc.RuleFlowContentModel' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.For security purposes, this type will not be serialized.: instance = org.drools.guvnor.client.rpc.RuleFlowContentModel@f95934
com.google.gwt.user.client.rpc.SerializationException: Type 'org.drools.guvnor.client.rpc.RuleFlowContentModel' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.For security purposes, this type will not be serialized.: instance = org.drools.guvnor.client.rpc.RuleFlowContentModel@f95934
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:614)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStrea
import org.drools.process.core.datatype.impl.type.StringDataType;
[
[
"name" : "Shipment",
"parameters" : [
"ShipmentID" : new StringDataType(),
"To" : new StringDataType()
],
"results" : [
assertStartNodeExists(processInstance);
assertEndNodeExists(processInstance);
assertNumberOfStartNodes(1);
assertNumberOfEndNodes(1);
assertNumberOfProcessVars(1);
assertProcessVarExists("x");
assertNodeExists(processInstance, "StartProcess","EventFinderTask","EndProcess");
private InputStream getInputStreamForURL(String urlLocation, IDiagramProfile profile) throws Exception{
// pretend we are mozilla
URL url = new URL(urlLocation);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("GET");
connection
.setRequestProperty(
"User-Agent",
"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16");
Error occurred during error handling, give up!
org.apache.cxf.interceptor.Fault: Media type separator is missing
at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:67)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:311)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:113)
at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:97)
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:461)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:149)
at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:148)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179)
<br>Rule a1:
<br>Activation-group 'a'
<br>Salience 1000
<br>When
<br>SomeFact(value==10)
<br>Then
<br>DoSomething
<br>End
<br>
<br>Rule a2:
<drools:ksession id="statelessSession" type="stateless" name="stateless1" kbase="kbase1" node="node1">
<drools:eventListener ref="mock-agenda-listener" type="agenda-event-listener"/>
<drools:eventListener ref="mock-process-listener" type="process-event-listener"/>
<drools:eventListener ref="mock-wm-listener" type="working-memory-event-listener"/>
</drools:ksession>
<drools:ksession id="statefulSession" type="stateful" kbase="kbase1" node="node1">
<drools:eventListener ref="mock-agenda-listener" type="agenda-event-listener"/>
<drools:eventListener ref="mock-process-listener" type="process-event-listener"/>
<drools:eventListener ref="mock-wm-listener" type="working-memory-event-listener"/>
<drools:CreditRules>
<d:resources>
<s:value>classpath;creditrules1.drl;DRL</s:value>
<s:value>classpath;creditprocess.bpmn2;BPMN2</s:value>
</d:resources>
</drools:CreditRules>
/*
* JBoss, Home of Professional Open Source
* Copyright ${year}, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
<userTask id="_2" name="Review" >
<ioSpecification>
<dataInput id="_2_descriptionInput" name="description" />
<dataInput id="_2_userIdInput" name="userId" />
<dataInput id="_2_dateInput" name="date" />
<dataInput id="_2_TaskNameInput" name="TaskName" />
<dataInput id="_2_GroupIdInput" name="GroupId" />
<dataOutput id="_2_commentOutput" name="comment" />
<dataOutput id="_2_outcomeOutput" name="outcome" />
<inputSet>