Task 2: Exposing and sharing your decision service

You create an operation to expose your decision service. Then, you share your decision service, and look at selecting collaborators for your automation.

About this task

In this task, you...

  • Create an operation.
  • Share your decision service.
  • Look at how to select collaborators.

Step 1: Creating an operation

About this task

To expose a decision service, you must define an operation that is used to call the service. The operation includes a name and a reference to a decision model (see Creating decision operations).

In this step, you create the operation.

Procedure

  1. Click My Service in the breadcrumbs to open your decision service.
  2. Click the Decision operations tab, and then Create.
  3. Under Source model, select My Model. Keep My_Model in the Operation name field. The input and output parameters are not editable.
  4. Click Create.

    The decision operation My_Model is created. You see it used in task 6 to run your decision service.

  5. Click My Getting Started in the breadcrumbs to return to your automation.

    The header bar shows that you have a new change to share. Now you share your changes.

Step 2: Sharing your decision service

About this task

In this step, you share your decision service within your instance of Decision Designer (see Sharing changes).

Procedure

  1. Click the Share changes tab to open it. You see two artifacts: decision service and decision model. These changes are from the decision service that you assembled in the previous task.
  2. Keep My Service selected, and click Share.
  3. Enter the following comment, and then click Share:
    First getting started version.

    A notification is displayed confirming that your changes were successfully shared. You can close the notification.

Step 3: Choosing your collaborators

In this step, you see how to add collaborators to your decision automation. Because you are working alone, you do not complete this procedure.

Procedure

  1. Click Decision Automations in the breadcrumbs.
  2. Open the overflow menu inside the box of the My Getting Started decision automation and select Edit details.
  3. Open the User management tab. You see that you have administrative permissions on your decision automation.
  4. Click the Add permission button to add collaborators. Enter the name or user ID, and select the appropriate permissions:
    • Admin for full access
    • Edit for export, publish, preview, and edit
    • Read for export and preview
  5. Because you are doing this tutorial alone, click Cancel to abandon this operation.
  6. Click My Getting Started to return to your decision automation.

What to do next

In the next task, you add nodes to your decision model to provide weather advice.