Using IBM ODM business rules
You can call IBM® Operational Decision
Manager decision
services in IBM Business Process Manager as
a SOAP web service or by using OpenAPI and REST.
The instructions
in this topic describe how to call IBM ODM decision
services by using OpenAPI and REST. If you want to call decision services
as a SOAP web service, see Calling a decision service as a SOAP web service.
What you do in IBM ODM
To
create a business rule, deploy it as a decision service, and download
the OpenAPI specification for the service:
- Use the Rule Designer to create a business rule.
- Use the Decision Center to deploy your decision service project to the Rule Execution Server.
- In the Rule Execution Server console:
- Navigate to the Ruleset View of the project that you want to use in your IBM BPM process.
- Click Retrieve HTDS Description File.
- For the service protocol type, select REST.
- For the format, select OpenAPI - JSON or OpenAPI - YAML.
- Click Download.
- Save the OpenAPI specification locally. You must specify this file later in IBM BPM web Process Designer to discover the IBM ODM decision service as an external REST service.
What you do in IBM BPM to discover the IBM ODM decision service
In web Process Designer:
- From the library, click to create a new External Service.
- In the New External Service page, select Java, REST or Web service and click Next.
- Select Browse local files (Swagger) and browse to select the OpenAPI specification file that you downloaded from IBM ODM then click Next.
- If you see a list of operations that require JavaScript to invoke them, click Next.
- You see a list of discovered operations. Select the operations that you want to include in the external service then click Next.
- Select Create a new server and click Finish. You will configure the server in a later step. An external service is created.
- To explore the generated artifacts:
- To display the business objects that were discovered in the OpenAPI specification, in the library, click Data .
- To display an operation with its input and output parameters, in the library, click Services, then select the external service that you created.
- To configure the server:
- Under Process App Settings click Server.
- For the server type, select REST Server.
- For Host name, specify the hostname of the IBM ODM server.
- Make sure that Secure server is selected and that SSL configuration is specified.
- Select Authentication machanism and specify values for User name and Password.
What you do in IBM BPM to use the IBM ODM decision service in a service flow
In web Process Designer:
- Create a service flow.
- Use a service task to invoke an operation of the external service.
- For Implementation, specify the external service.
- For Operation, select the operation to use.
- Specify data mappings as required by the operation.