Re: [rules-users] unable to resolve method using strict-mode:

2013-08-21 Thread Roopa
You are right. All the 4 DRLs were in the same package. But updateQuery() had different method signature in all DRL files. I gave different package names and the same updateQuery() name. It worked. Thank You for your help. Tried function overloading, giving different return type and different par

Re: [rules-users] unable to resolve method using strict-mode:

2013-08-20 Thread Davide Sottara
Are the DRLs declaring the same package, or are they different? Functions are not supported as well as other elements such as rules, queries and declared types, so I'm not sure if overloading and cross-package invocation is supported (and 5.x may be different from 6.x due to some refactoring in the

Re: [rules-users] unable to resolve method using strict-mode:

2013-08-19 Thread Roopa
Thanks Davide Sottara. I really appreciate your response on this. In my application, I have 4 DRL files which are not related. They correspond to their own functionalities and their own logic. I found that the method name updateQuery() is creating problem. I had used the same method name in other

Re: [rules-users] unable to resolve method using strict-mode:

2013-08-16 Thread Davide Sottara
I could not reproduce the bug.. We'd need to see the full DRL and code to get a better idea of the possible causes. For example, are you sure you have all the necessary imports? Could you also try to split the call in two and see if it works, as follows? ... $s : String() from updateQuery $o :

Re: [rules-users] unable to resolve method using strict-mode

2013-08-16 Thread Roopa
Hi, Even I am struck in the same kind of problem. "RuleBaseTask failed: [Error: unable to resolve method using strict-mode: com.nph.radar.drools.UpdateQuery.updateQuery(com.nph.radar.rule.operands.Query, com.nph.radar.rule.operands.AOCCRuleKnobConfig, java.lang.String, org.apache.log4j.Logger)]"

Re: [rules-users] unable to resolve method using strict-mode:

2013-08-16 Thread Roopa Musuley
Can any one help me with this issue in Drools 5.5.0. I am trying to call a method in when clause, it's throwing this error while building using ant. No error with eclipse. "RuleBaseTask failed: [Error: unable to resolve method using strict-mode: com.nph.radar.drools.UpdateQuery.updateQuery(com.np

Re: [rules-users] unable to resolve method using strict-mode:

2013-08-15 Thread Roopa
function String updateQuery(Query querie, AOCCRuleKnobConfig aoccRuleKnobConfig, String advPgmExclude, Logger log){ return "querie"; } -- View this message in context: http://drools.46999.n3.nabble.com/unable-to-resolve-method-using-strict-mode-tp4025571p4025572.html Sent from the Drools: U

Re: [rules-users] unable to resolve method using strict-mode

2012-09-13 Thread himansu.nayak
thx davide try the same and it works. getApplicationItem() / getAdmissionItem() / getAttachment() are static functions maintain in my utility package. - Thanks... Himansu -- View this message in context: http://drools.46999.n3.nabble.com/unable-to-resolve-method-using-strict-mode-tp4019699

Re: [rules-users] unable to resolve method using strict-mode

2012-09-13 Thread Wolfgang Laun
On 13/09/2012, Davide Sottara wrote: > > p.s. you can probably remove that eval at the end of the rule... > you could write e.g. ApplicationItem( this != null ), but even this is not Do you really mean to say that AnyClass( this == null ) would ever make sense? ;-) -W

Re: [rules-users] unable to resolve method using strict-mode

2012-09-13 Thread Davide Sottara
Where are those getApplicationItem() / getAdmissionItem() / getAttachment() functions defined? Davide p.s. you can probably remove that eval at the end of the rule... you could write e.g. ApplicationItem( this != null ), but even this is not needed since "from" will automatically filter out any nu

Re: [rules-users] unable to resolve method using strict-mode

2009-10-08 Thread cdelgado
> >> > >> > >> > >> > It's compiled and working on Windows without any casting :) >> > Check out the test project I attached. >> > You will see that the rule will compile from web application (Windows >> > only) or with

Re: [rules-users] unable to resolve method using strict-mode

2009-10-05 Thread Vladimir Perlov
try this: System.setProperty("drools.dialect.mvel.strict", "false"); it works for me :) > Date: Mon, 5 Oct 2009 00:08:48 -0700 > From: cdelgad...@gmail.com > To: rules-users@lists.jboss.org > Subject: Re: [rules-users] unable to resolve method using stric

Re: [rules-users] unable to resolve method using strict-mode

2009-10-05 Thread cdelgado
> Vladimir > > Date: Sat, 3 Oct 2009 14:36:10 +0200 > From: wolfgang.l...@gmail.com > To: rules-users@lists.jboss.org > Subject: Re: [rules-users] unable to resolve method using strict-mode > > The Java code in the archive just compiles a .drl file, and there's no > r

Re: [rules-users] unable to resolve method using strict-mode

2009-10-04 Thread Vladimir Perlov
From: wolfgang.l...@gmail.com To: rules-users@lists.jboss.org Subject: Re: [rules-users] unable to resolve method using strict-mode The Java code in the archive just compiles a .drl file, and there's no reason this should fail. The class cast would only appear to be missing after a Map

Re: [rules-users] unable to resolve method using strict-mode

2009-10-03 Thread Wolfgang Laun
ded JSF library. > > http://download.java.net/glassfish/v3/promoted/ > > > -- > Date: Fri, 2 Oct 2009 19:48:17 +0200 > > From: wolfgang.l...@gmail.com > To: rules-users@lists.jboss.org > Subject: Re: [rules-users] unable to resolve method usin

Re: [rules-users] unable to resolve method using strict-mode

2009-10-02 Thread Vladimir Perlov
luded JSF library. http://download.java.net/glassfish/v3/promoted/ Date: Fri, 2 Oct 2009 19:48:17 +0200 From: wolfgang.l...@gmail.com To: rules-users@lists.jboss.org Subject: Re: [rules-users] unable to resolve method using strict-mode Map() in the .drl file is bound to be interpreted as Map so

Re: [rules-users] unable to resolve method using strict-mode

2009-10-02 Thread Wolfgang Laun
ctory.newKnowledgeBuilder(config); > > Please advise me. > > By the way I'm using drools 5.0.1 > > > -- > Date: Fri, 2 Oct 2009 18:30:25 +0200 > From: wolfgang.l...@gmail.com > To: rules-users@lists.jboss.org > Subject: Re: [rules-use

Re: [rules-users] unable to resolve method using strict-mode

2009-10-02 Thread Vladimir Perlov
tion(); config.setProperty("drools.dialect.mvel.strict", "false"); kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(config); Please advise me. By the way I'm using drools 5.0.1 Date: Fri, 2 Oct 2009 18:30:25 +0200 From: wolfgang.l...@gmail.com To: rules-users@lists.jboss.org Subject: Re: [rules-us

Re: [rules-users] unable to resolve method using strict-mode

2009-10-02 Thread Wolfgang Laun
2009/10/2 Vladimir Perlov > > > Here is the rule that failed to compile on Linux: > > rule "TEST" > dialect "mvel" Send > when > map : Map() > $map : Map() or omit '$' in the consequence. -W > then > System.out.println($map.get("x").getSomeMethod()); > end

Re: [rules-users] unable to resolve method using strict-mode

2009-06-23 Thread Edson Tirelli
009 2:07 AM > *To:* Rules Users List > *Subject:* Re: [rules-users] unable to resolve method using strict-mode > > > > > What versions of Drools and MVEL are you using? > >[]s >Edson > > 2009/6/22 Chris Richmond > > I cannot seem to call a

RE: [rules-users] unable to resolve method using strict-mode

2009-06-23 Thread Chris Richmond
Users List Subject: Re: [rules-users] unable to resolve method using strict-mode What versions of Drools and MVEL are you using? []s Edson 2009/6/22 Chris Richmond I cannot seem to call a static method on one of my classes and keep getting this error: [Error: Failed to

RE: [rules-users] unable to resolve method using strict-mode

2009-06-23 Thread Chris Richmond
:07 AM To: Rules Users List Subject: Re: [rules-users] unable to resolve method using strict-mode What versions of Drools and MVEL are you using? []s Edson 2009/6/22 Chris Richmond I cannot seem to call a static method on one of my classes and keep getting this error: [Error

Re: [rules-users] unable to resolve method using strict-mode

2009-06-23 Thread Edson Tirelli
What versions of Drools and MVEL are you using? []s Edson 2009/6/22 Chris Richmond > I cannot seem to call a static method on one of my classes and keep > getting this error: > > > > [Error: Failed to compile: 1 compilation error(s): > > - (1,44) unable to resolve method using stric

Re: [rules-users] unable to resolve method using strict-mode

2009-06-23 Thread Andreas Kohn
On Mon, 2009-06-22 at 11:47 -1000, Chris Richmond wrote: > I cannot seem to call a static method on one of my classes and keep > getting this error: > > > > [Error: Failed to compile: 1 compilation error(s): > > - (1,44) unable to resolve method using strict-mode: > com.aps.syslog.logging.ma