中时出错尝试将值插入到Hashmap()中,但我的测试用例失败时尝试将结果的累加函数($ drl文件中的总数)作为Hashmap的值。我也试过Integer.valueOf($总数),而不是$总数没有运气。 我的DRL文件包含: rule "calculate total per item"
no-loop
when
$o : Order($lines : orde
我有一个包含一个Collection或一组值的数组。 我想写这种形式的规则: rule "listRule"
when
$first: from list1() and $first!= "a" and $first!="b"
$second: from list1() and $second!="c" and $second != "z"
then
System.out.printl
该问题已解决,但主类规则正在解雇。但drl文件没有形成。 package com.sample;
import com.model.example.Product.*;
expander product.dsl
rule "success"
when
There is a Product that
-has price greater than 100
-h