Re: [rules-users] Not able to call parameterizied Java method in LHS

2011-09-29 Thread Tinku
I am facing one more issue with calling a method in lhs of the rule .. When I call a method as mentioned below ('getValue' is the method in class 'customObject' and 'numberofObjects' is method in class 'AnotherObject') ; the drl file has problems in saving in eclipse. The error says like 'Multip

Re: [rules-users] Not able to call parameterizied Java method in LHS

2011-09-28 Thread Tinku
rhs part worked ok now.. I am facing one more issue with calling a method in lhs of the rule .. When I call a method as mentioned below ('getValue' is the method in class 'customObject' and 'numberofObjects' is method in class 'AnotherObject') ; the drl file has problems in saving in eclipse. The

Re: [rules-users] Not able to call parameterizied Java method in LHS

2011-09-27 Thread Edson Tirelli
Assuming callA() and callB() are methods on $C, you are missing a comma in between them. modify ($C) { callA("UNIX"), callB("PERL") } Edson 2011/9/27 Tinku > I try to add two java method calls in the RHS of the rule .It doesnot allow > me to save the DRL file in eclipse .It complaints

Re: [rules-users] Not able to call parameterizied Java method in LHS

2011-09-27 Thread Tinku
I try to add two java method calls in the RHS of the rule .It doesnot allow me to save the DRL file in eclipse .It complaints "Multiple Markers at this line". However ,commenting one of the method in the RHS works fine ,with-out any issue.. Could you pls help me in this.. Example : when $B : c

Re: [rules-users] Not able to call parameterizied Java method in LHS

2011-09-27 Thread Tinku
There was an issue within the class that was used to insert the facts..Hence the value was not inserted properly.. The result of the printing the value is now as 'ORACLE'.. Thanks. -- View this message in context: http://drools.46999.n3.nabble.com/Not-able-to-call-parameterizied-Java-method-in-

Re: [rules-users] Not able to call parameterizied Java method in LHS

2011-09-27 Thread Wolfgang Laun
What do you get when you omit the eval and print the return value of $B.getValue("Database")? -W On 27 September 2011 15:14, Tinku wrote: > I tried to invoke parameterizied call to the java method and tried to > compare > the return parameter from the method in the 'eval' function..The rule is >

[rules-users] Not able to call parameterizied Java method in LHS

2011-09-27 Thread Tinku
I tried to invoke parameterizied call to the java method and tried to compare the return parameter from the method in the 'eval' function..The rule is not getting executed .. I am not sure if it is unable to invoke the java method and fetch the return parameter or there is an issue with rule synta