problem loading and updating process definitions
by Wen Yao
Hello,
I followed the procedure in this post:
http://community.jboss.org/people/bpmn2user/blog/2011/02/21/jbpm5-example...
It mentioned two ways to deploy a process definition: (1) using Eclipse
plugin to add the process and artifacts to Guvnor and then build the
package; (2) put the jar and bpmn into their according directory, and then
restart the jboss server.
In my practice, my bpm console sometimes loads the process definitions from
Guvnor and sometimes from the bpmn directory. The processes in these two
repository/locations are different. Can I take control of this situation?
The performance is always not stable.
I also have some problem updating a process. When I modify a process schema
and update the bpmn file in the -Djbpm.console.directory. The BPM console
just stick to the old version. I have restarted the jboss server after the
update.
Thank you!
Best regards,
----
Wen
15 years, 4 months
Release Status
by Mark Proctor
We are still trying to integrate the new parser. We now hope that the
main parser integration will be done tomorrow. However that still needs
to be made to work in Eclipse. So the build probably won't be blue until
this coming monday - a week later than expected. That means that M2
probably won't be done now until end of next week. Which will push back
the intended release date to the early part of mid April.
If anyone can help on the eclipse integration of the parser, do pop on
to irc and offer a hand :)
http://www.jboss.org/drools/irc.html
Mark
15 years, 4 months
Agenda Groups and Salience
by Dean Whisnant
Hello,
Are there any conflicts in 5.1 between using salience and agenda groups?
I have three sets of rules 1) base software, 2) Trading Partner Specific, 3) Customer Specific.
These three sets are split into different Guvnor packages and all of #1 have an agenda group of "base", all of #2 have an agenda group of "tradingpartner" and all of #3 have no agenda group assigned.
We load all the rules to the knowledge session, letting it know to fire them in that order.
In my #1 set I have a few hundred rules. About 10 of those rules it matters what individual order they fire in so I was setting up salience for them as well.
Rule #1 has a salience of 21000 and it's job is to see if this is the first line item of a claim and if so to instantiate a new object, hasCOB.
Rule #2 has a salience of 20900 and checks to see if the incoming claim is medicare and if so, sets a Boolean, hasMedicare, to true and then does some output so I know if it set it
Rule #3 has a salience of 20900 and checks to see if the incoming claim is other insurance and if so, sets a Boolean, hasOther, to true and then does some output so i know if it set it
Rule #4 has a salience of 20800 and looks to see if there is a hasCOB object with hasMedicare = to true and then does output so I know if it worked
Rule #5 has a salience of 20800 and looks to see if there is a hasCOB object with hasOther = to true and then does output so I know if it worked
So I run a sample file through that hasCOB and should set hasOther to true.
Rule #1 fires and creates hasCOB
Rule #3 fires and sets hasOther to true and gives me output
Rule #5 doesn't fire???
Whether or not salience is the best method to accomplish this, shouldn't this work? DO you see a better way to accomplish this? Rules 4 and 5 are dummy rules here for testing, but what comes next is calculations based upon the existence of hasOther and/or hasMedicare.
I'm at a loss here and any thoughts/help would be welcomed...
Thank you!
Dean
15 years, 4 months
Drools Licence
by Anderson Neves
Hi everybody.
Can Drools be used in a commercial application? Like Hibernate can. I read
the licence, but still have doubts.
Regards,
Anderson
15 years, 4 months
Drools server deployment
by Sébastien Raickman
Hi all,
I am working with drools-server linked to Guvnor repository by a changeset
where my URL package/snapshot is defined.
Both of them are running on the same Jboss server instance
(drools-guvnor-5.1.1 and drools-server-5.1.1)
First, as the default deployment order is alphabetical, guvnor is deployed,
and that's what I need.
But when drools-server si deploying, I have the following error:
It seems that is caused by a timeout exception...
After Jboss has started, I touch web.xml on drools-server.war and everything
is deployed...
Any idea??
Thanks
Seb
2011-03-22 12:37:33,284 INFO [STDOUT] [2011:03:81 12:03:284:debug]
KnowledgeAgent rebuilding KnowledgeBase using ChangeSet
2011-03-22 12:37:43,292 INFO [STDOUT] [2011:03:81 12:03:292:exception]
2011-03-22 12:37:43,292 INFO [STDOUT] j*ava.lang.RuntimeException:
KnowledgeAgent exception while trying to deserialize
KnowledgeDefinitionsPackage*
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:664)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:889)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:704)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:584)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:185)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.drools.container.spring.beans.KnowledgeAgentBeanFactory.afterPropertiesSet(KnowledgeAgentBeanFactory.java:91)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
2011-03-22 12:37:43,293 INFO [STDOUT] at
java.security.AccessController.doPrivileged(Native Method)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
2011-03-22 12:37:43,293 INFO [STDOUT] at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
2011-03-22 12:37:43,294 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
2011-03-22 12:37:43,294 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,294 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
2011-03-22 12:37:43,294 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
2011-03-22 12:37:43,295 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
2011-03-22 12:37:43,295 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,295 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.web.WebModule.startModule(WebModule.java:83)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.web.WebModule.startService(WebModule.java:61)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
2011-03-22 12:37:43,295 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
2011-03-22 12:37:43,295 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,295 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
2011-03-22 12:37:43,295 INFO [STDOUT] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
2011-03-22 12:37:43,296 INFO [STDOUT] at $Proxy0.start(Unknown Source)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.system.ServiceController.start(ServiceController.java:417)
2011-03-22 12:37:43,296 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
2011-03-22 12:37:43,296 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,296 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
2011-03-22 12:37:43,296 INFO [STDOUT] at $Proxy206.start(Unknown Source)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
2011-03-22 12:37:43,296 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)
2011-03-22 12:37:43,296 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,296 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2011-03-22 12:37:43,296 INFO [STDOUT] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
2011-03-22 12:37:43,297 INFO [STDOUT] at $Proxy207.start(Unknown Source)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
2011-03-22 12:37:43,297 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
2011-03-22 12:37:43,297 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,297 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2011-03-22 12:37:43,297 INFO [STDOUT] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
2011-03-22 12:37:43,298 INFO [STDOUT] at $Proxy10.deploy(Unknown Source)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
2011-03-22 12:37:43,298 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
2011-03-22 12:37:43,298 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,298 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
2011-03-22 12:37:43,298 INFO [STDOUT] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
2011-03-22 12:37:43,299 INFO [STDOUT] at $Proxy0.start(Unknown Source)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.system.ServiceController.start(ServiceController.java:417)
2011-03-22 12:37:43,299 INFO [STDOUT] at
sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
2011-03-22 12:37:43,299 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,299 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
2011-03-22 12:37:43,299 INFO [STDOUT] at $Proxy4.start(Unknown Source)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
2011-03-22 12:37:43,299 INFO [STDOUT] at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
2011-03-22 12:37:43,299 INFO [STDOUT] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2011-03-22 12:37:43,300 INFO [STDOUT] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2011-03-22 12:37:43,300 INFO [STDOUT] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-03-22 12:37:43,300 INFO [STDOUT] at
java.lang.reflect.Method.invoke(Method.java:597)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
2011-03-22 12:37:43,300 INFO [STDOUT] at $Proxy5.deploy(Unknown Source)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.Main.boot(Main.java:200)
2011-03-22 12:37:43,300 INFO [STDOUT] at
org.jboss.Main$1.run(Main.java:508)
2011-03-22 12:37:43,300 INFO [STDOUT] at
java.lang.Thread.run(Thread.java:662)
2011-03-22 12:37:43,301 INFO [STDOUT] *Caused by:
java.net.SocketTimeoutException: Read timed out*
2011-03-22 12:37:43,301 INFO [STDOUT] at
java.net.SocketInputStream.socketRead0(Native Method)
2011-03-22 12:37:43,301 INFO [STDOUT] at
java.net.SocketInputStream.read(SocketInputStream.java:129)
2011-03-22 12:37:43,301 INFO [STDOUT] at
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
2011-03-22 12:37:43,301 INFO [STDOUT] at
java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
2011-03-22 12:37:43,301 INFO [STDOUT] at
java.io.BufferedInputStream.read(BufferedInputStream.java:317)
2011-03-22 12:37:43,301 INFO [STDOUT] at
sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)
2011-03-22 12:37:43,301 INFO [STDOUT] at
sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
2011-03-22 12:37:43,301 INFO [STDOUT] at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1200)
2011-03-22 12:37:43,301 INFO [STDOUT] at
org.drools.io.impl.UrlResource.grabStream(UrlResource.java:210)
2011-03-22 12:37:43,301 INFO [STDOUT] at
org.drools.io.impl.UrlResource.getInputStream(UrlResource.java:146)
2011-03-22 12:37:43,301 INFO [STDOUT] at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:652)
15 years, 4 months
How to manage lists of data
by Alexander, Scott F
Hi,
Im pretty new to drools and have been going through the docs for the Expert and guvnor. I have some basic unit tests running with the rules I am trying to replicate from a legacy system. One of the rules my current system uses is to check a property in an Object against a list of values and fire if the property is present in the list ie list.contains(someValue);
I am trying to find out what the best practise is for setting up the lists which will be checked against. I don't want to have to include these lists in java classes and upload them as facts. I would much rather be able to manage them through guvnor so my non technical users can manage them themselves without the need to release a new jar file.
Thanks.
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.
15 years, 4 months
compare date in map in rule condition
by James Gu
Hi, I am trying to compare date in condition of rule. I set the date format
in system parameter.
System.setProperty("drools.dateformat", "dd/MM/yyyy");
When I get the date from the fact object directly, it works well.
when
$record: Record( startDate < "01/01/3000" )
In my application, I need to get a map from fact objet, then use a key to
get the target object, then get "dateValue" from the target object. This
condition doesn't work. "dateValue" is a java.util.Date object.
when
$record: Record( fieldMap["STARTDATE"].dateValue < "01/01/3000" )
Does anyone know how to make it works?
This is the error message.
org.drools.RuntimeDroolsException: Exception executing predicate
fieldMap["STARTDATE"].dateValue < "01/01/3000"
at
org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:279)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:141)
at
org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:59)
at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:190)
at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:145)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1174)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1123)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:917)
at
org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:251)
at dti.drools.test.Test.oneRecordThousandTime(Test.java:81)
at dti.drools.test.Test.main(Test.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:110)
Caused by: [Error: uncomparable values <> and <<01/01/3000>>]
[Near : {... Unknown ....}]
^
[Line: 1, Column: 0]
at
org.mvel2.math.MathProcessor.doOperationNonNumeric(MathProcessor.java:230)
at org.mvel2.math.MathProcessor._doOperations(MathProcessor.java:175)
at org.mvel2.math.MathProcessor.doOperations(MathProcessor.java:79)
at
org.mvel2.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:111)
at org.mvel2.MVELRuntime.execute(MVELRuntime.java:85)
at
org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:104)
at org.mvel2.MVEL.executeExpression(MVEL.java:1001)
at
org.drools.base.mvel.MVELPredicateExpression.evaluate(MVELPredicateExpression.java:91)
at
org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:272)
... 15 more
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to
java.util.Date
at java.util.Date.compareTo(Date.java:112)
at
org.mvel2.math.MathProcessor.doOperationNonNumeric(MathProcessor.java:227)
... 23 more
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/compare-date-in-map-i...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 4 months
Parsing problems using a DSL
by drdaveg
I have run into a number of problems using a domain specific language (DSL)
on processing DSLR files. My biggest frustration - and one I am hoping
people can provide a work-around or guidance on - is that often the Eclipse
plug-in does not allow the DRL pane, showing the DRL file, to be clicked on
(and shown.) This sometimes happens when there are no compilation errors:
the DLR file is simply not being generated.
I have run into issues where an error like "parsing problem: contact the
support team" occurs or a null pointer exception occurs, but no error is
shown. My approach has been to make small changes in working DSL files
(i.e., describing the translations) at a time, to minimize impact. Can
anyone offer better approaches to building the DSL grammar?
On a related issue, many documents cite using DSL and regular expressions
for code-rewriting and - while I find documentation on antlr 3 masks for
doing some regular expressions - is the common re-writing task of using "or"
- as in
My object (Car|Bus|Buyer|Salesman)
supported in any way other than seperate lines for "object Car", "object
Bus", etc? Thanks!
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Parsing-problems-usin...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 4 months
Limiting rule evaluation--not firing
by ljnelson
Hello; I am aware of the fundamental difference between inserting facts--and
evaluating them against all the rules in the rule base--and firing
rules--i.e., executing only certain rules' consequences.
I understand that ruleflow-group and agenda-group and activation-group can
all be employed to govern which rules' consequences are fired at
fireAllRules() time.
My question (which has been asked by many others in different ways, yet not
answered as far as I can tell on the mailing list to anyone's satisfaction)
is: is there any construct that can be used when it is known up front that
only certain rules will match? That is, is there any way to limit rule
evaluation?
For example, I have a series of surveys that all use the same KnowledgeBase
to govern the flow of the user through the survey. But once I've asked a
given question, then I know right then and there which rules have a chance
of taking effect.
I've already put them in their own agenda-group, and I already switch focus
to that agenda group prior to fact insertion, so that by the time I call
fireAllRules() I've made it so that--say--ten rules' consequences are the
only ones (out of hundreds) that could possibly fire in this given session.
But unless I'm radically misunderstanding something, each time I insert a
fact, it is evaluated against all the hundreds of rules, even when several
hundred of those rules don't have any chance of having their consequences
firing.
I even understand (I think) why this is. If I were, for example, to
subsequently pop the agenda group that I had set focus to, then "MAIN" would
be selected, and for those activations to fire the inserted fact would have
had to have been evaluated against all the rules, including those whose
agenda group is "MAIN".
But I guess what I'm wondering is: can I somehow turn this off? Can I, in
other words, partition the KnowledgeBase itself? Can I effectively tell
Drools, during this stateless session, don't even bother trying to match
facts against rules 1-10, just try rules 11-14?
Thanks,
Laird
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Limiting-rule-evaluat...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 4 months