Hello,
This rule seems to never fire:
(defrule CATCH_TITLE
(declare (salience -100))
(OrmedContext
(readyToRun TRUE)
(task "script")
(currentScript ?s & :(eq nil title))
(OBJECT ?x)
)
=>
(call ?x setScriptKeyAndTitle "XXX" "Missing script title")
)
Now, currentScript does exist and title is null (I traced it).
CurrentScript is an attribute implemented as:
public OrmedScript getCurrentScript()
{
NSLog.out.appendln("++++ READING CURRENT SCRIPT: " + currentScript);
if(currentScript != null)
NSLog.out.appendln("++++ CURRENT SCRIPT TITLE: " +
currentScript.getTitle());
return currentScript;
}
And I see it called several times:
++++ READING CURRENT SCRIPT: OrmedScript@5d7399
++++ CURRENT SCRIPT TITLE: null
It looks like the (eq nil title) is not the appropriate function?
Alex
--
Alexander Lamb
Groupe Serveurs Applicatifs
Division d'Informatique Midicale
Htpitaux Universitaires de Genhve
21 rue Micheli-du-Crest
CH-1211 Genhve 4 / Switzerland
Tel: +41-22 372.48.46 Fax: +41-22 382.86.80
[EMAIL PROTECTED] / http://www.hcuge.ch
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------