Re: [rules-users] Drools as Lexer / Parser (sequential data processing)

2009-09-03 Thread Wolfgang Laun
The rules for a lexer are bound to be all of the same standard pattern: rule FirstDigit salience 0 where $i : Input( $ch : character matches "\d" ) $l : Lexer( state == State.IDLE, $buf : buffer ) then $buf.setLength( 0 ); $buf.append( $ch ); modify( $l

Re: [rules-users] Running into Persistence Issues

2009-09-03 Thread SBalakrishnan
Kris, Yes, we tried both approaches, with java classes and the orm.xml file (with one java class change). . Apart from the issue we faced with embeddable, as mentioned in the earlier post (from schavan) we got our process with two simple back to back human tasks going while pointing to Oracle 1

Re: [rules-users] Problem with JPA session persistence in Drools Flow (5.0.1)

2009-09-03 Thread SBalakrishnan
Hi, Looks like this issue and related problems have become a show stopper for us. The UseCase we are trying to address is recreating inflight Human Tasks after the engine has been stopped (could be a shutdown or server error scenario). It was noticed that if we do not insert any global vari

Re: [rules-users] Different knowledge bases Vs One knowledge base with use of agent filters..?

2009-09-03 Thread Greg Barton
If models can interact then the 2nd approach has advantages, and the advantages grow the tighter the interaction. If they're independent then there's no need for the increased complexity of possible rule interaction, and the higher resource usage, especially if you're just running one model at

Re: [rules-users] Accumulator - Syntax question

2009-09-03 Thread Joseph Berdat
Hello,In attachment there are a DRL file and java test case which causes the NPE mentionned below.Thanks,RegardsException in thread "main" java.lang.NullPointerException at org.drools.rule.builder.PatternBuilder.buildRestriction(PatternBuilder.java:948) at org.drools.rule.builder.PatternBuilder.bui

[rules-users] Determining the active nodeinstance for a process

2009-09-03 Thread Garrett Conaty
I'm trying to determine 'where' a process is (not the active/completed/ etc. state), but the wait state. One way of doing this (and tracing the process execution) would be via a RuleFlowEventListener; however is there a way to query a ProcessInstance (or something?) for this information?

[rules-users] Different knowledge bases Vs One knowledge base with use of agent filters..?

2009-09-03 Thread Kumar Mynam
Hello All, We have different clinical models thru which we send patient data(HeartRate, MeanBP, etc...) and alert clinicians with different kind of alerts based on output of model. every clinical model has certain activation rules, alert rules. We are planning to use Drools for implementing th

Re: [rules-users] Drools Syntax

2009-09-03 Thread Lindy hagan
Thanks Steve for the quick response, it worked. 2009/9/3 Steve Ronderos > > You sure can do it in Drools > > rule "Rule1" > when > User( privilegeList contains "User Privilege", privilegeList contains > "Admin Privilege") > then > //Do stuff > end > rule "Rule2" > when > User(

Re: [rules-users] Drools Syntax

2009-09-03 Thread Steve Ronderos
You sure can do it in Drools rule "Rule1" when User( privilegeList contains "User Privilege", privilegeList contains "Admin Privilege") then //Do stuff end rule "Rule2" when User( privilegeList contains "Admin Privilege") then //Do stuff end rule "Rule3" when User( p

[rules-users] rule engines and data-source

2009-09-03 Thread David Boaz
This question is related to application of rule engines in general, not specifically to drools. Typically, rule engines provide an API to insert facts to working-memory and then executes the rules. In most of the applications, this data originates from a data-source. It is the application responsi

[rules-users] Drools Syntax

2009-09-03 Thread Lindy hagan
Hi, Could anyone tell me what will be the syntax to check for a list in the drl file. For ex: If the user object contains userid (userId) and list of privileges (privilegeList) values can be User Privilege or Admin Privilege. I want to create 3 rules : privilegeList.contains("User Privilege ")

Re: [rules-users] Scaling to large numbers of rules

2009-09-03 Thread Wolfgang Laun
If your 200K rules are all of the same few patterns (1, 2 and 3 attribute equalities) then expanding this into all combinations may not be the way to go. Can you provide a little more detail about whether the 1/2/3 attributes are always from the same fact type, and how many of these 1-2-3-combinat

Re: [rules-users] Scaling to large numbers of rules

2009-09-03 Thread Scott Burrows
Adam, I don't know if this would be possible for your situation but looking at the example I am wondering if you couldn't reduce your rule count through combining rules. For instance: rule "0005 - random rule" when Transaction(someId *in* (35156, **) && someOtherI

Re: [rules-users] not able to debug drools flow

2009-09-03 Thread Kris Verlaenen
I just downloaded and tested it again, and it should work I think. Did you remove the old plugin? Are you still having the same error, or another one now? When does it occur? Kris Quoting Justin King : > Hi, > > I'm afraid I downloaded the new plugin from the link you have and it > still > won

Re: [rules-users] Scaling to large numbers of rules

2009-09-03 Thread Jin, Ming
Adam, There are several ways to deal with large number of rules. For example, instead of re-compiling the whole rule set every time, you could just compile the rules that are updated/new, then adding them to the existing KnowledgeBase instance. Drools is capable to handle such usage, even dur

[rules-users] How to use enumeration in web based decision table using Guvnor

2009-09-03 Thread Johan Kumps
Hi all, I want to use a value list voor e certain fact field in a web based decision table in Guvnor. I created an enumeration in the same package as follows : 'RegistriesInvocationContext.endUser' : ['TRUE=YES', 'FALSE=NO', '=Not to be checked'] The enumeration has BooleanValues as name When d