[rules-users] Drools Decision Table, multiple actions accumulation

FrankVhh frank.vanhoenshoven at agserv.eu
Mon Jun 4 02:54:19 EDT 2012


Hi all,

There is a small remark/comment that pops into my head when reading this.
Giving the effort that has already been spent on the issue, this might come
a bit late to you, but whatever...

Wouldn't it also be possible to keep your excel decision table exactly the
way it originally was (everything in one column) and then exploit the excel
capabilities?

I.e. 
1) Insert two extra columns (one for the key, one for the value). 
2) Do not annotate them with CONDIITION! 
3) Create a function in your initial column that would compose the value of
the two new columns. 
4) Hide the real condition column.

I have not yet tried this myself, but it might work.

regards,
Frank


manstis wrote
> 
> But each column became a separate DRL fragment ;) but glad to read you got
> it working :)
> 
> One for me to remember. Thanks Vincent
> 
> sent on the move
> 
> On 2 Jun 2012 01:47, "chsekhar" <chandrasekhar.a@> wrote:
> 
>> I was able to merge data from multiple ACTION columns in decision table.
>>
>> First ACTION column:
>> (kept all keys as comma separated in single column. we can have it in
>> individual columns)
>> KeyPojo keys = new KeyPojo($1,$2,$3);
>>
>> Second ACTION column:
>>  $myMap.put(keys, $param);
>>
>> This worked great. Thanks Vincent for your answer.
>>
>> --
>> View this message in context:
>> http://drools.46999.n3.nabble.com/Drools-Decision-Table-multiple-actions-accumulation-tp4017733p4017740.html
>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>> _______________________________________________
>> rules-users mailing list
>> rules-users at .jboss
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
> 
> _______________________________________________
> rules-users mailing list
> rules-users at .jboss
> https://lists.jboss.org/mailman/listinfo/rules-users
> 


--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Decision-Table-multiple-actions-accumulation-tp4017733p4017742.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list