Re: [rules-users] Deploy Drools in AS7 as OSGi bundles

2012-10-02 Thread Dan Seaver
, 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

Re: [rules-users] Deploy Drools in AS7 as OSGi bundles

2012-10-01 Thread Dan Seaver
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

[rules-users] Deploy Drools in AS7 as OSGi bundles

2012-09-29 Thread Dan Seaver
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

Re: [rules-users] Troubles with Oryx designer in Guvnor - jBPM 5.1.CR1

2011-06-22 Thread Dan Seaver
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

[rules-users] Troubles with Oryx designer in Guvnor - jBPM 5.1.CR1

2011-06-20 Thread Dan Seaver
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

Re: [rules-users] is it correct that rows in a sessioninfo table in df persistence never get deleted?

2011-06-08 Thread Dan Seaver
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:

Re: [rules-users] Web based decision tables

2009-06-16 Thread Dan Seaver
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

[rules-users] Boolean global issue

2009-06-15 Thread Dan Seaver
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

[rules-users] Web based decision tables

2009-06-15 Thread Dan Seaver
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

[rules-users] KnowledgeBase threadsafe?

2009-05-02 Thread Dan Seaver
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.

[rules-users] Using immutable Globals in the new Command API

2009-05-02 Thread Dan Seaver
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

RE: [rules-users] Bug in binary package generation?

2009-05-01 Thread Dan Seaver
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

[rules-users] Bug in binary package generation?

2009-04-28 Thread Dan Seaver
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:

[rules-users] Working with compiled packages

2009-02-27 Thread Dan Seaver
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

Re: [rules-users] Working with compiled packages

2009-02-27 Thread Dan Seaver
(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

Re: [rules-users] Problem using KnowledgeAgent

2009-02-19 Thread Dan Seaver
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

[rules-users] Problem using KnowledgeAgent

2009-02-18 Thread Dan Seaver
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

Re: [rules-users] Problem using KnowledgeAgent

2009-02-18 Thread Dan Seaver
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

[rules-users] Using compiled packages

2009-02-17 Thread Dan Seaver
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.

[rules-users] StatefulKnowledgeSession and J2EE

2009-02-11 Thread Dan Seaver
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

[rules-users] Conflict Resolvers in 5.0 M5

2009-02-04 Thread Dan Seaver
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

Re: [rules-users] Drools Community Clinic Feb 4th 5PM GMT

2009-01-28 Thread Dan Seaver
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

Re: [rules-users] Drools Community Clinic Feb 4th 5PM GMT

2009-01-26 Thread Dan Seaver
: 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

Re: [rules-users] function problem

2008-12-01 Thread Dan Seaver
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

Re: [rules-users] Chart notation, update, and infinite loops

2008-11-04 Thread Dan Seaver
! 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

[rules-users] Chart notation, update, and infinite loops

2008-11-04 Thread Dan Seaver
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

Re: [rules-users] Chart notation, update, and infinite loops

2008-11-04 Thread Dan Seaver
. --- 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

Re: [rules-users] Chart notation, update, and infinite loops

2008-11-04 Thread Dan Seaver
) } 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

Re: [rules-users] Chart notation, update, and infinite loops

2008-11-04 Thread Dan Seaver
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

Re: [rules-users] Chart notation, update, and infinite loops

2008-11-04 Thread Dan Seaver
: 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

Re: [rules-users] Deploy rules to JBoss server

2008-10-30 Thread Dan Seaver
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

[rules-users] Deploy rules to JBoss server

2008-10-27 Thread Dan Seaver
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

[rules-users] Debug rules running on server

2008-10-27 Thread Dan Seaver
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