Step 4: Create an Asynchronous Orchestration Workflow

Prerequisites:

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

In this exercise, you add an event without reply as a transition action on the Close transition of MyAppWorkflow.

Asynch is an asynchronous orchestration workflow. When Asynch is invoked from the Close transition, it creates a new item in MyOtherAppProject. The Title box of the new item contains the text that was added by the SynchBefore and SynchAfter orchestration workflows and some additional text.

To create an event without reply:

  1. Add a second application workflow called MyOtherAppWorkflow:
    1. In App Explorer, right-click the Application Workflows heading, and then select Add New Workflow.
    2. On the General tab of the Property Editor, change the Name field to MyOtherAppWorkflow, and then press TAB.
  2. In App Explorer, under the Application Workflows heading, select MyAppWorkflow.
  3. In the application workflow editor, right-click the Close transition, and select Show Actions.
  4. On the Actions tab of the Property Editor, click New.

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

  5. From the list of action types in the Step 1 box, select Orchestration Workflow.
  6. Without changing anything, click Next.

    The Action Wizard asks, "What do you want to affect?"

  7. Without changing anything, click Next.

    The Action Wizard asks, "Which condition do you want to check?"

  8. Without changing anything, click Next.

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

  9. In Step 1, select (Add new workflow...).

    Close appears and is selected in the Step 1 list.

  10. Without changing anything in the Step 2 box, click Finish.

    A new icon appears next to the transition name in the application workflow editor indicating that an action is associated with the transition. The action is also listed on the Actions tab of the Property Editor.

    In addition, in App Explorer, under the MyOrch heading, Close appears under Orchestration Workflows and MyAppEventDefinition appears under Application Links.

  11. In App Explorer, under Application Links, select MyAppEventDefinition.
  12. On the General tab in the Property Editor, change the Name to MyOrchWFNR (which is short for MyOrch Workflow No Reply), and then press the Tab key.
  13. Under MyOrch, under Orchestration Workflows, select Close.
  14. On the General tab of the Property Editor, change the Name to Asynch, and then press the Tab key.
  15. In the New Items section of the Step Palette, drag and drop a Calculate step onto the line between the Start and End steps.
  16. On the Options tab in the Property Editor, in the Target section, enter the following expression: EventNotice\Extension\Title.
  17. In the Expression section, enter the following string function: CONCAT(EventNotice\Extension\Title," This issue was created by Asynch.")
    Note: Be sure to include the space after the comma.

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

  18. In the New Items section of the Step Palette, drag a Service step onto the line between the Calculate and End steps.

    sbmappservices72 appears under Web Services, under the MyOrch heading.

    SBM Composer automatically adds the SBM Web Service (sbmappservices72) to new orchestrations. (For more information, see the SBM Web Services Developer's Guide.)

  19. On the General tab of the Property Editor, from the Service list, select sbmappservices72.
    Note: You can also add another Web service by selecting (add new service...) on the Service menu. In the Web Service Configuration dialog box that opens, select the Web service's WSDL file on the WSDL menu or click the browse button.
  20. From the Operation menu, select the CreatePrimaryItem Web service operation.
  21. On the Data Mapping tab, expand the project data element, locate the internalName data element, and then select the corresponding cell in the Default value column.
  22. In the Default value column, enter the following text: USR_MYOTHERAPP.MYOTHERAPPPROJECT. This is the name of the project into which the new item will be submitted.
  23. Expand the item data element, locate the title data element, select the corresponding cell in the Source elements column, and then click the down arrow.
  24. In the Select a source tool, expand Asynch, Inputs, EventNotice, and Extension; select Title; and then click OK.
  25. Continue to Step 5: Validate the Process App.

Related Topics

Comparing Synchronous With Asynchronous Orchestration Workflows