gpt4 book ai didi

business-rules - 如何将注释行添加到以业务操作语言编写的业务规则

转载 作者:行者123 更新时间:2023-12-04 04:31:46 24 4
gpt4 key购买 nike

我正在使用 JRules 编写业务规则。我想向规则添加注释,如下面非常简单的示例所示。我知道该规则有一个文档部分,但这不是我所需要的

// comments needed here

definitions
set 'an existing customer' to a customer
where the category of 'an existing customer' is "gold"

if
the city of 'an existing customer' is "London"

then
give a 5% discount to 'an existing customer'

else
// and more comments needed here
give a 10% discount to 'an existing customer'

显然,使用通常的 c++ 和 c# 双正斜杠//在上面的示例中不起作用,所以我的问题是如何将注释添加到 BAL 中的规则。

最佳答案

很遗憾,您无法在规则中添加评论。如果语言表达得当,规则应该是不言自明的。

但是如果您想记录每个规则的业务理由,您可以使用文档功能。

关于business-rules - 如何将注释行添加到以业务操作语言编写的业务规则,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8976023/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com