Controlling the start time of an Optiva workflow

The CurrentExternalCalculateDates method is used for Optiva workflows. This method is only used for the WIP ID that is currently running.

This method only requires the date that you are using for the start time. The DataSet is not required.

In this example, the start date is set to the Effective Start Date of the project; then the WIP ID is reassigned to FRADMIN.


Dim sStartDate As Object = ObjProperty("EFF_START_DATE", "", "")
If IsBlank(sStartDate) = 1 Then
Messagelist("The project start date has not been set. Therefore the 
workflow cannot be started.")
Return 9111
End If

Dim arglist As datetime = Ctype(sStartDate, DateTime)
ObjMethod("", "", "CurrentExternalCalculateDates", arglist)

Reassign("FRADMIN", "", "")