[rules-users] [MVEL] the data converter does not work

2011-12-13 Thread kapokfly
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);

Re: [rules-users] [MVEL] the data converter does not work

2011-12-13 Thread kapokfly
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) {

Re: [rules-users] [MVEL-Users]forum MVEL-Users have been created to discuss MVEL specific questions

2011-12-13 Thread kapokfly
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:

Re: [rules-users] [MVEL] the data converter does not work

2011-12-13 Thread kapokfly
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.

[rules-users] [MVEL]Getting Null Context Object with MVEL Inteceptor

2011-12-04 Thread kapokfly
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.

[rules-users] [MVEL]how to intercept all ASTNode without annotation?

2011-12-04 Thread kapokfly
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:

[rules-users] [MVEL]why compileExpression returns Serializable not ExecutableStatement and a few more other interface design?

2011-12-04 Thread kapokfly
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

Re: [rules-users] How to let a rule run only one time

2011-12-04 Thread kapokfly
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

[rules-users] [MVEL]user typed in free format expression and advanced property/expression handler integration issue

2011-12-03 Thread kapokfly
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

Re: [rules-users] MVEL expression

2011-12-03 Thread kapokfly
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

[rules-users] does drools support Class type parameter? myService(Class objectType)

2011-11-17 Thread kapokfly
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,

Re: [rules-users] does drools support Class type parameter? myService(Class objectType)

2011-11-17 Thread kapokfly
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:

[rules-users] MVEL, Spring EL, JXEL, which one you like/dislike, and why?

2011-11-17 Thread kapokfly
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:

Re: [rules-users] Building our own UI for Drools

2011-11-16 Thread kapokfly
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

Re: [rules-users] Building our own UI for Drools

2011-11-16 Thread kapokfly
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

Re: [rules-users] Property access on Java Beans (POJO's)

2011-11-16 Thread kapokfly
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?

Re: [rules-users] Building our own UI for Drools

2011-11-15 Thread kapokfly
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

[rules-users] Property access on Java Beans (POJO's)

2011-11-15 Thread kapokfly
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

Re: [rules-users] Property access on Java Beans (POJO's)

2011-11-15 Thread kapokfly
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

[rules-users] Building our own UI for Drools

2011-11-14 Thread kapokfly
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

[rules-users] [rule engine advantage?]Logic and Data Separation - how to archieve the transparent domain/fact object insertion?

2011-11-13 Thread kapokfly
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

[rules-users] Can't enter debug view with JBoss Developer Studio 4.1.0.GA on ubuntu

2011-11-12 Thread kapokfly
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:

[rules-users] Showstopper issues for Drools Adoption in our organization

2011-11-11 Thread kapokfly
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

Re: [rules-users] Showstopper issues for Drools Adoption in our organization

2011-11-11 Thread kapokfly
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:

Re: [rules-users] Security test cases for Drools

2011-11-10 Thread kapokfly
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:

[rules-users] How to write Drools rule basing on a changed property?

2011-11-09 Thread kapokfly
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

Re: [rules-users] How to write Drools rule basing on a changed property?

2011-11-09 Thread kapokfly
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

Re: [rules-users] How to write Drools rule basing on a changed property?

2011-11-09 Thread kapokfly
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

[rules-users] Security test cases for Drools

2011-11-09 Thread kapokfly
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

[rules-users] integrate guvnor UI into your own application

2011-11-09 Thread kapokfly
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:

Re: [rules-users] integrate guvnor UI into your own application

2011-11-09 Thread kapokfly
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

Re: [rules-users] Security test cases for Drools

2011-11-09 Thread kapokfly
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