我想将以下规则转换为决策表,
when
customer:Customer(purchase > 1000)
person:Person()
then
person.markValuableCustomer(customer.id);
end
我试图将其转换为决策表,但我不确定如何声明 person 对象。正如您在 excel 中看到的那样,我为它创建了一个新的条件。
我在 CONDITION 列中尝试过,person:Person
但我收到一些错误,说必须输入条件。
那么如何在决策表中创建一个必须在 Action 列中使用的对象?
请查找excel数据,以防上传的图片打不开。
RuleTable HelloWorld1
CONDITION CONDITION ACTION
customer:CustomerInfo
customer.purchase > "$param" && customer.valid person:Person(); person.markValuableCustomer(customer.id)
Purchase
1000