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_23.1.0.0 (in Scanjour.Workflow4.ActivityLibrary_23.1.0.0.dll) Version: 23.1.0.0 (23.1.0.0)
Syntax

public static DateTime CalculateDueDate(
	int phaseNumber,
	List<TimeSpan> phaseDurations,
	List<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