0
该问题已解决,但主类规则正在解雇。但drl文件没有形成。异常“无法解析ObjectType'产品'”
package com.sample;
import com.model.example.Product.*;
expander product.dsl
rule "success"
when
There is a Product that
-has price greater than 100
-has quantity less than 2
-has category equal to 'grocery'
then
success
end
我在我创建dsl和dslr文件的maven项目中出现异常“无法解析ObjectType'Product'”。
rule "failure"
when
There is a Product that
-has price less than 100
-has quantity greater than 2
-has category equal to 'medicine'
then
fail
end