Start/Stop Task Action

Description

Starts another Workflow using the Workflow name specified. Public variables from the parent Workflow are available to the newly started Workflow.

Used to start a second Workflow from a "parent" Workflow. Especially useful for code reuse so the same code does not have to be written over and over again - rather one Workflow can be created and called repeatedly.

Declaration

<AMSTARTWTASK MANAGEDTASK="Workflowname" TASKFILE="text">

<AMSTOPTASK>

Example

<AMSTARTTASK MANAGEDTASK="Say the time">
<AMSTARTTASK TASKFILE="c:\My Workflows\speakthetime.aml">

<AMSTOPTASK>

General Tab Parameters

Task file to start: Specifies the name of the Workflow to start. The Workflow must exist in the current computer's Workflow list at runtime or the step will fail. Changing the Workflow name or parent folder name later can break this linkage once created. Click the Expression Builder icon to build and insert expression or variable.

Text, Optional
MARKUP:
a) MANAGEDTASK="Talking Clock"
b) MANAGEDTASK="Foldername\Talking Clock"

 

Text, Optional
MARKUP: WorkflowFILE="C:\Documents and Settings\All Users.WINDOWS\Documents\My Automated Workflows\closeallwindows.aml"

Notes

No parameters are available for this action.

See Also

Create Variable