Thursday, August 4, 2022

Create OIC Decision model from Scratch | Expose the decision model as REST | Test the rest enabled decision model using post man | Process Cloud Service

Usecase: Here we will do the following:

  • Create a Decision model based on decision table.
  • Expose decision model as REST API.
  • Test the rest enabled decision model using post man tool 

We will fetch the Grade and Result based on Name, class and section details from the decision table.

Implementation steps:

Oracle Home page >> Processes >> Decision Models



Create >> Create a Decision model




Switch to list view


Add type definition 



Add the Input data with the created complex type definition.


Add new decision


There are several option we can use. Here we will use Decision table.


Click this "!" Sign to add/update the decision table.



Added 3 inputs and 2 outputs


Save and play app for testing.


Test with input data.


Output:


Expose the desion model as rest service.




Take the rest API URL and input payload json schema


Activate the changes.



Open post man and use the rest enabled URI and json payload and basic authentication.

Note: convert that json payload schema to json format using any online tool.



Output:


If no decision table rule dose not match, it will show the output as following:


Using this exposed rest API URL, we can call this decision model from OIC Integrations.


No comments:

Post a Comment

Featured Post

11g to 12c OSB projects migration points

1. Export 11g OSB code and import in 12c Jdeveloper. Steps to import OSB project in Jdeveloper:   File⇾Import⇾Service Bus Resources⇾ Se...