Merging two XML rules into a single XML file
by mcbonz
Hi All,
I'm currently trying to merge two (or more) rule packages in XML syntax into
a single XML Document.
I tryed to use a PackageBuilder to join multiple PackageDescr. My problem is
that the XmlDumper expects a PackageDescr and there seems to be no way to
get a PackageDescr out of a PackageBuilder.
Here is what I tryed:
Document ruledom;
XMLOutputter outputter = new XMLOutputter();
String rulestring = outputter.outputString(ruledom);
ByteArrayInputStream in = new ByteArrayInputStream(rulestring.getBytes());
PackageDescr pack = xmlr.read(in);
builder.addPackage(pack);
XmlDumper dumper = new XmlDumper();
dumper.dump(?);
Is there any possibility to get a PackageDescr out of the PackageBuilder?
Is there another way to merge XML rule files?
Any help is appreciated
Thanks, Ben
--
View this message in context: http://drools.46999.n3.nabble.com/Merging-two-XML-rules-into-a-single-XML...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 3 months
Rule Flow in Guvnor 5.2
by Sumeet Karawal
Hi,
Is there a possibility that we can create/edit a RuleFlow in Guvnor 5.2.
I have read the documents where it mentions the creation of Rule Flow in
Eclipse IDE and then importing the .rfm file in Guvnor, is there a way that
we can have the whole functionality of creating/editing Ruleflow in Guvnor
only. I searched for it and found something related to Orxy designer but
not able to get the whole thing. Can anybody help me on this.
Thanks & Regards,
Sumeet
Mailto: sumeet.karawal(a)tcs.com
=====-----=====-----=====
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
13 years, 3 months
Deployment Problem with .pkg Files
by Oli Blub
Hi to all,
when i found out that the build in selector only works for binary package i
wanted to switch. So i downloadet the .pkg File, copied it to the execution
server and changed the changeset to :
<add>
<resource source="classpath:/bhc_material/f/Test.pkg" type="PKG" />
</add>
By restarting the server i can't get it work. For .drl File it works fine. :
Did I do something wrong? I work with Guvnor 5.0.0. Does anybody know if it
works for Guvnor 5.2?
16.08.2011 11:02:25 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Exception sending context initialized event to listener
instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'pmqkbase1': Invocation of init method failed; nested exception is
java.lang.RuntimeException: java.io.OptionalDataException
13 years, 3 months
[guvnor] web decision table/action with formula value instead of literal
by dhartford
Hey all,
I'm still new to Drools, so maybe my expectations are incorrect, but I
thought I would ask --
In the guvnor (5.2 final) web decision table editor, the 'action' columns
seem to only accept literal values and not allow formula/expression based
values.
Is this intentional? I've made a bunch of normal rules, but from a 'batch
edit/review' where there are a lot of similarities I thought I would put
them in a Decision Table...but the actions (on specific fields) are all
formula/expression values, not literal.
thoughts? thanks!
-D
--
View this message in context: http://drools.46999.n3.nabble.com/guvnor-web-decision-table-action-with-f...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 3 months
Upload Models to Guvnor
by S.M.H.Jamali
Hello All
I want to create a test scenario in Guvnor but it can not detect my uploaded models! can you help me ? i look at the package properties and i can see my Models
Thanks
S.M.H.Jamali
13 years, 3 months
Dummy question from a new comer
by cross.cy
Hi, I only started using Guvnor recently. Just wonder if anyone could clarify
one question. A good benefit of using Guvnor to manage rules is to decouple
the rules from application code. However, the RHS of some rules may involve
actions related to other logic classes in application. For example, there's
a rule that sends out an email in the action, which uses methods defined
elsewhere in the project, and these should not be known by Guvnor. So my
solution for that is, create a declarative model containing an "Email" fact
in Guvnor. When the rule fires, logical insert an "Email" object. And back
in java code I'll try to check if there's an "Email" object created after
the fireAllRules() call. If there is, call my email sending method.
Is this the right way? If so, what's the best way to look for the newly
created "Email" object in Java code? There are methods to getFactHandles()
and getObjects(). Are they the area to look for?
Any comment will be highly appreciated!
Yu
--
View this message in context: http://drools.46999.n3.nabble.com/Dummy-question-from-a-new-comer-tp32481...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 3 months
Guvnor Repository Directory with Replicated Database
by Robert Morse
Our Seam 2.2.x application uses Drools 5.2 and Guvnor 5.2 running under JBoss 5.1.0.GA. We use an external MySql database set up in a master slave configuration. The repository.xml file points to the master MySql database (obviously).
Here's my question: Let's assume the database master fails, and we promote the slave so it's now the master. The repository.xml file would now need to point to the slave's database instance. Does anything in the Guvnor created repository directory need to be modified? Is it safe to switch simply by changing the values in repository.xml?
Thanks.
-robert.
The human mind is an iterative processor, it never does anything right the first time. What it does well is to make improvements on every iteration (deMarco)
13 years, 3 months
Putting breakpoints in JBoss server
by Hezi Stern
Hi,
I am trying to debug my rules running on my JBoss server. Unfortunately the
breakpoints do not work (although I am running in debug mode), I am able to
mark a breakpoint but it has no effect (Marking in the Java classes does
work).
When I run JUnit locally all works fine, I am able to put breakpoints and
the debugger stops as expected in the DRL file.
In JUnit I have an option to Debug as Drools JUnit test (and I also have a
Debug as Junit test) but when I wish to run my sever I only have "Start" or
"Debug" options (nothing indicating debug with Drools)
Is possible at all to breakpoint on JBoss? If yes is there something
specific that should be configured?
I am running:
- Drools 5.2.0
- Eclipse Helios
- JBoss 5.1.0
Thanks
Hezi
13 years, 3 months
app-dev 'toe in water' help please
by dhartford
Hey all,
I'm trying to dip some toes into the water with Drools, and have an
application that would be a good start but having some understanding/lacking
an appropriate example issue.
The application context, let's say, is Mortgages, and already using the
Mortgage rules that are stored in a running instance of Guvnor.
Going back to 'toe in water', lets assume that all 'facts' are loaded on
call (so nothing is pre-loaded, all data to run a rule is supplied at the
time the rule is called). This is to make it easier to get started without
jumping all-in just yet ;-)
Using the mortgage business rule 'CreditApproval' that is already loaded
into Guvnor, I can see passing the Application object, with the creditRating
field/fact to a rule.
However, instead of populating and returning a loanApplication object, how
would I return just the decision/end result of a rule if it was only one
value (the approved/not approved decision) from the java app? KnowledgeBase
is loaded from the java app, but struggling with StatefulKnowledgeSession
versus StatelessKnowledgeSession and how to simply get back the rule
decision value (again, preferably without a specific object if it is only
one value)?
I'm also looking to only fire/execute one rule at a time for now until we
get comfortable - any help for an app developer trying to ease their way
into drools?
Sorry if I not overly clear, still trying to learn the appropriate
terminology :-)
-Darren
--
View this message in context: http://drools.46999.n3.nabble.com/app-dev-toe-in-water-help-please-tp3249...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 3 months