v7
Applies to Campaign Classic v7 only

Sub-workflow sub-workflow

The Sub-workflow activity lets you trigger the execution of another workflow and recover the result. This activity lets you use complex workflows while using a simplified interface.

You can call multiple sub-workflows in a single workflow. Sub-workflows are executed synchronously.

In the example below, a primary workflow is calling a sub-workflow using jumps. For more on jump-type graphical objects, see this section.

  1. Create a workflow that you will use as a sub-workflow in another workflow.

  2. Insert a Jump (end point) activity with a priority of 1 at the beginning of the workflow. If you have multiple “end point” type jumps, Adobe Campaign will use the “end point” jump with the lowest number.

  3. Insert a Jump (start point) activity with a priority of 2 at the end of the workflow. If you have multiple “start point” type jumps, Adobe Campaign will use the “start point” jump with the highest number.

    note note
    NOTE
    If the sub-workflow activity references a workflow with several Jump activities, the sub-workflow is executed between the “end point” type jump with the lowest number and the “start point” type jump with the highest number.
    For the sub-workflow to be run correctly, you must have only one “end point” type jump with the lowest number, and only one “start point” type jump with the highest number.
  4. Complete and save this “sub-workflow”.

  5. Create a primary workflow.

  6. Insert a Sub-workflow activity and open it.

  7. Select the workflow that you want to use from the Workflow template drop-down list.

  8. You can also add a configuration script to alter the referenced workflow.

  9. Click Ok. It will automatically create an outbound transition with the label of the Jump (start point) activity from the selected workflow.

  10. Run the workflow.

Once run, the workflow that was called as a sub-workflow remains in Being edited status, which means the following:

  • You cannot right-click the transitions to display the target.

  • The count of intermediate populations cannot be displayed.

  • The sub-workflow logs display in the primary workflow.

NOTE
If any error occurs in the sub-workflow, the primary workflow will pause and a copy of the sub-workflow will be created.

Input parameters (optional) input-parameters--optional-

  • tableName
  • schema

Each inbound event must specify a target defined by these parameters.

Output parameters output-parameters

  • tableName
  • schema
  • recCount

This set of three values identifies the population targeted by the query. tableName is the name of the table that records the target identifiers, schema is the schema of the population (usually nms:recipient) and recCount is the number of elements in the table.

  • targetSchema: This value is the schema of the work table. This parameter is valid for all transitions with tableName and schema.
recommendation-more-help
601d79c3-e613-4db3-889a-ae959cd9e3e1