Calculate next dueDate for a phase based on phase durations.
Namespace: Scanjour.Workflow4.ActivityLibrary.Phases
Assembly: Scanjour.Workflow4.ActivityLibrary_22.1.0.0 (in Scanjour.Workflow4.ActivityLibrary_22.1.0.0.dll) Version: 22.1.0.0 (22.1.0.0)
Syntax
public static DateTime CalculateDueDate( int phaseNumber, List<TimeSpan> phaseDurations, List<DateTime?> phaseDueDates, DateTime now, DateTime endDate )
Parameters
- phaseNumber
- Type: System.Int32
The phase number. - phaseDurations
- Type: System.Collections.Generic.List<TimeSpan>
The durations for the phases. - phaseDueDates
- Type: System.Collections.Generic.List<Nullable<DateTime>>
The due dates for the phases. - now
- Type: System.DateTime
The current time to calculate the due date from. - endDate
- Type: System.DateTime
The end date of the workflow.
Return Value
Type: DateTimeThe phase due date.
See Also