小编mar*_*ino的帖子

如何将注释行添加到业务操作语言中创建的业务规则中

我正在使用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'
Run Code Online (Sandbox Code Playgroud)

显然,使用通常的c ++和c#double forwardslash //在上面的例子中不起作用,所以我的问题是如何将注释添加到BAL中的规则中.

business-rules jrules

2
推荐指数
1
解决办法
2139
查看次数

标签 统计

business-rules ×1

jrules ×1