IBM BPM, V8.0.1, All platforms > Create processes in IBM Process Designer > Modeling processes > Building services > Building a Decision service

Adding a Decision service to a process

You can add a Decision service to a business process definition (BPD). Use a Decision service when you want a decision or condition to determine which process implementation is invoked.

For example, when a certain condition evaluates to true, Process Designer implements the associated activity or action.


Procedure

  1. Open the process application that contains a BPD.

  2. Create a new Decision service.

    1. In the Library panel on the left side of the Process Designer window, move the mouse cursor over the Decisions item in the list of library items for the process application.

    2. Click the plus sign next to Decisions to add a new Decision service.

    3. In the Create New window, click Decision Service.

    4. In the New Decision Service window, enter a name for the new Decision service, then click Finish.

    5. Process Designer displays the diagram of the service with the default Start Event and End Event components.

  3. Drag a rule component, such as a BAL Rule, JRules Decision Service or Decision Table component, from the component palette to the Decision service diagram.
  4. Depending on which component or components you added to the service diagram, follow the additional steps in the following related topics to configure the components in the Decision service:

    • Adding a BAL Rule component to a service

    • Adding a JRules Decision Service component to a service

    • Adding a Decision Table component to a service


What to do next

You can now nest this Decision service in any other service within your process application that requires this logic. Be sure to adjust the input and output variables as required for each implementation. Refer to the related topic "Declaring and passing variables" for more information.

Building a Decision service


Related concepts:
Declaring and passing variables


Related tasks:
Scenario: Creating a Decision service in a Personalized Notification process
Adding a BAL Rule component to a service
Adding a JRules Decision Service component to a service
Adding a Decision Table component to a service
Authoring rules using JavaScript in a Decision Table component