NULL 値のチェック
エンティティーが NULL か、NULL でないかをルール内でチェックする条件を組み込むことができます。
エンティティーが NULL かどうかをテストするには、if <entity> is null then... 構文を使用します。例えば、以下のルールでは、the customer エンティティーに対する関係が存在しないかどうかがチェックされます。
when a purchase event occurs , called 'the purchase'
if
the customer of 'the purchase' is null
then
print "There is no customer!";