使用“扩展"功能可以在以下情况中使用“扩展".流口水电子表格中的功能? [英] Using the "extends" functionality in drools spreadsheets?

查看:183
本文介绍了使用“扩展"功能可以在以下情况中使用“扩展".流口水电子表格中的功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对在drools决策电子表格中使用certian drools功能存在疑问,这将有助于减少文件数量并使文件更具可读性.

我不能添加两个以上的链接,所以请对这个包含以下内容的.zip文件进行分类: Version1.PNG,Version1.drl,Version2.PNG,Version2.drl,Version3desired.drl

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

这是我们现在正在使用的示例规则(类似) Version1.PNG

当转换为drl时,这将为我们提供以下193行长的drl文件. (版本1.drl)

可以,并且运行良好,但是经过一些研究,我们发现可以在drl中使用扩展"功能.

它可以在drl中工作,我想知道如何在Excel电子表格中使用它?

我以这种方式设计了规则:Version2.PNG

显然,这不是在Excel中应使用扩展"的方式,因为这会返回以下drl(Version2.drl)

您可以看到扩展名位于规则名称的"内.我想这是有道理的,但是我想知道的是,我将如何正确使用它?一个单独的列?那是行不通的,至少不是我这样做的方式.

有人知道应该怎么做吗?

在转换Excel之后应正确创建的DRL是:(Version3desired.drl)

谢谢您的帮助:) 干杯!

解决方案

以扩展方式在电子表格中使用扩展方式并没有任何好处.

我建议您坚持使用Version1.png中显示的电子表格布局.如果数据输入人员抱怨1/7/30行重复无聊,请教他们如何连接单元格,这样他们只需要键入一次即可.

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!

解决方案

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.

这篇关于使用“扩展"功能可以在以下情况中使用“扩展".流口水电子表格中的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆