Discussion:
[jboss-user] [JBoss Tools] - How to edit a decision table contains rule like "not (TreatResult(id==$eid))" ?
安 耿
2013-01-16 09:05:05 UTC
Permalink
安 耿 [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]
Michael Anstis
2013-01-24 10:01:10 UTC
Permalink
Michael Anstis [https://community.jboss.org/people/manstis] created the discussion

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

To view the discussion, visit: https://community.jboss.org/message/793987#793987

--------------------------------------------------------------
Do you mean an XLS decision table or a guided decision table in Guvnor?

With Guvnor 5.5.x it is possible to define "BRL Fragments" for both Condition and Action columns.

A BRL Fragment is essentially anthing that can be defined with the Guided Rule Template Editor and includes "from accumulate".
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793987#793987]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
安 耿
2013-01-28 06:41:12 UTC
Permalink
安 耿 [https://community.jboss.org/people/beliefer] created the discussion

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

To view the discussion, visit: https://community.jboss.org/message/794500#794500

--------------------------------------------------------------
Thanks a lot!I not pay more attention on the BRL Fragment,I finding it when I using it again.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/794500#794500]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
安 耿
2013-01-28 08:36:14 UTC
Permalink
安 耿 [https://community.jboss.org/people/beliefer] created the discussion

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

To view the discussion, visit: https://community.jboss.org/message/794543#794543

--------------------------------------------------------------
I mean an XLS decision table .h https://community.jboss.org/message/792254#792254 ow to edit a decision table contains rule like "not (TreatResult(id==$eid))" ?

--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/794543#794543]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Loading...