Step 3: Create a Synchronous Post-Transition Orchestration Workflow


You completed the steps in the process app tutorial (see the SBM Composer Guide, Step 1: Create an Orchestration, and Step 2: Create a Synchronous Pre-Transition Orchestration Workflow.

In this exercise, you use the Action Wizard to create the SynchAfter orchestration workflow. SynchAfter is a synchronous post-transition orchestration workflow. When SynchAfter is invoked from the Submit transition, it appends the text in the Title box of the transition page before the state form loads. The new appended text appears in the Title box on the state form.

To create a synchronous post-transition orchestration workflow:

  1. In App Explorer, under the Application Workflows heading, select MyAppWorkflow.
  2. In the application workflow editor, right-click the Submit transition, and then select Show Actions.
  3. On the Actions tab of the Property Editor, click New.

    The Action Wizard asks, "Which type of action do you want to execute?"

  4. From the list of action types in the Step 1 box, select Orchestration Workflow.
  5. In the Step 2 box, click the and continue executing (asynchronous) link, select and wait for reply (synchronous) from the list, and then click Next.

    The Action Wizard asks, "When do you want to call the orchestration workflow?"

  6. In the Step 1 box, select After, do not change anything in the Step 2 box, and then click Next.

    The Action Wizard asks, "Which orchestration workflow do you want to call?"

  7. In the list under Step 1, select (Add new workflow...).
  8. In the Event with Reply dialog box that opens:
    1. Change the Name to "MyOrchWFWR2" (which is short for MyOrch Workflow With Reply #2).
    2. From the Orchestration list, select MyOrch.
    3. In the Workflow box, change the name to SynchAfter.
    4. In the Fields used by event column, select the Title check box.
    5. In the Fields returned by event column, select the Title check box.
    6. Click OK.
  9. In the Action Wizard, click Finish.

    The action is listed on the Actions tab of the Property Editor.

    In addition, in App Explorer, under the MyOrch heading, SynchAfter appears under Orchestration Workflows, and MyOrchWFWR2 appears under the MyApp heading, under Orchestration Links.

  10. In App Explorer, under MyOrch, under Orchestration Workflows, select SynchAfter.
  11. In the New Items section of the Step Palette, drag a Calculate step onto the line between the Start and End steps.
  12. On the Options tab of the Property Editor, in the Target section, enter the following expression: EventNoticeWithReply\Extension\Title.
  13. In the Expression section, enter the following function: CONCAT(EventNoticeWithReply\Extension\Title, " Appended by SynchAfter.")
    Note: Be sure to include the space after the comma.

    For more information about creating expressions, see About the Expression Editor.

  14. In the orchestration workflow editor, select the End step.
  15. On the Data Mapping tab of the Property Editor, expand the Extension data element, locate the Title data element, select the corresponding cell in the Source elements column, and then click the down arrow.
  16. In the Select a source popup, expand SynchAfter, Inputs, EventNoticeWithReply, and Extension; select Title; and then click OK.

    SynchAfter\EventNoticeWithReply\Extension\Title appears in the Source elements column.

  17. In App Explorer, under the MyApp heading, under Orchestration Links, select MyOrchWFWR2.
  18. On the MyOrchWFWR2 tab, the Title check boxes of the Fields used by event and Fields returned by event columns should be selected.
  19. Continue to Step 4: Create an Asynchronous Orchestration Workflow.

Related Topics

Comparing Synchronous With Asynchronous Orchestration Workflows