作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在我的 DRL 上定义下一个函数
function void embargarMultiplesCuentasJudicial(ArrayList<Cuenta> cuentas, Embargo embargo,BigDecimal montoTotal ,BigDecimal limite) {
//BODY
}
我收到这个错误:
Unable to resolve type ArrayList<Cuenta> while building function. java.lang.ClassNotFoundException: Unable to find class 'ArrayList<Cuenta>' ]]
但是我在 top 的文件中导入了 ArrayList 和 Cuenta
import modelo.Cuenta;
import modelo.Embargo;
import java.util.ArrayList;
最佳答案
似乎您无需提及您的 ArrayList 在参数中使用的内容。以下示例对我来说效果很好(它是自定义对象的 ArrayList):
function testFunction(ArrayList al)
{
System.err.println("Called a function with the ArrayList : " + java.util.Arrays.toString(al.toArray()));
}
关于java - Drools 不能对 DRL 中的函数参数使用泛型类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53710010/
我是一名优秀的程序员,十分优秀!