Can someone tell why the data converter does not work at all and what is the
reason we make the data converter to value assignment statement only?
public void testDataConverter() throws Exception {
OptimizerFactory.setDefaultOptimizer(OptimizerFactory.SAFE_REFLECTIVE);
For this particular cases, if I modify the safeEquals method to be something
like this, the test case would success, what is the disadvantage to add
converters like this, any hint?
private static Boolean safeEquals(final Object val1, final Object val2)
{
if (val1 != null) {
Hi Mark,
Yes I tried, it does not work well, it told me I subscribed it successfully
but all the messages I sent to the mail list were ignored so thinking the
forum would be easier for posting/sharing/searching.
-
Ivan, your Panda, forever
--
View this message in context:
Mark, can you share your insight on this?
-
Ivan, your Panda, forever
--
View this message in context:
http://drools.46999.n3.nabble.com/MVEL-the-data-converter-does-not-work-tp3581797p3584585.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
public void testMyInterceptors() {
// Avoid MVEL OOM issue: http://jira.codehaus.org/browse/MVEL-252
// This also disables JIT compilre
// At this time, MVEL does not support per instance configuration of the
JIT due to performance constraints.
To be able to intercept against each node, I have to manually update the
expression String to register some interceptors like below, is there any
convenient API can make this enabled without adding such interceptors?
public void testMyInterceptors() {
// Avoid MVEL OOM issue:
Hi Mark,
Few questions to confirm with you, or anyone else who are familiar with
MVEL's design?
1) What is the design intention to not returning ExecutableStatement when
trying to compile an expression?
2) How the 'Safe' interface is being used? Why MVEL has both
ExecutableAccessorSafe and
you may check drools experts online documents section 5.8.1, Rule Attributes
like no-loop or activation-group or agenda-group.
-
Ivan, your Panda, forever
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-let-a-rule-run-only-one-time-tp3550555p3559127.html
Sent from
I have been trying and evaluating MVEL in past few days and in general, I
love this small kids but with 1 doubt needs ask for suggestions here.
The key scenario is, we have an UI to allow users type in free format
expression and we have a couple of custom property/variable even expression
the LHS when is not MVEL, it's DRL Pattern language, it's just that some
things we translate to MVEL for execution. Our pattner language does not
support casting, no. However MVEL itself does support casting, and you can
do that on a RHS then which is full MVEL.
Sorry that's not quite true, if you
does drools support Class type parameter?
In java:
ServiceLocator.java:
void myService(Class objectType);
In Drools:
serviceLocator.myService(Person.class)
It always complains 'unable to resolve method using strict-mode'.
Change to other type like String will get it through.
-
Ivan,
our existing java implementation using reflection which requires Class.
Are you saying invoking java code with a Class type parameter from DRL is
not supported?
-
Ivan, your Panda, forever
--
View this message in context:
Can someone share their opinion on these expression languages and what you
like, what you dislike with each?
MVEL, Spring EL, JXEL and even JBoss EL?
-
Ivan, your Panda, forever
--
View this message in context:
Thanks for the information.
Deploy multiple GUNVOR instances can't resolve our issue as we have
thousands of companies as our customer, each company will share the common
part of our applications and meantime they can customize objects/fields they
have permission with, this will be terrible if
Hi GPatel,
Maybe separate by package is something can be tried, but do you see the
functionality of what Gunvor provided is good enough for your usage?
For us it is still missing some necessary functions:
given a condition, 'a = b',
1) we would like the 'b' part could be an
Hi Mark,
Any comment with drools how we can register our own property resolver and
able to delegate the actual work back to drools default implementation if
necessary?
And why you say the MVEL is far better than Spring EL? How about JXEL? Do
you also have kind of comparison table available?
Thanks Mike, I will take a look of the Drools Expert fluent API.
We can't benefit from the Gunvor's rest API as there are some key issues we
are trying to resolve with our own UI:
1) unified user interface.
2) work with our meta data and current engineering model seamlessly,
especially we want
This is what is documented
/
Any bean property can be used directly. A bean property is exposed using a
standard Java bean getter: a method getMyProperty() (or isMyProperty() for a
primitive boolean) which takes no arguments and return something. For
example: the age property is written as age in
From the article provided I do see this, now the question is just how it
(register our own property resolver which is responsible to resolve some
special cases only, and in most cases our property resolver would delegate
the call to Drools' implementation) can be used with Drools together? Any
Due to some reasons (for example, build a consistent UI within our own
application, easier to work with our own meta data, don't want SSO etc), we
are considering to build our own UI to generate Drools rule file basing on
the user input via the UI , has anyone tried this before? Is there any
Logic and Data Separation
Your data is in your domain objects, the logic is in the rules. This is
fundamentally breaking the
OO coupling of data and logic, which can be an advantage or a disadvantage
depending on
your point of view. The upshot is that the logic can be much easier to
maintain as
Does anyone has same problem?
The debug breakpoint put on THEN part of a drools never gets entered with
JBoss Developer Studio 4.1.0.GA on Ubuntu...
-
Ivan, your Panda, forever
--
View this message in context:
Not sure if these are also your questions you might have with the rule engine
adoption, but we have seen 2 showstopper issues for drools adoption in our
organization, or it is just because we are lack of some necessary knowledge.
Issue 1) : pattern match for large data
There are cases in a
Hi Edson,
Thanks for the informative reply. Will take a look and see how we can
proceed and share our thought with you.
Best wishes...
Ivan
-
Ivan, your Panda, forever
--
View this message in context:
Thanks Thomas.
We are in the middle to design both the strategy to secure ourselves and the
test cases need to be covered, do you have some kind of references available
for us otherwise we will work out our version.
-
Ivan, your Panda, forever
--
View this message in context:
Requirement:
1)
Rule
When
Person.address.address1 is changed
THEN
2) Ideally we should have 2 objects, 1 for the old person instance, the
other for the new person instance so contextually the LHS equals to
oldPerson.address.address1 != newPerson.address.address1.
A
Thanks, when I am saying person address is changed, our app only concerns
about its initial value and its final value, any change in the middle, we
don't care.
Examples:
person.address.address1 starts with 'my addr1'
later a couple of changes were made, say its final value is 'my
Yes, that is a Map base approach I am thinking.
Now more questions:
global MapObject, Object oldObjectContext
WHEN
$person: Person()
eval(((Person)oldObjectContext[$name]).jobTitle == $person.name)
THEN
Q1: without eval, the compiler will report error
Q2: without type cast, the compiler
Not sure if anyone can share their experiences what kind of test cases on
Drools security should be developed and ensured?
As the rule is just a piece of codes in String format which can be hooked
into JVM, we can assume that might open some holes and necessary security
test cases need to be
Anyone tried to integrate the guvnor UI into your own application?
Basically we want to have a integrated, uniformed UI with our application
rather than a separate one like Drools Guvnor does...
--
View this message in context:
Nice, will give a try.
Another 2 questions you might be able to help:
1) The Guvnor UI is basing on technical models which is hard for a business
user to understand, especially when the current technical models
implementation is not so good (for example, not straightforward relationship
etc), is
Thanks Edson.
We are developing a web based UI (if possible embed guvnor into our
application) and open the ability to customers to define their own rules, so
a company policy on this won't work.
Will evaluate other concern points and have more discussions on this.
Ivan
--
View this message
32 matches
Mail list logo