PhaseFunctionsCalculateDueDate Method

Scanjour Workflow4 Reference Manual
Calculate next dueDate for a phase based on phase durations.

Namespace:  Scanjour.Workflow4.ActivityLibrary.Phases
Assembly:  Scanjour.Workflow4.ActivityLibrary_19.0.1.0 (in Scanjour.Workflow4.ActivityLibrary_19.0.1.0.dll) Version: 19.0.1.0 (19.0.1.0)
Syntax

public static DateTime CalculateDueDate(
	int phaseNumber,
	List<TimeSpan> phaseDurations,
	List<Nullable<DateTime>> phaseDueDates,
	DateTime now,
	DateTime endDate
)

Parameters

phaseNumber
Type: SystemInt32
The phase number.
phaseDurations
Type: System.Collections.GenericListTimeSpan
The durations for the phases.
phaseDueDates
Type: System.Collections.GenericListNullableDateTime
The due dates for the phases.
now
Type: SystemDateTime
The current time to calculate the due date from.
endDate
Type: SystemDateTime
The end date of the workflow.

Return Value

Type: DateTime
The phase due date.
See Also

Reference