Using the “extends” functionality in drools spreadsheets?

孤人 提交于 2020-01-25 21:09:48

问题


I have a question about using a certian drools functionality in drools decision spreadsheet, that would help a lot in reducing the files and making them more readable.

I can't add more than two links so please downlad this .zip file that includes: Version1.PNG, Version1.drl, Version2.PNG, Version2.drl, Version3desired.drl

http://s000.tinyupload.com/?file_id=89653236807266194978

So here is the sample rule that we are using right now (something similar)Version1.PNG

And this when converted to a drl gives us the following 193 line long drl file. (Version1.drl)

It is ok and it works well, but after some research we found out we could use the "extends" functionality in drl.

And it works in a drl, what I would like to know is how would I use it in an Excel spreadsheet?

I designed the rule in this way: Version2.PNG

Clearly this is not how "extends" should be used in Excel, since this returns the following drl (Version2.drl)

You can see the extends is inside the "" of the rule name. Makes sense I guess, what I woudl like to know however is, how would I use it correctly? a seperate column? That didn't work, at least not the way I did it.

Does anyone know how It should be done?

The correct DRL that should be made after the Excel is converted is this: (Version3desired.drl)

Thank you for any help :) Cheers!


回答1:


There is no gain in using extends with spreadsheets in the way you describe it in your question.

I suggest that you stick to the spreadsheet layout shown in Version1.png. If data entry personnel complains about the dull repetition of 1/7/30 in oodles of rows, teach them how to join cells so they need to type each value only once.



来源:https://stackoverflow.com/questions/43277402/using-the-extends-functionality-in-drools-spreadsheets

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!