How to Create Simple Process Approval Flow in Oracle Process Automation

OPA

How to Create Simple Process Approval Flow in Oracle Process Automation

How to Create Simple Process Approval Flow in Oracle Process Automation (OPA)

In this post, we will see how to create simple process approval flow in Oracle process automation.

Oracle Process Automation (OPA) is a cloud-based solution from Oracle designed to help organizations to automate business processes with minimal coding. It is part of the Oracle Integration Cloud (OIC) suite and enables users, especially business analysts and non-developers, to model, automate, monitor, and optimize business workflows.

Let us create simple process approval flow in OPA step by step.

Step1: Create IDCS users for OPA

OPA is tightly integrated with IDCS, hence we need to create users in IDCS to define roles in OPA.

Let us create two users in IDCS:

Username

Purpose

OPA_1_INITIATOR@testmail.com

User who will initiate approval process.

OPA_2_APPROVER@testmail.com

User who will approve approval process.

Login to IDCS console.

Navigate to Identity and Security –>Domains.

Select respective domain and click on User Management.

A screenshot of a computer

AI-generated content may be incorrect.

Click on Create User.

A screenshot of a computer

AI-generated content may be incorrect.

Similarly create user OPA_2_APPROVER@testmail.com.

A screenshot of a computer

AI-generated content may be incorrect.

Once users are created, reset passwords for users.

A screenshot of a computer

AI-generated content may be incorrect.

Step2: Create Process

Login to Process Automation.

Navigate to Applications—> Click on Create-to-Create new application.

A screenshot of a computer

AI-generated content may be incorrect.

A screenshot of a computer

AI-generated content may be incorrect.

Select “Create Process application”.

A screenshot of a application

AI-generated content may be incorrect.

Provide Title and Click on Create.

A screenshot of a computer

AI-generated content may be incorrect.

Application is created now.

Each Process Application contains below 6 Components:

1.Processes

2.UIs

3.Decisions

4.Connectors

5.Types

6.Roles

Step3: Create Roles in OPA

We will create two roles now.

Role Name

Purpose

INITIATOR_ROLE

This role will be used to initiate approval process flow. We will add OPA_1_INITIATOR@testmail.com user to this role.

APPROVER_ROLE

This role will be used to approve approval process flow. We will add OPA_2_APPROVER@testmail.com to this role.

Navigate to component—> Roles–>New

A screenshot of a computer

AI-generated content may be incorrect.

A screenshot of a computer

AI-generated content may be incorrect.

Provide Title as “INITIATOR_ROLE” and Click on Create.

A screen shot of a computer

AI-generated content may be incorrect.

Click on created role and add OPA_2_INITIATOR@testmail.com user to role as shown below:

A screenshot of a computer

AI-generated content may be incorrect.

Similarly create another Role APPROVAL_ROLE and add OPA_2_APPROVAL@testmail.com user.

A screenshot of a computer

AI-generated content may be incorrect.

A screenshot of a computer

AI-generated content may be incorrect.

Here we can see Two roles are created successfully.

Step4: Crete UI Components

Let us create Quick form for initiator now to enter details while initiating approval process flow.

Navigate to components —>UIs —->Quick Form.

A screenshot of a computer

AI-generated content may be incorrect.

Provide Title as “Submit Request Form” and Click on Create.

A screenshot of a computer

AI-generated content may be incorrect.

UI form is created successfully. Now let us add components to this form.

A screenshot of a computer

AI-generated content may be incorrect.

A screenshot of a computer

AI-generated content may be incorrect.

Similarly add another field for Number of Days.

A screenshot of a computer

AI-generated content may be incorrect.

Click outside and you will see like below:

A screenshot of a computer

AI-generated content may be incorrect.

A screenshot of a computer

AI-generated content may be incorrect.

Click on “Convert to Web Form”.

A screenshot of a computer

AI-generated content may be incorrect.

Click on Convert.

A screenshot of a computer

AI-generated content may be incorrect.

Like form UI, we need create Presentation UI for approver to see details about approver requests submitted by initiator.

Navigate to Presentation—-> Presentations —> Add.

A screenshot of a computer

AI-generated content may be incorrect.

A screenshot of a computer

AI-generated content may be incorrect.

Select Clone.

A screenshot of a presentation

AI-generated content may be incorrect.

Click on Create.

A screenshot of a computer

AI-generated content may be incorrect.

Change Name, Label and Description for Presentation form.

Now let us make Leave Type and Number of Days fields as Read only for Presentation form.

A screenshot of a computer

AI-generated content may be incorrect.

Similarly make “Number of Days” field Read only.

Step5: Crete Structured Process

Now let us create structured process.

Navigate to components —->Processes —>Structured.

A screenshot of a computer

AI-generated content may be incorrect.

A screenshot of a computer

AI-generated content may be incorrect.

Provide Title as “Leave Request Approval” and Click on Create.

A screenshot of a computer

AI-generated content may be incorrect.

Open the process.

Whenever process is created, start event and End event are created by default as shown below:

A screenshot of a computer

AI-generated content may be incorrect.

Edit swim lane as shown below:

A screenshot of a computer

AI-generated content may be incorrect.

A screen shot of a graph

AI-generated content may be incorrect.

Select role as “INITIATOR_ROLE” which we have created earlier.

A screenshot of a computer

AI-generated content may be incorrect.

Select “APPROVAL_ROLE”.

A screen shot of a computer

AI-generated content may be incorrect.

Click on properties of Start Event.

A screenshot of a computer

AI-generated content may be incorrect.

Provide Title and Select “Submit Request Form” for UI.

A screen shot of a graph

AI-generated content may be incorrect.

Select Presentation as “PresentationForm”.

Let us Add Approve action for Approval Role.

Drag and drop Approve activity to APPROVAL_ROLE swim lane.

A screen shot of a computer

AI-generated content may be incorrect.

Complete process flow by connection start Event —-> Approve Action —-> End Event as shown below:

A screenshot of a computer

AI-generated content may be incorrect.

A screenshot of a computer

AI-generated content may be incorrect.

Edit properties for Approve Activity.

A screenshot of a computer

AI-generated content may be incorrect.

A screenshot of a computer

AI-generated content may be incorrect.

A screenshot of a computer

AI-generated content may be incorrect.

Provide value for UI and Presentation.

Select checkbox for “Bind to process data”.

Verify green tick mark at the top

A screenshot of a computer

AI-generated content may be incorrect.

Click on Activate.

A screenshot of a computer

AI-generated content may be incorrect.

Click on Activate.

A screenshot of a computer

AI-generated content may be incorrect.

Step6: Test Approval process flow

Now let us login to OPA instance with OPA_1_INITIATOR@testmail.com user to initiate approval requests.

Navigate to Workspace —->Start Requests

A screenshot of a computer

AI-generated content may be incorrect.

A screenshot of a computer

AI-generated content may be incorrect.

Click on Leave Approval Request Application.

A screenshot of a computer

AI-generated content may be incorrect.

Provide details.

A screenshot of a computer

AI-generated content may be incorrect.

Click on Submit.

A grey and white rectangular object

AI-generated content may be incorrect.

Leave Approval Request process is successfully submitted.

Navigate to Tracking.

A screenshot of a computer

AI-generated content may be incorrect.

A screenshot of a computer

AI-generated content may be incorrect.

Let us login with OPA_2_APPROVER@testmail.com user to approve the approval request.

A screenshot of a computer

AI-generated content may be incorrect.

A screenshot of a computer

AI-generated content may be incorrect.

Click on APPROVE.

A screenshot of a computer

AI-generated content may be incorrect.

The Leave Approval request is approved and completed successfully.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top