You really shouldn't be matching an entire collection of objects like that.
Think of each rule as capturing one "example" of an object in a given state,
and doing something when that object is found. So think of your first rule
like this:
rule "Check for null State"
when
obj : MyOb
MyObj is a Java object that contains:
String state;
String code;
public void addError(String message);
myObjList is an ArrayList containing from 2 to 20,000 objects
state2CodeMap is a HashMap> containing an entry
for each US state. The associated ArrayList contains a minimum of 1 en
Ok, I have just committed a fix for this issue (
https://github.com/droolsjbpm/droolsjbpm/commit/d31942554896cfc3e8acdb7f53e93f2e0de7b9f1).
I will mark the issue as resolved (not closed). Please test it when you have
a minute and let me know if is anything wrong.
Best Regards,
XXX
I have a list of officers:
public static final Map> officersPerGenre = new
HashMap>();
Where the Officer with:
String name;
Integer mininumCost;
Integer maximumCost;
in officersPerGenre I fill for each genre list of officers.
In my drools:
rule "Select Officer"
ruleflow-group "select_offi
There are implementations of JNI available too, that support the invocation
of Java code from .NET.
These bridges would (should) work but I have no experience of their use.
Google for "java .net jni" shows some options.
With kind regards,
Mike
2011/1/25 Diego López León
> Frank,
> you can tr
Frank,
you can try the IKVM project from Mono[0].
>From their site:
"Mono is able to run Java code side-by-side with .NET as well as
having Java and .NET object interoperate with each other"
Let us know if that worked.
Regards.
[0]:http://www.mono-project.com/Java
On Tue, Jan 25, 2011 at 12:04
Hi all,
Suppose that you have a rule engine that needs to be embedded on the machine
and that there is no way to call the rules as a service from a centralized
server, what approach would one have to choose to make Drools and .NET work?
The rulke engine will have to be cached to improve performa
Thank you. This worked
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Implementing-multiple-and-or-conditions-tp2328123p2329175.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users
You must separate constraints with a comma:
MyEvent(id == "Backlogged ", source == “SDCS1Site1”)
Do not surround a simple pattern with parentheses:
MyEvent(id == "83020402")
It should be possible to write your rule according to:
(P(...)
or
P(...)
or
P(...))
P(...)
P(...)
Hi, Thanks for your reply.
Actually it is lot more complex. Let me present it this way
(
(MyEvent(id == "83020402"))
or
MyEvent()
(Number( doubleValue >= $numberofISGCDBnodes*.50 )
from accumulate( MyEvent( id == 8302
The operator for test for equality is "==", not "=".
It#s better to write this so:
$E: ( MyEvent(prop == "1" || == "2" || == "3" )
MyEvent(prop = "4")
MyEvent(prop = "5")
-W
On 25 January 2011 11:52, Ayush wrote:
>
> Hi, I've to write a rule in which there are multiple and, or conditions.
> Li
Hi, I've to write a rule in which there are multiple and, or conditions. Like
(
MyEvent(prop = "1")
or
MyEvent(prop = "2")
or
MyEvent(prop = "3")
)
and
MyEvent(prop = "4")
and
MyEvent(prop = "5")
I tried to implement it like
$E: (
MyEvent(prop = "1")
or
Indeed! The decision table was something pretty obscure to me. Now it is
much clearer!
Do you know if that UI will be available in the Drools Eclipse plugin?
In any case thanks for sharing that with us!
Bruno.
plugtreelabs a écrit :
> Awesome work Mike.
>
__
Hi all,
I recently joined this group. We are using Drools flow to create some
workflows to automate some of the tasks. Would like to have some advice on
how we can use python instead of Java or Mvel. Do we have some good
tutorials/articles on this. In Drools flow we have nodes like 'Script' ,
'Con
14 matches
Mail list logo