3 Replies Latest reply on Jan 28, 2013 3:36 AM by 安 耿

    How to edit a decision table contains rule like "not (TreatResult(id==$eid))" ?

    安 耿 Newbie

      I have finished a rule as follows:

       

      rule "Your First Rule"

          when
              ExpressItemTemp($eid :eid)
              not (TreatResult(id==$eid))
        $total : Double(doubleValue  >=138)  from accumulate ($eit: ExpressItemTemp(itemid in ("7096760680","3096780174","2251556006","2252191048","2254989638","2251521962","12203694113","2252461508","2588839002","2254940542","2252775410","2252775398","2254081374","2251552580","2251509802"),eid == $eid, $rel : (itemprice*itemnum-discount)),sum( $rel ) )
          then
              System.out.println($eid+":"+$total);
              insert(new TreatResult($eid));   

      end

       

       

      but,how can I doing the same work with decision table?