Summary

In some cases you may want to insert a delay between steps in a job, or between linked jobs, or elsewhere within a job. This can be accomplished using a script, which can be inserted anywhere scripts are supported in adTempus.

More Information

The following sample script demonstrates how to insert a pause. Set the Script Language to "VB.NET". Then replace the script body with the script code below. Replace the text delaySeconds with the number of seconds you want to delay.

For adTempus 4 and later

Imports System
Imports System.Collections.Generic
Imports ArcanaDevelopment.adTempus.Shared
Imports ArcanaDevelopment.adTempus.ApplicationIntegration

Public Class UserScript
    Inherits ArcanaDevelopment.adTempus.ApplicationIntegration.UserScriptBase

    Public Overrides Function Run() As Object

		'replace delaySeconds with the number of seconds you want to wait
		adTempus.Sleep(delaySeconds * 1000)
        Return 0
    End Function
End Class

For adTempus 3

Imports System
Imports System.Collections
Imports ArcanaDevelopment.adTempus.Server

Public Class UserScript
    Inherits ArcanaDevelopment.adTempus.ScriptEngine.UserScriptBase

    Public Overrides Function Run() As Object
	adTempus.Sleep(delaySeconds * 1000)
	Return 0
    End Function
End Class