AMWorkflow

When a sub-workflow runs in the context of another workflow, an AutoMate dataset called AMWorkflow is automatically created. This can be used within a subsequent task contained in the "parent" workflow to determine specific characteristics regarding the sub-workflow that just ran, such as the name, unique ID and execution results.

AMWorkflow is a standard AutoMate dataset and can be used much like the datasets created by the SQL Query and Get E-Mail actions. For example, using a 'Message Box' action with the Message to Display parameter entered with:

%AMWorkflow.Name%

would display a message dialog during task execution showing the name of the sub-workflow that was executed.

Parameters

Every instance of AMWorkflow is populated with the following fields:  

Name

Data Type

Return Value

AMWorkflow.ID

String

Returns the unique ID of the sub-workflow that executed.

AMWorkflow.Name

String

Returns the assigned name of the sub-workflow object that executed.

AMWorkflow.Result

Boolean

Returns the execution result of the sub-workflow. Success returns 1, failure returns 0.

 

NOTE: A full list of AMWorkflow objects can be viewed from the Expression Builder dialog box by expanding Objects -> Errors.

See Also

Sub-Workflows

AMProcess

Datasets