Drools Flow - Python how?
by Jins Thomas
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' ,
'Converge', 'Diverge' etc. Currently i could we can either use MVEL or Java,
but from the internet we are getting a feel like we can use even python for
this.
Would some body please advice
Br
Jins Thomas
15 years, 1 month
Real World Examples Wanted!!!!!!
by Mark Proctor
We often get complaints about not enough real world examples in Drools.
We have a large community now, so surely a few of you must be able to
write up examples based on your work? So please, please, please, please
take the time to help us here.
Thanks
Mark
15 years, 1 month
Problem with or condition
by Ayush
Hi, I'm getting problem while executing rule with or condition.
My rule is like
MyEvent () from entry-point MyStream
Number($objCountForOne : doubleValue) from accumulate( MyEvent(prop1 ==
"One") over window:time(1m) from entry-point MyStream,count())
eval($objCountForOne > getMyNodeCount()*0.35)
or
MyEvent () from entry-point MyStream
Number( $objCountForTwo : doubleValue) from accumulate( MyEvent(prop1 ==
"Two"), count())
eval($objCountForTwo >= getMyConnectionCount()*0.40)
The above rule both conditions run well when executed separately but when I
merge them using or they don't work well. When I inserted the event for 1st
condition it does not gets executed because the last eval line in 2nd
condition i.e. "eval($objCountForTwo >= getMyConnectionCount()*0.40)" is
false.
Now I have to run them like if conditions in java i.e. if(1st == true || 2nd
== true) then do my work.
Please let me know how can I solve it?
Thanks in advance.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Problem-with-or-condi...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 1 month
Problem implementing dynamic regular expression
by Ayush
Hi, I'm trying to implement regular expression using matches. The regular
expression is dynamic and retrieved from a java function. In my first
approach I'm tried to call the java function for matches like
MyEvent(prop1 matches "This event is for"+getPropName()+" and is sent to
blah blah blah")
Now when I try to execute the above expression it gives error as illegal
statement (I even tried back-slash to escape it). It also gives error like
"Expecting ')' instead of '(' ".
So I declared a function which takes two string parameters and returns me
the concatenated one.
function String concatenate(String str1, String str2) {
return str1+str2;
}
$matchStr : String() from concatenate("This event is for",getPropName()+"
and is sent to blah blah blah")
Now when I'm using this variable in my rule it is not getting executed.
Please note that there is no problem in regex because when I put the regex
as string (i.e. without using any function to retreive it) it works fine.
MyEvent(prop1 matches $matchStr)
Can anyone please let me know how can I solve it. Thanks in advance.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Problem-implementing-...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 1 month
JDK1.5 Future for Drools and jBPM
by Mark Proctor
http://blog.athico.com/2011/01/jdk15-future-for-drools-and-jbpm.html
Dropping JDK1.5 is something that rears it's head from time to time, and
we know we have to address it sooner or later.
We recognise that the majority of people would like to see JDK1.5
dropped, but there are still a few large critical enterprises using
Drools and jBPM on JDK1.5.
Technically for us there isn't a huge advantage, and certainly no "must
have" feature, in the same way that moving from 1.4 to 1.5 was. However
it does make the project easier to manage: less runtime targets to test
against and we don't need to double check people are putting JDK1.6 only
classes in Drools and jBPM.
My personally opinion is that we need a widest audience possible for the
up coming jBPM5 release and we still have some critical things I'd like
to see in Drools first. So personally I'd like to wait until the last
few months of this year, say October, before dumping JDK1.5; which would
allow for a very late 2011 release or very ealry 2012 release that is
JDK1.6+.
What do people think? Comments welcome, I've also added a poll on the
right side.
Mark
15 years, 1 month
Interfacing with gwt-console
by Jim West
Hi all,
I have business process running inside the gwt-console and I need to be able
to send facts and start it from another application (a remote client). Does
gwt-console expose an API over Rest, SOAP, other, for this purpose?
Drools Server exposes such interface, but using it I will lose the
possibility to see graphically the business process evolving (I believe this
functionality is only inside the gwt-console).
Your help/advice is much appreciated.
Jim
15 years, 1 month