Hello,
I am trying to use some constants declared in a Java class in my Jess
rules. I achieve this by defining a global variable:
(defglobal ?*constant1* = (get-member Constants CONSTANT1))
How can I use this constant in a rule? I want to do something like:
(defrule rule
"Rule"
(constant ?*constant1*)
=>
(printout t "Constant Value -> " ?*constant1* crlf)
)
However, for obvious reasons, if I assert a fact (constant X), the
printout
is "Constant Value -> X" etc. How else can I define a constant which I
can
then use in LHS?
thanks,
-Bijal Modi
---------------------------------------------------------------------
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]
---------------------------------------------------------------------