Hello everybody,
I have the following rule in my program
--------------------------------------------------
(defrule Fetch_Startup
=>
(foreach ?action (call (fetch FetchObject) getActions )
(assert (stat.
(call ?action getHost).
)
)
)
)
----------------------------------------------------
when I execute this rule I get the following error.
----------------------------------------------------
Jess reported an error in routine call
while executing (call (fetch FetchObject) getActions)
while executing (foreach ?action (call (fetch FetchObject) getActions) (
assert (MAIN::stat. (call ?action getHost) .)))
&nb!
sp; while executing defrule MAIN::Fetch_Startup
while executing (run).
Message: No method named 'getActions' found in class java.lang.String.
Program text: ( run ) at line 104.
at jess.w.call(Unknown Source)
at jess.ei.a(Unknown Source)
at jess.Funcall.execute(Unknown Source)
at jess.FuncallValue.resolveValue(Unknown Source)
at jess.FuncallValue.listValue(Unknown Source)
at jess.r.call(Unknown Source)
at jess.ei.a(Unknown Source)
at jess.Funcall.execute(Unknown Source)
at je!
ss.Defrule.try(Unknown Source)
&nb!
sp; at jess.Activation.if(Unknown Source)
at jess.a8.a(Unknown Source)
at jess.a8.for(Unknown Source)
at jess.Rete.run(Unknown Source)
at jess.a0.call(Unknown Source)
at jess.ei.a(Unknown Source)
at jess.Funcall.execute(Unknown Source)
at jess.Jesp.a(Unknown Source)
at jess.Jesp.case(Unknown Source)
at jess.Jesp.parse(Unknown Source)
at jess.Main.execute(Unknown Source)
at jess.Main.main(Unknown Source)
The 'FetchObject' class has a method called getActions, but for some reason JESS is refering
to String.
----------------------------------------------------
Could someone please help me out.
thanks
Richard.
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
