I'm on google+ follow me there
by Mark Proctor
follow me at google+ on mdproctor(a)gmail.com. Mention you are a expert
system person, so I add you to the right circle.
Mark
13 years, 4 months
Sheriff rota
by Mark Proctor
Toni, Jervis, Michael, Geoffrey,
Starting from next month I'd like a Guvnor "sheriff" rota. I want you
each to take it in turns, a month at a time, to wear the Sheriff badge.
That person is then responsible for keeping the build blue, managing
jira (keeping it up to date) and chasing people to fix bugs. So in
general handling communications and keeping the project running
smoothley. Also they will be responsible for the minute taking of the
weekly minutes, so it's not all geoffrey.
Please work out a rota between yourselves and update that "holiday"
google sheet that michael made with that information. I also suggest you
update #guvnor with that month's Sheriff. Make sure john and prakash
have access to that google sheet.
Mark
13 years, 4 months
concurrent modification of a rule by more than one user in Guvnor
by puja nandamuri
Hi All,
I am currently testing 5.2.0.CR1 version of Guvnor.
Can multiple users modify a rule in Guvnor at the same time? what are the issues involved in say, two users trying to change
1. the same row in a decision Table at the same time and saving it.
2. different rows in a decision table at the same time and saving it.
Are there any documentation or articles to get more information on concurrent access within Guvnor?
Thank You,
ram.
13 years, 4 months
BPMN editor not working
by Jamie
I'm trying to move from Drools 5.1.1 to 5.2 and I'm reworking my .rf files
into .bpmn files, but I've run into an issue - I use the wizard to create a
new file like MainFlow.bpmn. After I create it, I open it using the BPMN2
process editor and all is well. However, if I add anything to the diagram
and close it, I get an error when I try to reopen it. "An exception
occurred while reading in the RuleFlow XML:null See the error log for more
details".
Any ideas what might be wrong? Where would I find the error log?
--
View this message in context: http://drools.46999.n3.nabble.com/BPMN-editor-not-working-tp3182776p31827...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months
priority based on object properties
by Simon Chen
Hi all,
I am curious if we can inform Drools' execution based on properties
within objects.
In particular, the salience value is defined for each rule, in the
sense that rule A has priority over rule B to execute. I am wondering
if we can define some kinda of salience metric, such that object X has
higher priority than object Y to be executed in the same rule.
To give an example, I am (still) playing with implementing shortest
path using a few rules. I have a rule for selecting a shortest path on
a node (among all the paths received from its neighbors) to a source
node, and another rule for propagating the shortest path on a node to
neighboring nodes. When I have many nodes in my graph, I found that
the paths propagated (via the second rule) are not always the
shortest, while Dijkstra's algorithm always "propagate" from the node
with the shortest distance to the source. The effect is that my rules
are wasting most of the time propagating paths that would be dropped
in the end anyway...
Any ideas?
Thanks.
-Simon
13 years, 4 months
jaxb generated fact loaded into Guvnor throws errors when using the ' is contained in the comma separated list' operator
by Sreeram.Vadlamudi@wellsfargo.com
Hello ,
I am using 5.2.0.CR1 version of Guvnor .
I have a jaxb generated class loaded through the model jar into Guvnor to be used as a fact in the Guided Decision Table editor.
When I use a field ACTIVITYCODE of type String from the JAXB generated class with ' is contained in the comma separated list' operator, I get compilation errors.
Unable to Analyse Expression ACTIVITYCODE == "A" || ACTIVITYCODE == "B": [Error: no such identifier: ACTIVITYCODE] [Near : {... ACTIVITYCODE == "A" || ACTIVI ....}] ^ [Line: 1, Column: 1]
But when I use equal to operator to compare value to just a string value, it compiles fine.
This rule fails.
3. | rule "Row 1 dds"
4. | ruleflow-group "None"
5. | dialect "mvel"
6. | when
7. | factClass : FACTCLASS( ACTIVITYCODE in ("A", "B")
8. | then
9. | factClass.setRATE( "5.25" );
10. | end
The below rule compiles fine.
3. | rule "Row 1 dds"
4. | ruleflow-group "None"
5. | dialect "mvel"
6. | when
7. | factClass : FACTCLASS ( ACTIVITYCODE =="A")
8. | then
9. | factClass.setRATE( "5.25" );
10. | end
Is this issue being caused by jaxb generated class? If so, is there a way to fix this problem?
When I use a regular pojo that is not jaxb generated, the
is contained in the comma separated list' operator works fine.
Can someone provide any direction or thoughts on this?
Thanks,
Ram
13 years, 4 months
Global variable in LHS
by pamerida
Hi everybody,
I would like to analyze a global value in the LHS of my rule without using
an eval, something like this:
global String globalVariable;
rule 'SI-002-NAD-6'
salience 5000
when
global (globalVariable in ("X","Y")
then
logger.log("[SI-002-NAD-6] Debe colocar la información del propietario del
medio de transporte.");
end
I cant use eval because it doesnt recognize the keyword "in", for example
this code would throw me an error in the validation
global String globalVariable;
rule 'SI-002-NAD-6'
salience 5000
when
eval (globalVariable in ("X","Y")
then
logger.log("[SI-002-NAD-6] Debe colocar la información del propietario del
medio de transporte.");
end
any suggestions? thanks so much for your help :)
--
View this message in context: http://drools.46999.n3.nabble.com/Global-variable-in-LHS-tp3180063p318006...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months
errors of deploying Guvnor 5.2.0 to JBoss 7.0
by cross.cy
Hi, I'm trying to deploy Guvnor 5.2 in JBoss AS 7.0. JBoss is running in
standalone mode. However i came across with the following error which failed
the deployment:
09:19:33,330 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2)
MSC00001: Failed to start service
jboss.deployment.unit."guvnor.war".POST_MODULE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."guvnor.war".POST_MODULE: Failed to process phase
POST_MODULE of deployment "guvnor.war"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at
org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_24]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_24]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_24]
Caused by: java.lang.LinkageError: Failed to link
org/apache/cxf/jaxrs/servlet/CXFNonSpringJaxrsServlet (Module
"deployment.guvnor.war:main" from Service Module Loader)
at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401)
at
org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261)
at
org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76)
at org.jboss.modules.Module.loadModuleClass(Module.java:588)
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
at
org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.checkDeclaredApplicationClassAsServlet(JaxrsScanningProcessor.java:310)
at
org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scanWebDeployment(JaxrsScanningProcessor.java:164)
at
org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:113)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
... 5 more
Caused by: java.lang.NoClassDefFoundError:
org/apache/cxf/transport/servlet/CXFNonSpringServlet
at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_24]
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) [:1.6.0_24]
at java.lang.ClassLoader.defineClass(ClassLoader.java:616) [:1.6.0_24]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[:1.6.0_24]
at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397)
... 16 more
Caused by: java.lang.ClassNotFoundException:
org.apache.cxf.transport.servlet.CXFNonSpringServlet from [Module
"deployment.guvnor.war:main" from Service Module Loader]
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
... 21 more
I then downloaded cxf-rt-transports-http.jar and tried to put it in both
standalone/lib/ext folder and the modules folder but I still got the same
error. Could anyone please help? Thanks!
--
View this message in context: http://drools.46999.n3.nabble.com/errors-of-deploying-Guvnor-5-2-0-to-JBo...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months
ERROR: stream classdesc serialVersionUID = 5166066541265170937, local class serialVersionUID = 8808844570772337501
by gbelin
Hi there,
I am trying load the example package mortgages with
/
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent(
"MortgageAgent" );
kagent.applyChangeSet( ResourceFactory.newUrlResource(
"http://localhost:8080/guvnor-webapp/org.drools.guvnor.Guvnor/package/mort..."
) );
KnowledgeBase kbase = kagent.getKnowledgeBase();/
the execution of the "applyChangeSet" produces the error:
/java.lang.RuntimeException: KnowledgeAgent exception while trying to
deserialize KnowledgeDefinitionsPackage
at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:732)
at
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:965)
at
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:774)
at
org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:646)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:190)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:172)
at com.sample.DroolsTest.main(DroolsTest.java:42)
Caused by: java.io.InvalidClassException:
org.drools.rule.MVELDialectRuntimeData; local class incompatible: stream
classdesc serialVersionUID = 5166066541265170937, local class
serialVersionUID = 8808844570772337501
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
/
I suppose it is a problem with different versions of any library, but I do
not know which one, I think I have the latest version of all libraries ...
My development environment:
Server:
Apache Tomcat 6.0.26
Guvnor server Version 5.2.0.Final
Client:
Eclipse 3.5 Galileo
Java jre6
mvel2.jar version 2.0.19
drools-api.jar Bundle-Version: 5.2.0.SNAPSHOT
drools-core.jar Bundle-Version: 5.2.0.SNAPSHOT
Thanks in advance.
--
View this message in context: http://drools.46999.n3.nabble.com/ERROR-stream-classdesc-serialVersionUID...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months
Verifying drools running version
by Hezi Stern
Is there any way to verify which drools version is actually running? E.g.
print inside a rule which rule engine version is running?
Regards,
Hezi
13 years, 4 months