【发布时间】:2012-01-23 17:35:56
【问题描述】:
我正在使用 JRules 来编写业务规则。我想将 cmets 添加到规则中,如下面非常简单的示例所示。我意识到该规则有一个文档部分,但这不是我需要的
// 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# 双正斜杠 // 在上面的示例中不起作用,所以我的问题是如何将 cmets 添加到 BAL 中的规则中。
【问题讨论】:
标签: business-rules jrules