Page tree

This task tells how to define the Call Adapter activity to call the Command Line adapter to issue a command. The Call Adapter activity uses the adapter request context item from the previous task.

In the preceding tasks, you created a module and a workflow, configured the Start activity, and created an Assign activity with an assign statement. At the end of those tasks, the design canvas had Start, Assign, and End activities, connected in sequence by the gray process line, as shown in the following figure:

Design canvas with Start, Assign, and End activities


In this task, you create a Call Adapter activity and set the activity to log the results.

To create and configure the Call Adapter activity

  1. Click the BMC Atrium Orchestrator Development Studio Activity Palette to open it, and drag a Call Adapter activity to the design canvas.
  2. Connect the Call Adapter activity to the workflow between the Assign activity and the End activity with the gray process line, as shown in the following figure:

    Design canvas with Assign activity and Call Adapter activity added to the workflow


  3. Double-click the Call Adapter activity to open its Property Panel.
  4. On the Properties tab of the Property Panel for the Call Adapter activity, select Context Key for Adapter Name.
  5. Click to open the Context Browser.
  6. In the Local Context area, click adapter name and click Select.
  7. On the Properties tab of the Property Panel for the Call Adapter activity, select Context item for Adapter Input.
  8. Click to open the Context Browser.
  9. In the Local Context area, click adapter request and click Select.
  10. On the Properties tab of the Property Panel for the Call Adapter activity, click next to Adapter Output to open the Context Browser.
  11. In the Context Browser, click New.
  12. In the Create Context Data dialog box, type adapter response in the Name field and click OK.
  13. In the Local Context area, click adapter response and click Select.
  14. On the Properties tab of the Property Panel for the Call Adapter activity, click OK to return to the design canvas.
  15. Save the workflow.

To configure logging for the Call Adapter activity

  1. On the design canvas, double-click the Call Adapter activity to reopen its Property Panel.
  2. On the Property Panel, click the Logging tab, and then click the Before Execution tab.
  3. On the Before Execution tab, select the Log check box and type Before execution in the text field.
  4. Right-click the Context Item text field, and from the Insert menu, select Local Context Item> adapter request as shown in the following figure.

    Inserting a context item in the log


    The Before Execution tab shows the adapter request context item in the Context Item text box. When you run the workflow, the text that you entered and the contents of the context item that you selected are added to the log before the workflow runs the Call Adapter activity.
  5. On the Logging tab, click the After Execution tab.
  6. On the After Execution tab, select the Log check box and type After execution in the text field.
  7. Repeat step 4 to select the adapter response context item.
  8. Click OK to return to the design canvas.
  9. Save the workflow.

Where to go from here

Continue testing the workflow and gathering sample data.