I have the following rule
------------------------------------
(defrule Fetch_Startup
=>
(foreach ?action (call (fetch FetchObject) getActions )
(assert (
(call ?action getHost).
)
)
)
)
-----------------------------
When I execute this rule I get the following error, could someone please help me out.
-----------------------------
Jess reported an error in routine Jesp.parseFact.
Message: Expected '( <atom>' .
Program text: ( defrule Fetch_Startup = > ( foreach ?action ( call ( fetch Fet
chObject ) getActions ) ( assert ( ( at line 25.
at jess.Jesp.a(Unknown Source)
a! t jess.Jesp.a(Unknown Source)
at jess.Jesp.int(Unknown Source)
at jess.Jesp.int(Unknown Source)
at jess.Jesp.else(Unknown Source)
at jess.Jesp.byte(Unknown Source)
at jess.Jesp.do(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)
-----------------------------
thanks
Richard.
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
