OIC/Process Cloud Service/1 → Using Decision Models in a Process Application in OIC

integratio
7 min readSep 2, 2023

--

This is a post on Process Cloud Service, highlighting usage of Decisions Models in a Process Application in OIC.

Process Cloud Service

(1) Flow: [a] Process Application → [b] Form → [c] Data Association → [d] Decision Model → [e] Result.

(2) Flow Description: Here we are creating a Decision model which will calculate the average appraisal score based on the input provided from appraiser and reviewer and based on the average appraisal score it will calculate the Band (A, B, C, D) and based on it will calculate the yearly hike (List of Values: 12%, 8%, 5%, 2%) and output it to the user.

(3) Steps:

For Decision models we will configure: [i] Decisions and sub-decisions along with the implementation/decision logic (using Friendly Enough Expression Language — FEEL), [ii] Declare Input data and type and also [iii] Set up Associated decision services. We will test the decisions and sub-decisions within our decision model to ensure that they work as expected.

We will create snapshots of our decision model and activate these on the DMN (Decision Model and Notation) server. These read-only snapshots, once activated, can be used independently in multiple applications through the created decision services.

After creating and activating a decision snapshot, we can add it to our process application.

So, let’s see how to achieve the above steps.

Go to OIC console → Processes → Decision Models and give your suitable name for Decision Model.

[d] Decision Model: Creating a Decision Model

[d.1] Configuring the Decisions and sub-decisions (If-else decision logic):

Main Decision will remain at top and sub decisions beneath it. For that the decisions can be dragged & aligned. Main Decision and sub-decisions are highlighted in below snapshot.

[d.2] Declare Input data and type:

Variables created: ratings, ratings.appraiserRating, ratings.reviewerRating

[d.3] Set up Associated decision services:

Decision Service Name: Service_YearlyAppraisal

Creating Snapshot of Decision Model and activate it to use in Process Application.

Now we will create a Process Application.

[a] Process Application:

Go to OIC console → Processes → Process Applications and give your suitable name for Process Application.

[b] Form:

select: Create a Structured Process > Start with a form.

Create a New Web Form with a name : hikeCalcWebForm

[c] Data Association: Mapping/Link between Form’s Business Data Objects and Decision Model’s Data Types

Create Snapshot of Process Application, Activate it and publish Process Application to DMN server.

Play option to simulate the Process Application on DMN server.

………………………………………………………………………………………………

--

--

integratio

📌 IT Backend enthusiast 📌 Blogging about Oracle FMW, Python, Cloud related technologies 📌 Non monetized, non hustle 📌 Knowledge sharing sole purpose