|
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
- The sample AML code below can be copied and pasted directly into the Steps Panel of the Task Builder.
- Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.
Description
Pause task execution until "Monday" at "4:00:00 PM".
<AMWAIT ACTIVITY="date_time" TIME="%TimeSerial(16,00,00)%" DAY="dayofweek" DAYOFWEEK="monday" />