, at 21:26, Dan Seaver [hidden email] wrote:
Thanks Mark, but I still am having issues.
I cloned the latest droolsjbpm-build-distribution and built
drools-osgi-bundles and reviewed the documentation you refenced. I
don't see
it stated anywhere, but I assume I need to install and start all
Thanks Mark, but I still am having issues.
I cloned the latest droolsjbpm-build-distribution and built
drools-osgi-bundles and reviewed the documentation you refenced. I don't see
it stated anywhere, but I assume I need to install and start all of the jars
in
I'd like to use Drools as OSGi services in the JBoss Adaptive Server (version
7.1.1).
I haven't found any specifics about how to do this in the drools
documentation (or anywhere else with my google searches), so I'm attempting
to deploy the jars mentioned in the droolsjbpm-integration-docs via
Tihomir,
Thanks so much for your quick response. I apologize for not getting back to
you sooner, but somehow I didn't see your reply until a couple minutes ago.
Yes, Guvnor is running on localhost:8080.
(http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/Guvnor.html)
I'm using the
I'm attempting to use the Oryx designer in Guvnor, however I can't seem to
save / redisplay any diagram. I've tried it with various configurations,
including using the jBPM demo, but always get the same results. After I save
the newly created BPMN diagram, the Oryx designer refreshes to a blank
I'd love to see the delete method on stateless knowledge sessions. In the
mean time, should I use a hibernate query to remove the record from
sessioninfo or is there a more convenient technique?
--
View this message in context:
table and should have everything you need to run it outside of
Guvnor. BRL and DT will always create DRL when you export the package. So
my guess is you should use KB.add on a DRL resource type.
-Michael
- Original Message -
From: Dan Seaver dan.sea...@ge.com
To: rules-users
So, I'd like to have a ruleset that returns true or false. The way I set that
up in one of the version 5 candidate releases is to use a Boolean global and
use drools.getWorkingMemory().setGlobal(result, new Boolean(false)) to
change the value of the global. I could then access the updated value
Can someone tell me the appropriate way to use web-based decision tables?
They seem to work fine if I create them in Guvnor, and then build and deploy
the binary package from Guvnor. However, if I copy the gdst from Guvnor to
Eclipse and use KnowledgeBuilder.add to attempt to add the resource as
I'm using various KnowledgeBase objects in a J2EE environment, using JBoss
4.2 as the application server. Currently, I keep a list of KnowledgeBase
objects in a stateless session bean. The thought being that to keep the
application scalable, we don't want contention around rule sessions.
In the M5 release, I could use a Boolean global as an Out type parameter and
changes I made to the global would be maintained in the results. In CR1, I
use the CommandFactory to add the global with out set to true, and I get
back the initial value of the Boolean, not the updated value.
Here's a
Krishna,
Thanks for the response. I used the eclipse workbench (5.0.0.CR1) to create
the runtime jars, putting the jars into my JBoss server's lib directory. The
jars don't have the version# on them (ie drools-compiler.jar).
Looking in guvnor.war, I see drools-compiler-5.0.0.CR1.jar. These
I built a rule package in Guvnor and downloaded the binary. When I use:
builder.add(ResourceFactory.newInputStreamResource(inStream),
ResourceType.PKG);
I get a NullPointerException. But, if I use Guvnor's view source, copy the
source to a file, and use:
Drools 5.0 - I'm planning on using compiled rule packages in our J2EE
production environment. I'm very interested in performance. I assume that
once a package is loaded, it doesn't matter if or how it was compiled, so
the primary concern is in the load time (unless there are other issues I'm
(builder.getKnowledgePackages());
Dan Seaver wrote:
Drools 5.0 - I'm planning on using compiled rule packages in our J2EE
production environment. I'm very interested in performance. I assume that
once a package is loaded, it doesn't matter if or how it was compiled, so
the primary concern
Yes, the exception occurs on both the filesystem and Guvnor, and it happens
whether I set the value to true or false.
Michael Neale wrote:
So from the filesystem it won't pick up changes? (does it throw the
same exception).
On Thu, Feb 19, 2009 at 5:34 AM, Dan Seaver dan.sea...@ge.com
I setup a KnowledgeAgent using the example code in the JavaDoc for
KnowledgeAgentFactory to access a compiled package in Guvnor. The package
runs fine, but changes to the package are not picked up. I believe this is
due to the ChangeSet notification thread being interrupted. But why?
Also, I'm
system.
I won't have time to create the test you requested until the weekend. Let me
know if you still want it.
Dan
Mark Proctor wrote:
Dan Seaver wrote:
I setup a KnowledgeAgent using the example code in the JavaDoc for
KnowledgeAgentFactory to access a compiled package in Guvnor
It is my intention to build all rule packages in Guvnor (or some other
process) before deploying the packages to a production environment. I see
that I can use a KnowledgeBuilder with a PKG type resource to create
KnowledgePackages, and then initialize a KnowledgeBase with the
KnowledgePackages.
Is there any recommended Best Practice for instantiating and accessing a
StatelfulKnowledgeSession in a J2EE environment?
One use case for this type of session is it will act as a Complex Event
Processor - taking in low-level events from all over the system and throwing
complex events based on
I'm in the process of upgrading drools from 4 to 5.0 M5 and ran into a
problem with setting the conflict resolver priority order. It doesn't appear
that KnowledgeBaseConfiguration supports the ability to use ConflictResolver
or CompositeConflictResolver as the old RuleBaseConfiguration did. How
Not true...If I remove Rule 2 and change the attribute on Rule 1 to no-loop
true, I still get infinite loop. The rule will process board 5, then board
4, then back to board 5.
Michal Bali-2 wrote:
If no-loop is used with Rule 1 instead of lock-on-active, the rule will go
into an infinite
:
see no-loop or the more powerful lock-on-active.
Mark
Dan Seaver wrote:
Sounds like a very good idea. If you go forward with this, I'd love to
see
your method for solving the following type of problem:
I need to update a particular object without causing the rule to re-fire.
Say I
Charlie,
I'm not sure why your function doesn't compile as it looks fine to me. Do
you have any other details about the message you're getting from the
compiler?
In any case, you may want to consider solving the problem a different way.
In general, you should try to avoid eval statements
!
From: Dan Seaver [EMAIL PROTECTED]
To: rules-users@lists.jboss.org
Sent: Tuesday, November 4, 2008 12:50:09 PM
Subject: [rules-users] Chart notation, update, and infinite loops
I'm trying to find a good technique for updating specific facts in working
memory. What I'm currently doing
I'm trying to find a good technique for updating specific facts in working
memory. What I'm currently doing is something like this:
Rule Update Amount
when
amountFact : Fact(name == Amount)
charge : Charge()
then
Double amount = amountFact.getAmount();
Double
.
--- On Tue, 11/4/08, Dan Seaver [EMAIL PROTECTED] wrote:
From: Dan Seaver [EMAIL PROTECTED]
Subject: [rules-users] Chart notation, update, and infinite loops
To: rules-users@lists.jboss.org
Date: Tuesday, November 4, 2008, 11:50 AM
I'm trying to find a good technique for updating
specific facts
) }
end
[]s
Edson
2008/11/4 Dan Seaver [EMAIL PROTECTED]
I'm trying to find a good technique for updating specific facts in
working
memory. What I'm currently doing is something like this:
Rule Update Amount
when
amountFact : Fact(name == Amount)
charge
Unfortunately, we can't use the results of the update in the when clause of
other rules if we put it in a global.
Greg Barton wrote:
Put it in a global variable?
--- On Tue, 11/4/08, Dan Seaver [EMAIL PROTECTED] wrote:
From: Dan Seaver [EMAIL PROTECTED]
Subject: Re: [rules-users
: Fact(name == Amount)
not ChargeTracker(applied == false)
then
update(amountFact);
end
You'd probablt also have to prevent the Close Facts rule from firing
when there's just no ChargeTrackers in working memory, too.
Give that a try.
--- On Tue, 11/4/08, Dan Seaver [EMAIL
To clarify, this is more of a general best-practices question. Are their
any guidelines from experienced enterprise systems techs for deploying
applications in JBoss that rely on third party JARs.
If we deploy the JARs in our EAR, like Joe suggests, we are assured that our
app will use the
What is the best (recommended) methodology for deploying drools to the JBoss
application server? I will have some rule authoring capabilities in the
server application, so I'll need most of the jars included in the Drools
library. Should I just stick all of the jars in the server's default/lib
How do I configure Eclipse so that I can debug into rules that are being
called from code running on the JBoss server?
I can start the server in debug mode to debug into code running on the
server, but the debugger won't drop into rules. I have no problems debugging
into rules when I run the
33 matches
Mail list logo