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
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.
Expose the desion model as rest service.
Take the rest API URL and input payload json schema
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.