Wait - Until date/time
Declaration
<AMWAIT ACTIVITY="date_time" TIME="text (time serial)" DAY="text (options)" DATE="text (date serial)" />
Description
Pauses execution at the current step until a specific date/time. The time specified can be set in accordance to the day this activity initially executed, the day after this activity initially executed, on a specific day of the week or on a specific date.
Practical usage
Similar to the Wait for duration activity. This activity can be used to pause task execution until an exact date / time.
Parameters
General
Property | Type | Required | Default | Markup | Description |
---|---|---|---|---|---|
Wait until | Text | Yes | (Empty) | TIME="%TimeSerial(15,08,34)%" | The specific time to wait until. This value corresponds directly with the value selected in the Day parameter. |
Day | Text (options) | No | Any Day |
|
The day or specific date to wait until in accordance with the time specified in the Wait until parameter. The available options are:
|
Day of the week | Text (options) | Yes if set to On specific day of the week | Sunday |
|
The day of the week that this step will
wait until. This parameter is available only if the Day
parameter is set to On a specific
day of the week. The available options are:
|
Specific date | Text | Yes if set to On specific date | (Empty) | DATE="%DateSerial(2010,07,15)%" | The specific date that this step will wait until. This parameter is available only if the Day parameter is set to On a specific date. |
Example
- Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
- To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.
Description
Pause task execution until "Monday" at "4:00:00 PM".
<AMWAIT ACTIVITY="date_time" TIME="%TimeSerial(16,00,00)%" DAY="dayofweek" DAYOFWEEK="monday" />