Goto Action—Setting Properties

The Goto action is used to cause a task to be executed from a labeled point. You first use the Label action to place a label at some point in the task. You then place the Goto step at the point where you want the task to shift sequence and start from the labeled point.

Use Goto steps with caution, as multiple Goto steps can make a task very complicated and difficult to debug. In most cases it is preferable to create a sub-task and use a Start Task action to start the sub-task. In many programming languages, the use of even one Goto statement is considered bad programming practice.

To set Goto properties

  1. From the Task Builder Available Actions pane, open the Flow folder and double-click the Goto action or drag it into the Steps pane.

  2. In the Label to goto box, select the label to go to.

  3. To set the Description tab properties, refer to Description Tab Options.

  4. To set the Error Causes and On Error tab properties, refer to Step Error Handling.

  5. When finished, click OK to save settings and close the properties dialog window.

See Also

About Actions

Adding Task Steps

Label Action-Setting Properties

Label Action

Goto Action