A Timefold engineer walks through implementing a complex conditional labor law constraint: an employee must not exceed 40 hours every 7 days if they worked a night shift. The solution uses rolling windows to group shifts, the `ifExists` constraint node for conditional evaluation, and a clean JSON-based API design that is
Sort: