Home Search

DriveWorks Pro 21
Run Macro In Host Specification

Send Feedback

Run Macro in Host Specification

This task will run a Specification Macro in the Host Specification.

This task will only run in Specifications that are being hosted through the Specification Host Control. Perform actions in the Host when a Specification Macro is run in the Hosted Specification.

Specifciations being run in a Specification Host Control know who their Host Specification is. Therefore the Specification Host Control name doesn't need to be specified.

Properties

Property NameDescription
Macro ArgumentProvides an optional argument to the Macro.
Macro NameThe name of the macro to execute in the Host Specification (when this Specification is being hosted in a specification host control.
TitleChanges the Title (not the name) of the task.

Example

PropertyExample RuleExample ResultMeaning
Macro Argument450450450 will be passed into the Special Variable DWCurrentMacroArgument and can then be used in the Host Specifications rules.
Macro Name"Set Control Value"Set Control ValueThe name of the Specification Macro to run in the Host Specification. Set Control Value will be run in the Host Specification.

Using the Task in a Specification Macro

This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.

Outputs are only available within Specification Macros. Currently Outputs are not available for Specification Flow.

Status Outputs

This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.

The status output navigation is as follows:

Success

  • Macro executed successfully in Host Specification.

Success with Warnings

  • N/A

Failed (one of the following occurred)

  • No Macro name provided.
  • Specification is not being hosted in a Specification Host Control.
  • No Macro in the host Specification to be executed with name provided
  • General error - see Specification Report for more information.
  • Specification is not being hosted in a Specification host Control.
  • No Macro in the host Specification to be executed with name provided
  • General error - see Specification Report for more information.