Scroll to top

How to Invoke PCS Workflow Using VBCS?


Afshan - January 31, 2023 - 0 comments - 296 Views

Reading Time: 4 minutes

Process Cloud Service

Oracle Process Cloud Service is a cloud-based software development Platform as a Service (PaaS) that provides a hosted environment for your process applications.

In this article, we will create a simple One Layer Approval process in Oracle Process Cloud Service (PCS) which can help us understand PCS’s basics.

Here we have developed a small application to demonstrate the workings of the PCS using VBCS. We have two types of users in the application, as described below.

  • Design and develop an application where users can search and create new “Item Code”, the search

can be based on the different filter criteria that are available on the page.

There are two different Roles in this application: –

  • Requestor (ITEM_CODE_REQUESTOR) – The user with this role can request for new item code.
  • Approver (ITEM_CODE_APPROVER) – The user with this role can approve or reject a request for item code.
  1. Once the Requestor submits a new Item code combination, the request will be sent to the approver to take the action, which is “Approve” or “Reject”.
  2. The approver can Approve/Reject the action using the page created using the VBCS. Once the request is approved, the requester will be able to search using the filter criteria and If the request is Rejected then the requestor can resubmit the Item code combination for approval.

Here we have divided this into 2 parts, one is workflow creation using PCS, and the other is the configuration of the workflow in VBCS.

PCS Configuration

Step 1: Navigate to Processes in OIC

try a recipeStep 2: Create a new space for your workflow with a suitable name; here we can create multiple workflows under a space.

oracle integration
create spaces

Step 3: Navigate to Process cloud services and Click on Create.

Enter the information below and click “Create.”

  • Name: Enter the name of the application.
  • Space: Select the existing space.
  • New Space: Enter the space name.
  • Description: Enter the description accordingly.

process applicationprocess

Step 4 – Create two swim lanes, one for the requestor and another for the approver.

  1. Requestor can invoke this workflow from
  2. When the requestor invokes PCS, an approval request is sent to the approver, which is sent through the sequence to Human Task, called “User Task”

user task

Step 5 – The process has now been completed. We have to activate this process.

create

  • Provide the version name and click on “Activate” to activate the Process Select the “Make snapshot” checkbox.
  • Enter the snapshot name as Process Completed
  • Enter the comment.

activate application activating

application submitted sucessfully Steps for PCS Configuration in VBCS

Step 1: Go to the VBCS application and navigate to processes to configure processes as shown below.

oracle VBCS application

Step 2: Select the latest version and add it to your application.

register deployed process

Step 3: Use the available code snippet to configure the approval actions, which will trigger the PCS internally.

get deployed process collection action

Step 4: Here on the Submit Action Chain on the Requestor side, we have invoked the PCS process using the “Start Process” action.

Step 5: Using the code snippet and below payload, we have configured the APPROVE action on Approver’s approve action chain.

approve action

“taskAction”: { “type”:  “Custom”, “actionId”: “Approve”

}

Step 6: Using the code snippet and below payload, we have configured the Reject action on Approver’s reject action chain.

item code submitted

“taskAction”: { “type”:  “Custom”, “actionId”: “Reject”

}

VBCS Application Demo

There are two different pages in the application

  1. Search & Request Item Code
  2. View/Approve/Reject Submitted Requests

Information

info

Once the request is sent for approval, this request will be visible to the approver by clicking on the “submitted request” button. From this page, the user can take appropriate action.

item desc

Alternatively, approver can navigate to My Tasks

processes

Here, all the assigned requests will be available to the approver. The approver can filter the requests from this page.

oracle integration my tasks The approver can select any request and take appropriate action on it.

itemcodeapproval

Afshan

Afshan Baig is a graduate of Telecommunication Engineering. He is working as an Oracle consultant in Conneqtion Group. He has good knowledge of OIC, VBCS, Oracle Fusion, OCI, Javascript and PL/SQL.

Author avatar

Afshan

https://conneqtiongroup.com/
Afshan Baig is a graduate of Telecommunication Engineering. He is working as an Oracle consultant in Conneqtion Group. He has good knowledge of OIC, VBCS, Oracle Fusion, OCI, Javascript and PL/SQL.

Related posts

Post a Comment

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