Hello,

  A quick question about defglobals, I have rules that via a defined
salience value are known to fire before the rule below.  When they fire I
bind certain values to defglobals that I have called registers.  One example
of the register is ?*register4* below which is populated before this rule
with a programId I need to be looking for.  However, when I try to access a
defglobal on the LHS of any rule (I've tried with a couple), the test does
not evaluate the way I think it should.  Is there a way I can get access to
a defglobal on the LHS of a rule?  Any help advice would be appreciated.

Sincerely,

Ryan

(defrule enrolling-physician-on-order-rule "No Enrolling physician found,
please enter one." (enrollment_detail (customer_id ?customer_id)(program_id
?program_id)(enrolling_physician_id ?enrolling_physician_id))  
(test (eq ?program_id ?*register4*)) 
=> (if (or (and (eq ?*register7* ?customer_id) 
(eq ?*register6* ?enrolling_physician_id)) (eq ?*register6* ?customer_id))
then else 
(assert (testResults (failureMsg 
(str-cat "Patients must have their enrolling physician place the order,
patient may need to be reenrolled under a new physician. " ?customer_id " "
?program_id " " ?enrolling_physician_id " "))))))

---------------------------------------------------------------------
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