Creating a Subtask Step

A subtask step is a type of Task UI step that allows you to start a separate task in a task. You can use it to do the following:

  • Reuse common sequences that are required for multiple tasks to decrease development and maintenance cost.

  • Modularize a task. If a task is so large that it becomes difficult to develop and manage, then you can separate it into smaller subtasks.

  • Separate a large task into multiple tasks to improve readability of the task in the Task Editor.

  • Maintain a clean, consistent, and intuitive programming model.

For more information, see Using a Transient Business Component in a Subtask.

To create a subtask step

  1. Make sure the subtask that the subtask step calls is defined correctly.

    For more information, see Characteristics of a Subtask.

  2. Select the Subtask step from the Palettes pane, then drag and drop it on the canvas.

    For more information, see Adding a Step to a Task.

  3. In the Subtask Name property (in the Properties pane), select the subtask that this subtask step calls.

  4. (Optional) Create input arguments or output arguments for the subtask.

    For more information, see How the Type Field Affects Other Fields in the MVPW.

Using the Exception Branch in a Subtask

You can use an exception branch in a subtask. You cannot use an exception branch to enter or leave a subtask step. This restriction makes sure that a subtask can only exit from the end step of the subtask, and in a forward direction.