DriveWorks Pro 15: Delay Macro Timeout [send feedback...]

Delay Macro Timeout

The Delay Macro Timeout task will delay the period before the timeout prompt is displayed on any other, potentially long running, tasks.


Property NameDescription
Delay TimeThe amount of time, in seconds, to delay the prompt for macro abortion (relative to the time that this task is ran).
TitleChanges the Title (not the name) of the task.


Looping or nested Macros in DriveWorks have an inbuilt timer that will ask the user whether to continue or stop the execution of the looping macro after 20 seconds.

This is to ensure that DriveWorks returns control to the user IF the macro is caught in an infinite loop (Hangs) or a looping macro in DriveWorks is looping indefinitely (i.e. if the loop Limit Value is never reached).

In some cases it may be expected that looping macros take longer that this default time (20 seconds) to run, in which case, the timeout period can be temporarily changed using this task.

This task will allow a delay period to be defined when running other tasks that have the potential to trigger the default timeout period in DriveWorks.

Triggering the delay

The macro timeout will be triggered when DriveWorks executes a macro. Therefore the Delay Macro Timeout task should be the first task that appears in the list of tasks within a macro.

To increase the timeout on a Specification Flow Event, Transition or Operation a Run Macro task should be added to the Event, Operation or Transition. This Run Macro task then runs a Specification Macro that contains the Delay Macro Timeout task.


When this task is added the properties are static by default.
See How To: Change A Static Property To A Dynamic Property to enable rules to be built on these properties.

PropertyExample ruleExample resultMeaning
Delay Time2 * DWVariableNumberOfTasksWith the variable NumberOfTasks equal to 10, this rule would return 20.DriveWorks will increase the timeout period for 20 seconds.

Table of Contents