Your rule (not a query) might go like this, if you are using unordered facts:
(defrule checkAuthorization (Attempt person ?person)(action ?action)) (Authorization (person ?person)(action ?action)) => (assert (Action (action ?action))) ) Check the manual for the correct syntax for ordered facts. -W On Thu, Aug 20, 2009 at 5:24 PM, kartik tadanki <[email protected]>wrote: > Hi, > I am trying to fire a query somewhat like this : > > (defrule checkAuthorization > > Attempt (?person, ?action) > Authorization(?person, ?action) > > => > > (assert (?action)) ;// let the action happen > > ) > > Here ?m may be a fact like : Open(door) - or - Puchase (goods) > > Comments and suggestions welcome. > > Thank you, > Kartik. >
