JBoss Community

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

created by 安 耿 in JBoss Tools - View the full discussion

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?

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community