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
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
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
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
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
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?
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
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(
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
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
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 ")
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
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
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
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
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
16 matches
Mail list logo