【发布时间】:2021-03-11 11:13:22
【问题描述】:
不在drools 项目,只是在Optaplanner 规划项目。 带有流口水引擎的 Optaplanner !!! use spring boot service classs in drools project
这里有更多关于这个问题的信息 code structure
这里服务在drl文件中的功能
rule "RuleLimosis"
when
ViewPatient($RevId:Id,$PatientID:PatientID, PatientID != null)
then
boolean limosisFlag = viewPatientService.getChecklistLimosis($RevId);
System.out.println("empty stomach status: " + limosisFlag);
结束
运行时信息在规划解决方案类中使用@ProblemFactProperty
1 System.out.println("在java文件中viewPatientService是:" + viewPatientService);
2 System.out.println("在drl中一个文件viewPatientService是:" + viewPatientService);
代码 1 的值正确 代码2为空
【问题讨论】:
标签: spring spring-boot optaplanner