[jboss-user] [JBoss Tools] - How to edit a decision table contains rule like "not (TreatResult(id==$eid))" ?
安 耿
do-not-reply at jboss.com
Wed Jan 16 04:05:05 EST 2013
安 耿 [https://community.jboss.org/people/beliefer] created the discussion
"How to edit a decision table contains rule like "not (TreatResult(id==$eid))" ?"
To view the discussion, visit: https://community.jboss.org/message/792254#792254
--------------------------------------------------------------
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
[https://community.jboss.org/message/792254#792254]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130116/1d44c403/attachment.html
More information about the jboss-user
mailing list