Hello,

Here is a rule (which obviously does not work) which represents the general
idea of what I am trying to do:

(defrule component1Rule
    (userSession ?x)
    (?x (currentTaskName "COMPLETER"))
    =>
    (call ?x setLeftComponentName "CompleterComponent")
)

(defrule component2Rule
    (userSession ?x)
    (?x (currentTaskName "SCRIPT"))
    =>
    (call ?x setLeftComponentName "TasksComponent")
)

Here userSession is an instance (definstance) of a Session class which is
dynamic (e.g. Modifying currentTaskName is notified).

Since I am running an application server, a single Rete engine is shared by
many users (one user = one userSession).

The rule is "match a userSession whose currentTaskName = "COMPLETER" and if
found, call this userSession to set an attribute to a given value (here
leftComponentName).

Not quite sure how to achieve this? Didn't find anything in the
documentation and in the pumps example (which is the closest) there is a
match on (OBJECT ?x) but it is a match on an attribute of the object and not
the object itself which is stored in the ?x.

Thanks,
-- 
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 372.61.98
[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]
--------------------------------------------------------------------

Reply via email to