How to hold a Collection of Objects in memory for processing ?.
by vr
Hi All,
This is the rule defined in my drl file
rule "Entry"
salience 10
when
$alert : Alert()
$list : Alert ( sourceName=="DATA") from $alert.alerts // 1.
Iterate over List of ALerts
then
checkForAlertDescription($list); // 2. I am passing one Alert per
match
end
Is there a way to hold the *Entire List at Step one * in the Drools Memory
so that i can take the Entire list for processing with in the function
defined at Step 2
Instead of the single alert that i have at the moment
Any suggestions would be helpful.
Drools v 5.4.0 Final
-----
Thanks for the support ...!!!
VR
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-hold-a-Collection-of-Objects-in-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 8 months
Maintain assets synchronized between members of a team
by ciberg2
Hi,
My Drools project is going well and now it's time for some people starting
creating and deploying new Excel decision tables onto the repository.
For that we are using the Eclipse plugin, I've created a general project
that replicates the package structure so everyone can start deploying these
new tables.
My problem is maintaining all the projects in each team member computer
synchronized. Using Eclipse Tools I can commit and update existing assets
but I've not found a way to get all the new assets not existing in the local
computer.
The only way is getting resources from repository but that has to be done
one by one which is not an ideal way to do it because there will be many,
and to add to the problem doing that the downloaded excel files lose all
formatting and become corrupted.
I thought of using GIT to synch all the files but it seems silly to have to
put the files in a new repository when I already have them in one (Guvnor).
What do you think will be the best way to guarantee that all team members
have the same versions of the assests on their local computers?
--
View this message in context: http://drools.46999.n3.nabble.com/Maintain-assets-synchronized-between-me...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 8 months
[planner] documentation
by Eric Keller
Hi everyone,
I am going through your new optaPlanner User Guide documentaiton and found
one typo:
Let's take a look look at 2 different implementations:
(double look!)
2.1.7.1. Simple Java score configuration
Regards
--
Eric
12 years, 8 months
error when deploying guvnor war on websphere
by ashish6276
Hi i am getting this error when i am deploying guvnor war on websphere server
[4/24/13 11:07:10:629 IST] 0000001e webapp I
com.ibm.ws.webcontainer.webapp.WebApp log SRVE0296E:
[guvnorWAS_war#guvnorWAS.war][/test][Servlet.LOG]:.Exception while
dispatching incoming RPC
call:.com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract org.drools.guvnor.client.rpc.UserSecurityContext
org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
unexpected exception: java.lang.IllegalStateException: CDI hasn't been
properly started.
Make sure your IDE classpath is in sync with the real maven classpath.
The classpath should include weld-servlet.
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1583)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:870)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:863)
at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:182)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
Caused by: java.lang.IllegalStateException: CDI hasn't been properly
started.
Make sure your IDE classpath is in sync with the real maven classpath.
The classpath should include weld-servlet.
at
org.drools.guvnor.server.SecurityServiceServlet.getCurrentUser(SecurityServiceServlet.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
The war get deployed in was succesfully. after that when i am hitting the
url from ide the page goes blank and it give me those exception. please help
me .
--
View this message in context: http://drools.46999.n3.nabble.com/error-when-deploying-guvnor-war-on-webs...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 8 months
Fusion: Null pointer exception when using sliding windows
by burmanator
I am getting a null pointer exception when I try and use a sliding window.
The rule I'm trying to run is:
$primary : Foo($name : Name) over window length(24)
$prev : ArrayList(size<1) from collect ( Foo(Name == $name, this before
$primary))
I am trying to look at the last 24 Foo events and have the rule only trigger
when an event with that name hasn't been seen before. I also get a null
pointer when I try and do a time window and no Foo events happen within the
window. Shouldn't the rule just not fire?
--
View this message in context: http://drools.46999.n3.nabble.com/Fusion-Null-pointer-exception-when-usin...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 8 months
Designer for Guvnor 5.3.5
by Lance Leverich
Can anyone point me to where I can find the jBPM designer tool for use
within Guvnor v5.3.5? Instead of getting a download option, all we get is
the error message telling us that Guvnor couldn't find the designer tool.
~ Lance
12 years, 8 months
Guvnor 5.4.0 Deployment Failing on Websphere CE 2.1.1.4
by kulpreet_singh
Hi,
Trying to deploy 'guvnor-5.4.0.Final-tomcat-6.0.war' on Websphere CE
2.1.1.4, but getting following deployment error:
-----------------------------------------
Deployment Failed
Can not resolve admin object ref ?j2eeType=JCAAdminObject,name=BeanManager#
in configuration default/guvnor-5.4.0.Final-tomcat-6.0/1366121936876/war
org.apache.geronimo.common.DeploymentException: Can not resolve admin object
ref ?j2eeType=JCAAdminObject,name=BeanManager# in configuration
default/guvnor-5.4.0.Final-tomcat-6.0/1366121936876/war
at
org.apache.geronimo.connector.deployment.AdminObjectRefBuilder.buildAdminObjectReference(AdminObjectRefBuilder.java:260)
at
org.apache.geronimo.connector.deployment.AdminObjectRefBuilder.buildNaming(AdminObjectRefBuilder.java:153)
at
org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:53)
------------------------------------------
If anyone has faced similar issue before, please help me in this regard.
Thanks.
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-4-0-Deployment-Failing-on-Webs...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 8 months
Create package in Guvnor via REST API fail (Missing package name)
by Magic
Hi,
I am trying to operate my local 5.5.0 Guvnor through RESTful API and have
some trouble.
For example, below is my code to create a package through a InputStream DRL.
The DRL string is copied from
org.drools.guvnor.server.util.FileManagerUtilsTest.java
=====================================================================
String content = "package testClassicDRLImport\n import blah \n rule 'ola'
\n when \n then \n end \n rule 'hola' \n when \n then \n end";
HttpClient client = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(baseURL + "/rest/packages");
httpPost.addHeader("Authorization", securityToken);
httpPost.addHeader("Accept", MediaType.APPLICATION_JSON);
httpPost.addHeader("Content-Type", MediaType.APPLICATION_OCTET_STREAM);
InputStreamEntity entity = new
InputStreamEntity(IOUtils.toInputStream(comment), comment.length(),
ContentType.APPLICATION_OCTET_STREAM);
httpPost.setEntity(entity);
HttpResponse response = client.execute(httpPost);
=====================================================================
But, I still got an error that told me "Missing package name":
Caused by: java.lang.IllegalArgumentException: Missing package name.
at
org.drools.guvnor.server.files.FileManagerService.importClassicDRL(FileManagerService.java:313)
[guvnor-webap
p-core-5.5.0.Final.jar:5.5.0.Final]
at
org.drools.guvnor.server.files.FileManagerService$Proxy$_$$_WeldClientProxy.importClassicDRL(FileManagerServi
ce$Proxy$_$$_WeldClientProxy.java)
[guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final]
at
org.drools.guvnor.server.jaxrs.PackageResource.createPackageFromDRLAndReturnAsJaxB(PackageResource.java:172)
[guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final]
I really don't know what's wrong and any help is really appreciate!
--
View this message in context: http://drools.46999.n3.nabble.com/Create-package-in-Guvnor-via-REST-API-f...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 8 months