[rules-users] can i use Persistence with Drools

2010-02-09 Thread KiranP
i have a simple workflow application which has around 3-4 wait states which may even take days to complete and the server is also un-stable hence so when i run a ruleflow i there a way to persist its state and if it is there does that state allow me to reload all process states (if more than one

Re: [rules-users] Reading DRL file with large number of rules

2010-02-09 Thread kpowerinfinity
Dear all, Thanks for the responses. We would like to use a rules engine because we need it for a generalized set of rules. And they could be more complicated than a map lookup. However, it does seem from the numbers reported above that there might be some issues in reading the rule and it should n

Re: [rules-users] [planner] Questions about employee shift rostering example

2010-02-09 Thread Geoffrey De Smet
No idea why that is happening, must be some anomaly in your code. In the next version, you 'll be able to use environmentMode DEBUG, which will check for implementation bugs. With kind regards, Geoffrey De Smet Samuel Deballon schreef: > Hi Geoffrey, > > I have not found any code that insertLo

Re: [rules-users] R: [planner] taboo list question

2010-02-09 Thread Geoffrey De Smet
Just put a breakpoint in AbstractTabuAccepter and debug your app and you 'll see what actually happens. You 'll probably want to use a conditional breakpoint, so it only breaks when it's dealing with that move. Are you using completePropertyTabu? That shouldn't take a step back to where it cam

Re: [rules-users] StatefulKnowledgeSession synchronization problem

2010-02-09 Thread heldeen
I don't think this isn't fixed in trunk. I grabbed the latest drools 5.1.0 SNAPSHOT from https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/drools-5.1.0.SNAPSHOT-bin.zip, and now I get the same stack trace for the blocked thread with different line numbers. org.

Re: [rules-users] R: [planner] taboo list question

2010-02-09 Thread dmzpippo-drools
Hi Geoffrey, I tried to follow your advice, but by debugging I noticed that he still did not consider taboo the right moves. For not implementing the changes to the solver I modified the data object model. But now I have another problem, I do not understand the log.   Normally when I make a mo

Re: [rules-users] Usage Question

2010-02-09 Thread Wolfgang Laun
Hi Glenn, basically, the approach you have sketched is feasible (although the syntax would be somewhat different). It's obvious that if you insist of putting most of the logic into application classes, Drools won't be able to do much for you. The trick is to keep the business logic in the rules :

Re: [rules-users] Rules writing best practice?

2010-02-09 Thread Pegram, Macon
Regarding your comment for DAO's in the WHEN clause. I'd say that's a very strong anti-pattern. In general our approach has been to look for the absence of the fact being inserted, and move the DAO call into the THEN clause. I'm sure you're thinking, "what if my DAO doesn't return anything?"

Re: [rules-users] Flow Work Items - SOAP

2010-02-09 Thread Mauricio Salatino
The idea is to Create your own custom work items to solve your own situations. You can find test cases inside Drools trunk where some common work items are implemented. To implement your own custom work items, please review de official documentation. Greetings 2010/2/9 Swindells, Thomas > Does

[rules-users] Flow Work Items - SOAP

2010-02-09 Thread Swindells, Thomas
Does drools have a work item which is able to act as a client to a soap service? Also what other work items dose flow support and where is it documented. In eclipse I just see work items for email and log but on the main drools flow page (http://jboss.org/drools/drools-flow.html) it mentions a

Re: [rules-users] Stumped by error in rule

2010-02-09 Thread Tom.E.Murphy
Doh! Thanks, guys! I’ve done that before, too . Tom Murphy Business Process Consultant Wells Fargo HCFG - CORE Deal Decisioning Platform 800 S. Jordan Creek Parkway | West Des Moines, IA 50266 MAC: X2301-01B Office: 515 324 4853 | Mobile: 515 423 4334 This message may contain confidential and/or p

Re: [rules-users] Stumped by error in rule

2010-02-09 Thread Salaboy
Yes that is the error, just a typo - Ing. Mauricio Salatino - On Feb 9, 2010, at 8:51, "Swindells, Thomas" wrote: Have you tried: Applicant ( $ApplicantNumber : applicantNumber ) Eg your field should start with a lower case letter? Thomas From: rules-users-boun...@lists.jboss.org [m

Re: [rules-users] Stumped by error in rule

2010-02-09 Thread Swindells, Thomas
Have you tried: Applicant ( $ApplicantNumber : applicantNumber ) Eg your field should start with a lower case letter? Thomas From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of tom.e.mur...@wellsfargo.com Sent: 09 February 2010 11:44 To: rules-us

[rules-users] Stumped by error in rule

2010-02-09 Thread Tom.E.Murphy
After all this time working with Drools 5.0.1, I thought I'd figured out all the ways my syntax could fail, but this one has me stumped. Any help would be appreciated. I have the following rule: rule "RS6051.1.2_" dialect "mvel" when Applicant ( $ApplicantNumber

[rules-users] Enum in Drools 4.0.7 don't work for me

2010-02-09 Thread My tria
Hi all, I've a problem with the enumeration (combo-drop down box) in Drools 4.0.7 BRMS. I've do this steps: --> Create an enumeration type: 'ChannelInputMessage.priority.hardcore' : ['Error=error', 'Warning=warning', 'Fatal=fatal'] --> Create the DSL and so invoce the enumeration:

[rules-users] Usage Question

2010-02-09 Thread Glenn Macgregor
Hi All, I am in the process of evaluating Drools to use in a networks & systems management project. Some of the initial use cases are listed below. Use Cases: 1. Simple single parameter thresholds with configurable warning and error levels. 2. Simple multi parameter thresholds fro

Re: [rules-users] Rules writing best practice?

2010-02-09 Thread Swindells, Thomas
Sounds like a sensible document to have. The hints that I have picked up (which may or may not be accurate). Make facts as small and isolated as possible - the more fields a fact has then the more rules that may be effected if any one of those fact fields are updated. From (and even more so nes

[rules-users] Rules writing best practice?

2010-02-09 Thread Brice Figureau
Hi, Is there a rules writing best practice document somewhere? I'm asking the question because as a newbie rule writer (which doesn't know anything about the underlying drools matching algorithm), I'm wondering if my rules will behave gracefully. For instance, I (ab)use a lot the from/accumulate

[rules-users] Configuring the target/language level when compiling drools.

2010-02-09 Thread Brice Figureau
Hi Is there a way to set the target level (ie jdk 1.5) when building a rules package (especially with the drools-ant task)? Browsing the source code, I found the drools.dialect.mvel.langLevel (and same for java), but settings those in ant doesn't seem to do the trick: building the rules under jdk

Re: [rules-users] Order process example description

2010-02-09 Thread Hitoshi Ozawa
Solved this one. H.Ozawa 2010/2/8 Hitoshi Ozawa : > Would appreciate info on where I can find explanation of the order > process example. I've looked in the Rules Reference and Drool Flow and > it seems the explanation is not in there. > I'm not sure where the second window is being displayed fro