I have saved a Java Constraint Stream as a varchar column in my database:
constraintFactory.forEach(Shift.class)
.filter(shift -> !shift.hasRequiredCategories())
.penalizeConfigurableLong(CONSTRAINT_REQUIRED_CATEGORY_FOR_A_SHIFT, Shift::getLengthInMinutes);
Is there a way to add, on runtime, the above constraint, fetched from database, to the existing constraints written on EmployeeRosteringConstraintProvider class?
Actually, if it a way to convert the Java Constraint Stream fetched from database as a String, on runtime, to a Constraint object.
I tried to convert the Java Constraint Stream fetched from database as a String to a Constraint object without any success
John Dks is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.