Introduction
So what is this? - from ORCL help center -
Human-in-the-Loop (HITL) in Oracle Integration Cloud (OIC) is a functionality that enables, manages, and automates human interaction with agentic AI workflows. It allows for the integration of human judgment, approval, and oversight into automated processes to improve accuracy, safety, and compliance.
For more background, Raison d'ĂȘtre etc. - please check out the detailed post from my esteemed colleague, Stan.
Back to my apocryphal Order Processing agent - we could envisage a corporate rule where orders > $10000 require human approval.
To enable such, we would need -
- a UI - some sort of Order Approval form
- a workflow design - who should approve? within which timeline?
- the ability to be invoked as a tool
- the ability to make a callback to the agent e.g. order approved or order rejected.
and that's exactly what we're offering -
Here we surface the Forms you know and love from Process Automation -
I add the fields from my purchase order and also include a text area for any notes the approver may want to add.
The order fields are marked as Read Only, that's why you don't see text boxes.
This form will be surfaced via the workflow, which we will now define. Remember to activate the form, before attempting to reference it in the workflow.
Just add the Human Task -
- Complete, i.e. human task has completed.
- Approve or Reject - which I will choose.
I configure it as follows -
{"assignee": "niall.commiskey@oracle.com",
"taskTitle" : "Approve Order for NiallC",
"orderNr": "1234",
"customer": "NiallC",
"country": "Ireland",
"product" : "iBike",
"price" : "67890",
"customerEmail" :"xxx@gmail.com"}
As you can see, the Start Event payload includes the order data, along with the assignee and task title.
These are used in the human task mapper -
The callback url can be viewed here-
#### 2.1. Human Approval for Large Orders
Use the **Human Approval** tool to get human approval for large orders. Large orders are those with a price > 10000. Wait for the response - if approved then create the order, if rejected, then notify the customer with a relevant email.
The Approve Order task is accessed via the Process Workspace -
