gwt-console-drools - link 2 download
by ramram
Hi All,
I am trying to download the source code of the "gwt-console-drools" but I
couldn't find the source code for it. All what I want is to add a button to
the UI of the drools so that I could apply a new functionality.
Can someone help and give me the link of the source code of the
"gwt-console-drools" I already have the war file but I need the source code.
Thnx for the help.
Regards,
Ram
--
View this message in context: http://n3.nabble.com/gwt-console-drools-link-2-download-tp428289p428289.html
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 9 months
Inferencing
by Tim de Jager
Hi everybody,
I'm currently doing my bachelor thesis on Rule engines. This includes
comapring different Rule engine products. I have set up a small Java program
(Conway's game of life) and I'm writing the 'engine' in different Rule
engines, while keeping the same GUI,CellGrid etc. I have already made a
Drools based engine.
I have been studying the Rule engine subject for somewhat more then a month
now. And I'm currently seeing two different developments namely the use of
an inference engine and the generation of embedded code instead (Take,
Visual Rules etc.) I can see some of the pro's and cons with both
paradigms. But I'm wondering what opinion some of you guys have on the
subject.
I can see that without inferencing it is very hard (or even impossible) to
keep a statefull session inside the rule engine, haven't seen a
non-inferencing rule engine which does offer this possibility. And also lose
features like TMS. But what would be a concrete example where a statefull
session is absolutely necessary? Instead of letting the engine reason over
all the facts in stateless way. And managing conflicts with a ruleflow (see
Visual Rules for a nice example).
I'm looking forward to hearing your thoughts.
Thanks,
Tim
P.S I already read two of Mark Proctors blogs on inferencing, but while
enlightening, they didn't supply me with a definitive awnser
--
View this message in context: http://n3.nabble.com/Inferencing-tp435411p435411.html
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 9 months
XStream
by Bertrand Grottier
Hello,
My general aim is to load facts from a xml file.
I tried to modify an example furnished in the documentation (Example 3.37. Constructing a pipeline).
I get an exception on the following line:
Transformer transformer = PipelineFactory.newXStreamFromXmlTransformer( xstream );
The message is the following:
org.drools.ProviderInitializationException: Provider org.drools.runtime.pipeline.impl.XStreamTransformerProviderImpl could not be set.
Am I going in the right direction ? (I am a newbie)
If yes, have you got an explanation for my problem.
Otherwise, what is the simplest way to achieve my goal ?
Thank you in advance for your help.
Regards,
Benoît
PS : I am using Drools 5.0
_________________________________________________________________
Découvrez comment SURFER DISCRETEMENT sur un site de rencontres !
http://clk.atdmt.com/FRM/go/206608211/direct/01/
14 years, 9 months
Guvnor - Test Scenario
by Amit Kumar
Hello,
In test scenario building in guvnor we cannot add refrence relation in
model.
The fact model we have is
Table
color
shape
Legs Collection<Leg>
Leg
material
color
So this object cannot be added there in guvnor.
Do we have some functionality in guvnor or eclipse where we can build test
scenarios for this.
Do we still have FIT in the raw form somewhere which can be utilized
seperately.
Thanks
Amit
14 years, 9 months
ClassCastException when debugging as a drools unit test with a ruleflow
by H.C.
Hi,
I have a unit test written which tests my rules. In my setup, I am loading
my drl and rf files via a changeset into an agent and getting my knowledge
base. The test then sets globals and facts on my stateful session and
execute my ruleflow. I can execute this unit test in JUnit and debug. My drl
and rf files build ok and I can step through my java breakpoints.
However, when I execute the very same Junit test using debug as Drools Junit
Test, I get the following exception when the knowledge agent is building my
drl and rf files in my junit setup.
The only difference between the two scenarios is that I am using the debug
as Drools Unit Test in the exception scenario and plain debug as junit test
in the first. I make no configuration or code changes.
java.lang.ClassCastException: org.drools.workflow.core.node.RuleSetNode
cannot be cast to org.drools.workflow.core.node.StateBasedNode
at
org.drools.process.builder.EventBasedNodeBuilder.build(EventBasedNodeBuilder.java:21)
at org.drools.compiler.ProcessBuilder.processNodes(ProcessBuilder.java:185)
at org.drools.compiler.ProcessBuilder.buildNodes(ProcessBuilder.java:171)
at org.drools.compiler.ProcessBuilder.buildProcess(ProcessBuilder.java:139)
at
org.drools.compiler.ProcessBuilder.addProcessFromFile(ProcessBuilder.java:222)
at
org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:448)
at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:504)
at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:25)
at
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:386)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:120)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:109)
at com.ac.logistics.usps.IQ.UspsIQEngine.<init>(UspsIQEngine.java:21)
at
com.ac.logistics.usps.transformation.UspsRateRequestTransformer.<init>(UspsRateRequestTransformer.java:25)
at
com.ac.logistics.usps.transformation.TestUspsRateRequestTransformer.setUp(TestUspsRateRequestTransformer.java:50)
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
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
--
View this message in context: http://n3.nabble.com/ClassCastException-when-debugging-as-a-drools-unit-t...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 9 months
Converting from Java to MVEL dialect
by Boardman, Dave
We are experiencing permgen space issues in our test environment and we have decided to convert our rules from the java dialect to MVEL. I'm wondering if anybody knows of a reference that describes the syntactic differences between the two dialects and what steps we need to take in order to convert. For example, a small number of our rules have conditional statements in the right-hand side and we will need to rewrite these I believe.
Thanks in advance,
Dave
14 years, 9 months
Inheritance-Like Design Question
by malkhafaji
Hello,
I know, from searching this forum and posting before, that the concept of
inheritance does not exist today in Drools. However, I have a need for it.
Here is my specific situation:
I have certain rules that have some generic conditions to be fired:
Rule 1
If A Then X end
Rule 2
If A, B Then Y end
What I would like to do is, if Rule 2 is true, then I don't want Rule 1 to
execute. I have many and many of those rules, so combining all the
conditions in less number of rules violates our design having rules being
mutually exclusive. That is why I wanted to include this behavior as a
natural inheritance behavior rather than forcing the flow with logic inside
the rule itself (you will make rules aware of others this way).
So, since there is not built-in feature that allows you to do that, do
people suggest anything that I can do without having to mix Rule 1 and Rule
2 into one rule with complex conditional statements? Any ideas?
The only thing I can think of is taking this logic processing outside of
drools, which is something that I am not too excited about.
Thanks.
--
View this message in context: http://n3.nabble.com/Inheritance-Like-Design-Question-tp430848p430848.html
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 9 months
Extending Eclipse Editors
by Romain Bioteau
Hi,
I'm working on a Eclipse RCP Product and I need to extend the
DRLRuleEditor. However the package is not exported in MANIFEST.MF and
thus not accessible from my plugin.
Is there a specific reason to not export those packages ?
Have someone already try to reuse those Editors ?
Best Regards
Romain Bioteau
14 years, 9 months
Re: [rules-users] How to add a SkinProvider for the Drools Flow Eclipse Plugin, since the SkinManager does not have any possiblities for adding one ?
by Robert
Hi Kris,
thanks for the offer on extending the Eclipse Plugin to add a custom
SkinProvider.
A little more background on what my actual intention is.
I need a collection of already setup components which I can reuse again
and again. Those components will mostly be derived from already existing
components (like the Action-Component), but with an already given name and
action (like a pre-set)...
This is because I need to modell flows with a lot of reused operations. I
work in the semiconductor industry and process flows to produce a chip
reuse many times the same kind of operations (e.g. load equipment, unload
equipment, collect data, ...; just with some different parameters).
My thought was to create a custom SkinProvider with all the needed
operations which I can use for modeling the flow.
Operation -> (extends) Component
(orig)
load equipment -> Action
(=
Action comp with
Name
= "load equipment";
Action
= LoadEquipmentHandler.handleIt(...))
unload equipment -> Action
(=
Action comp with
Name
= "unload equipment";
Action
= UnLoadEquipmentHandler.handleIt(...))
collect data -> Action
(=
Action comp with
Name
= "collect data";
Action
= CollectDataHandler.handleIt(...))
a.s.o.
I hope you understand what I am trying to do.
If you have a better idea of providing custom components as through a
SkinProvider, just let me know.
Thanks.
Cheers, Rob.
----------------------------------------------
Send rules-users mailing list submissions to
rules-users(a)lists.jboss.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
rules-users-request(a)lists.jboss.org
You can reach the person managing the list at
rules-users-owner(a)lists.jboss.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of rules-users digest..."
Today's Topics:
1. Drools integration with Mysql (Nilima R)
2. How to add a SkinProvider for the Drools Flow Eclipse Plugin,
since the SkinManager does not have any possiblities for adding
one ? (Robert)
3. Re: gwt-console-drools - link 2 download (ramram)
4. Re: How to add a SkinProvider for the Drools Flow Eclipse
Plugin, since the SkinManager does not have any possiblities for
adding one ? (Kris Verlaenen)
5. XStream (Bertrand Grottier)
6. Re: gwt-console-drools - link 2 download (Kris Verlaenen)
7. Re: XStream (Kris Verlaenen)
----------------------------------------------------------------------
Message: 1
Date: Tue, 9 Mar 2010 13:04:07 +0530
From: Nilima R <nilima.r(a)tcs.com>
Subject: [rules-users] Drools integration with Mysql
To: rules-users(a)lists.jboss.org
Message-ID:
<OFE303DE70.696D5B48-ON652576E1.0029517D-652576E1.00299385(a)tcs.com>
Content-Type: text/plain; charset="us-ascii"
Hello All ,
I need to integrate Mysql with Drools
1)I have made the following changes in the repositry..xml file
<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager">
<param name="url"
value="jdbc:mysql://localhost.:3306/guvnor_db;create=true"/>
<param name="user" value="root"/>
<param name="password" value="root123"/>
<param name="schemaObjectPrefix" value="${wsp.name}_"/>
2)Also i have included mysqlconnector jar in jboss AS .
Please help with above steps as am not able to connect to mysql.No tables
are created in guvnor_db.
Nilima
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
14 years, 9 months