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
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
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
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 :
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)]"
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
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
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
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
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
>
>> >
>> >
>> >
>> > 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
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
> 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
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
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
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
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
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
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
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
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
: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
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
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
24 matches
Mail list logo