not in drools project, just in Optaplanner planning project. Optaplanner with drools engine!!! use spring boot service classs in drools project
here more info about this question code structure
here service's function in drl file
rule "RuleLimosis"
when
ViewPatient($RevId:Id,$PatientID:PatientID, PatientID != null)
then
boolean limosisFlag = viewPatientService.getChecklistLimosis($RevId);
System.out.println("empty stomach status: " + limosisFlag);
end
runtime info use @ProblemFactProperty in planning solution class
1 System.out.println("in java file viewPatientService is: " + viewPatientService);
2 System.out.println("in drl one file viewPatientService is: " + viewPatientService);
code 1 have correct value code 2 null