correct constraint based on the scheduling mode. To do that, the scheduling mode, start and end date are needed as parameters. FEA: ItEr76S04BugFixing