<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dilip Kumar Panchali on Medium]]></title>
        <description><![CDATA[Stories by Dilip Kumar Panchali on Medium]]></description>
        <link>https://medium.com/@dilipmail4u?source=rss-85500cd5597e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Aj9Tsk_zVGaJAhPp</url>
            <title>Stories by Dilip Kumar Panchali on Medium</title>
            <link>https://medium.com/@dilipmail4u?source=rss-85500cd5597e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:51:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dilipmail4u/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Enterprise Agentic AI with OCI Private Agent Factory, OIC MCP Tools, and Human Approval Workflows]]></title>
            <link>https://medium.com/@dilipmail4u/enterprise-agentic-ai-with-oci-private-agent-factory-oic-mcp-tools-and-human-approval-workflows-3f42b7620481?source=rss-85500cd5597e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f42b7620481</guid>
            <dc:creator><![CDATA[Dilip Kumar Panchali]]></dc:creator>
            <pubDate>Tue, 19 May 2026 04:45:33 GMT</pubDate>
            <atom:updated>2026-05-20T10:29:42.544Z</atom:updated>
            <content:encoded><![CDATA[<p>Enterprise agentic AI becomes much more practical when agents can securely use existing business integrations instead of requiring every backend action to be rebuilt from scratch.</p><p>In this blog, I will walk through a practical example that combines <strong>Oracle AI Database Private Agent Factory</strong> with <strong>Oracle Integration Cloud</strong>, also known as <strong>Oracle Integration 3 / OIC</strong>, acting as a <strong>Model Context Protocol server</strong>.</p><p>The goal is to build a <strong>Sales Order Credit Review and Hold Release Assistant</strong>. This assistant helps business users review sales orders that are blocked because of credit holds, evaluate release conditions, and take the next appropriate action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PfBNgX5NLmEKGSceby9D5w.png" /></figure><p>Depending on the business rules, the agent can:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*jfgB2eauSsK4jRJhHhYp3g.png" /></figure><p>For this demo, an <strong>Autonomous DB </strong>is used to simulate the backend ERP system. In a production implementation, the same pattern can be extended to Oracle E-Business Suite, Oracle Fusion Cloud Applications, SAP, or another enterprise application connected through OIC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*QUy4cH9iVZOucG9e5GWUGA.png" /></figure><p><strong>Why OCI Private Agent Factory and OIC Work Well Together?</strong></p><p>Oracle AI Database Private Agent Factory provides a no-code environment for building, testing, and deploying intelligent agents.</p><p>Oracle Integration Cloud provides enterprise integration, orchestration, connectivity, adapters, transformations, and process automation capabilities. With OIC MCP support, integrations in an OIC project can be exposed as tools to MCP-compatible agents.</p><p>The integrations can be registered as agentic AI tools and made discoverable by enabling MCP for the project.</p><p>This is important because most enterprises already have working integrations for common business operations such as retrieving orders, updating customer records, submitting approvals, creating service requests, or invoking ERP APIs.</p><p>Instead of rebuilding those capabilities inside the agent, you can expose selected OIC integrations as governed tools.</p><p><strong>At a high level:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*NS43III7rNdfujcPOCbQfA.png" /></figure><p>Each OIC project can become its own MCP server with its own MCP server URL, and only integrations registered as agentic AI tools are discoverable through MCP. Security is provided through OAuth.</p><p><strong>Use Case: Sales Order Credit Review and Hold Release Assistant</strong></p><p>In a typical order-to-cash process, sales orders may be placed on hold because of credit exposure, overdue invoices, customer risk, order value, payment terms, or policy exceptions.</p><p>When this happens, different users may need to investigate and act:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*eNbH7j-j_Qa0600zq0lWFA.png" /></figure><p>Without an agent, this process often requires the user to open multiple systems, search for the order, review customer credit information, check policy rules, and then manually trigger an approval or release action.</p><p>The assistant simplifies this flow by providing a conversational interface backed by governed integrations.</p><p>A user might ask:</p><p>“Show me credit-held orders for customer ABC Corporation.” The agent can invoke an OIC tool to fetch matching orders.</p><p>The user may then ask: “Can order 100458 be released?”</p><p>The agent can retrieve the order details, evaluate the release criteria, and determine whether the case is eligible for auto-release or requires approval.</p><p>If the order does not meet automatic release criteria, the agent can route it to a Credit Manager using an OIC human-in-the-loop flow.</p><p>This demo is organized into three parts</p><p><strong>Part 1: Set Up OCI AI Database Private Agent Factory</strong></p><p>In this section, we prepare the Agent Factory environment where the Sales Order Credit Review and Hold Release Assistant will be created.</p><p>To set up the OCI Private Agent Factory, see this blog <a href="https://medium.com/@dilipmail4u/set-up-oci-ai-database-private-agent-factory-7aec9b0e3c0c">post</a>.</p><p><strong>Part 2: Review the OIC Integration Tools</strong></p><p>In this section, we review the OIC integrations created for the credit hold use case.</p><p>These integrations act as business tools for the agent. OIC documentation describes a workflow where you register an integration as an agentic AI tool, enable MCP for the project, retrieve the MCP server URL, and then discover the tools from MCP clients.</p><p>For the demo, the OIC project can expose integrations such as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D88AQSU6U7PPV2-exaUQpg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pxoPr2ajcC3JQsTgiyWvoQ.png" /><figcaption>OIC Project Containing Integrations</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bNTmnOKzuPQmEUxvtQ_zAQ.png" /><figcaption>Integration registration as an agentic AI tool</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*kV0iTHDSScVal8aipxRsGA.png" /><figcaption>MCP enabled for the OIC project</figcaption></figure><p>List Sales Orders Request and Response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*unhnX2W3EqSbmbDh_-58tA.png" /><figcaption>List Sales Orders on Hold at a high level</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a3MTk5oCfeu5soKyMeF0QQ.png" /><figcaption>Fetch comprehensive order details containing all information necessary for the Credit Manager’s review.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qm1EtVJQp74sGQHcZmZtzg.png" /><figcaption>Evaluate Hold Release</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6zagZfmI1OPPA7di5smBDw.png" /><figcaption>Create Hold Release Request</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HwcsMTFoT34El498eucROw.png" /><figcaption>Raise Approval Request</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Hj0qjysaJVjyVh2VzZipQ.png" /><figcaption>Approval Task</figcaption></figure><p><strong>Part 3: Build the Agent in OCI Private Agent Factory</strong></p><p>In the final section, we create the agent and connect it to the OIC MCP server.</p><p>The agent should be designed to understand the business process, choose the correct tool, and explain its decisions clearly to the user.</p><p>Establishing a connection to the OIC MCP Server requires an OAuth configuration. To facilitate this, a Confidential Application must be set up within Oracle Identity Cloud Service (IDCS). Please follow the instructions below to configure OAuth in IDCS:</p><p>Log in to Oracle Identity Cloud Service (IDCS), navigate to <strong>Integrated Applications</strong>, select <strong>Add Application</strong>, and create a new OAuth client confidential application.</p><p>Specify a name and description for the confidential application.</p><p>Choose the options shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sE2Q5jF6gv9TE_Da3JnAVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EELNtAu6T_O-9khZNfIPhg.png" /></figure><p>Choose Token Issuance Policy and add scope.</p><p><strong>Note:</strong> Ensure the Scope is set to your specific integration instance, ending with ocp.oraclecloud.com:443urn:opc:resource:consumer::all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nFsG4KfKjiP9iFhv0P1X9g.png" /></figure><p>Activate the OAuth Client application.</p><p><strong>Add Application Role:</strong> Log in to Oracle Identity Cloud, navigate to <strong>Oracle Cloud Services</strong>, search for your integration instance, and select Application Roles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wy3n31iYAOyUXdbo9-P4ng.png" /></figure><p>Locate the <strong>Service Invoker</strong> role, click the <strong>Actions</strong> menu (ellipsis), and select <strong>Manage Applications</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SwB9_B0S8YUOWDvaOM3NJw.png" /></figure><p>Search for the confidential application created in the previous step and assign the role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jmbFJAFZqF4ZzJUmQOcOiw.png" /></figure><p>Edit the OAuth Client application. Upon successful configuration, verify that the assigned role appears under the OAuth application roles, as illustrated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*APlZb5cirqavpkbw3JHCtA.png" /></figure><p>Log in to the Agent Factory URL configured in the first step and establish an OAuth connection to the OIC MCP Server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AEcsTwWpeikxY4h5lpwnMQ.png" /></figure><p>Upon logging in to the Agent Factory home page, click <strong>MCP Servers</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KdrAJZIQC8lCa2zLQuGUvA.png" /></figure><p>Click on Add MCP server.</p><p>Refer to the instructions provided for each configuration parameter and enter the details accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rhdg6aIIyNIBlBvnCVGrXA.png" /></figure><p>Click Save <strong>MCP Server</strong></p><p>An authorization window for MCP server access will appear, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*goZBW5meYxXgVJQpwBBIHw.png" /></figure><p>Click Request Authorization.</p><p>An authorization window for MCP server access will appear, as shown below. Enter your credentials. A subsequent window will confirm successful authorization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7tjUjXRnl-0KPvVSdSwhjQ.png" /></figure><p>You will now see a confirmation of the successful MCP server connection, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bt9faymR876RcdzmcuVEbQ.png" /></figure><p>With all secure connections successfully established and prerequisites verified, the environment is fully primed: you are now ready to initialize and create your Agent.</p><p>Navigate to <strong>My Custom Flows</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M_0xByH89ALPs87MJK87vQ.png" /></figure><p>Click Create Flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MOWH0y5oRcY862QW2B-b1A.png" /></figure><p>Search for the MCP server in the component window and drag it onto the canvas, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A0W9k9mBEzqXW9KIX_Q4MA.png" /></figure><p>Search for the MCP server in the component window, as illustrated below, and either drag and drop it onto the canvas or click the plus button to add the component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xh3WSJrFRtOksLT2L9MdFg.png" /></figure><p>Search for the Agent, Chat Input and Chat Output in the component window, as illustrated below, and either drag and drop it onto the canvas or click the plus button to add the component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WNbLOGyMyR_RI3-CVCtddQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*eSRT4hkZzdF9Du9eYlEByw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iMSqckHSjYR8Q8LWwpe4ow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dKj8Snsr5ba1dar2r71bHg.png" /></figure><p>Establish the component connections by mapping <strong>tools</strong> to <strong>Tools</strong> on the Agent, <strong>Chat Input</strong> to <strong>Prompt</strong>, and the Agent’s <strong>Message</strong> to <strong>Chat Output</strong>.</p><p>Select the LLM that was configured in the first step. If necessary, refer back to the initial step for instructions on creating the LLM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NS2Hib1gnRC3uAk8W6aUHw.png" /></figure><p>Edit the name as shown below by entering an agent name of your choice, and click <strong>Save Changes</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Tu522_TAkheY46S61rnVA.png" /></figure><p>Navigate to <strong>My Custom Flows</strong> and click <strong>Edit</strong> to view or modify your flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sIXim-kneGboiYRU41yFRA.png" /></figure><p>You can add custom instructions to define the agent’s behavior. Note that the tool’s behavior is primarily governed by the descriptions provided when registering an integration as a tool in OIC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJUH6XbY4MlJ62Bm0T-z5w.png" /></figure><p>For example, you might provide custom instructions similar to the following:</p><p>Custom Instructions:<br>You are a Sales Order Credit Hold Assistant.<br>Always invoke “GET_SALES_ORDER_HOLD_DETAIL” and validate the “Hold_status” field prior to executing any of the following tools:<br> “UPDATE_HOLD_RELEASE_REQUEST”<br> “HITL_RAISE_APPROVAL_REQUEST”<br> “CREATE_HOLD_RELEASE_REQUEST”<br> “EVALUATE_HOLD_RELEASE”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZAmNiK-mxMiFqvhj6LubKQ.png" /></figure><p>The Agent window will now open, ready for your Sales Order Hold-related queries and actions, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WR59cZUKehI1HSKm8F5uWA.png" /></figure><p>To begin, test the agent by asking for a list of held orders. For example, enter the prompt: <strong>List the sales orders currently on hold</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*QRjXNOF-k2Xx2tnsViWfoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*Q6AMbvUX9BAqpK8o08uI0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*OHIxSc-90yBbqmZ9-0oqOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*m8tyO0tBoVjjDqQNfYVeiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VX_BdvOFlNyjSgF6aelUlQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S0cXhgHP8flcA_JUahdt5g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H_1LL9LaP9hXrDMraDpEMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*wq26xobndlRcgLYEUhym-w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DrH-HHxS9n2LEyL52qGArw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*pZSSybHQH9gm1A_cexskIw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*J_Ytl_Ix_Kun-25dPfSktw.png" /></figure><p>Let us verify whether the hold status is reflecting in the backend/ERP system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*smQK2c1wFS5C59mXkd0cHQ.png" /></figure><p>Hold release requests created in an audit table</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gEi6ifuejvuqC88cpdZNEA.png" /></figure><p>Happy Learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f42b7620481" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Set Up OCI AI Database Private Agent Factory]]></title>
            <link>https://medium.com/@dilipmail4u/set-up-oci-ai-database-private-agent-factory-7aec9b0e3c0c?source=rss-85500cd5597e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7aec9b0e3c0c</guid>
            <dc:creator><![CDATA[Dilip Kumar Panchali]]></dc:creator>
            <pubDate>Mon, 18 May 2026 15:28:36 GMT</pubDate>
            <atom:updated>2026-05-19T02:43:39.164Z</atom:updated>
            <content:encoded><![CDATA[<p>OCI AI Database Private Agent Factory can be deployed from <strong>Oracle Cloud Marketplace</strong> into your OCI tenancy. At a high level, the setup requires:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*PgXhBhZmHaLpfdK0S_R1pg.png" /></figure><p><strong>Prerequisites </strong>- To successfully deploy the application via OCI Marketplace you must meet the following requirements:</p><p><strong>Marketplace deployment policies</strong>: You must have access to a tenancy where you have the privileges to create instances from Marketplace. If your account does not have said privileges, contact your tenancy’s administration.</p><p><strong>Virtual Cloud Network (VCN) and Subnet</strong>: The recommended VCN configuration contains a 10.0.0.0/16 CIDR block, an internet gateway for external connectivity, a route table directing 0.0.0.0/0 traffic to the internet gateway, and a security list allowing inbound SSH (port 22), HTTP (port 8080), and Oracle Database (port 1521) traffic from any source. A public subnet (10.0.1.0/24) is also defined, associated with the custom route table and security list, with public IPs allowed on Virtual Network Interface Cards (VNICs).</p><p><strong>Flex shapes specification:</strong> To deploy the application using a Flex shape this must have a minimum of 8 CPU cores, 16 GB of RAM and 120 GB of boot volume, 500 GB recommended.</p><p>You can install the Agent Factory application from the Oracle Cloud Marketplace in just a few steps.</p><p>Let us begin with setting up <strong>Oracle Database 26 ai</strong>.</p><p>Log in to the OCI Console, navigate to Autonomous AI Database, and click on Create Autonomous AI Database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m7fOHWMW6yVM2mREtriT9Q.png" /></figure><p>Provide the Database Name, select Transaction Processing as the workload type, choose Database Version 26ai, and set the password. Leave the remaining settings as default, or adjust them as appropriate for your requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q43eD9FBzi1545DRWpJMug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S04MlLhimFYAohnr-bC5DQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SHO7yNndJRWk3rBsClfwHQ.png" /></figure><p>Click Create and wait a few minutes until the 26ai database is up and running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xvgq28uOr3vSriU4J4-D5Q.png" /></figure><p>The next step is to create the VCN. Follow the steps below to proceed with the VCN creation.</p><p>Log in to the OCI Console, click <strong>Actions</strong>, and select <strong>Start VCN Wizard</strong>, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YqKy-noFq1JnFdCR7QM-AA.png" /></figure><p>Please provide the following network configuration details:</p><p>1. VCN Name — The name for your Virtual Cloud Network<br>2. VCN CIDR — The CIDR range for the VCN<br>3. Public Subnet CIDR — The CIDR range for the Public Subnet<br>4. Private Subnet CIDR — The CIDR range for the Private Subnet</p><p>You may use the recommended CIDR ranges suggested in the text box, or consult your network administrator to determine the appropriate ranges for your environment.</p><p>Click Next, then click Create, and verify that the VCN has been successfully created.</p><p>Click on the VCN that was created, navigate to Routing, click on the Default Route Table for the VCN, click on Route Rules, and ensure that the Internet Gateway is configured to allow traffic from any source to the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KjJKiDmPVPjqmCwPk_0MKw.png" /></figure><p>Navigate back to VCN and click on Subnets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xeUJlLVYZcbbEYU4zbb2ow.png" /></figure><p>Click on Public Subnet, navigate to Security, click on the Default Security List for the VCN, click on Security Rules, and review the Ingress Rules.</p><p>Ensure the following Ingress Rules are configured: Allow traffic from all sources to TCP Port 22, TCP Port 8080, and Database Port 1521. If your Oracle AI Database is running on a different port, specify that port accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TYV9Yri2ldaJSn1xki_V8g.png" /></figure><p>With the database and VCN in place, we are now ready to deploy the Agent Factory from the Marketplace.</p><p>Navigate to Marketplace from the Oracle Cloud Hamburger menu and click on all applications and search for “Private Agent Factory”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U147rclDa3DBGk0a2sHGeg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VIZGeN92BHs7JeO-XPfsHA.png" /></figure><p>Click on it and select Launch Stack, choose the appropriate compartment, leave the remaining settings as default, and click Launch Stack again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XePUHz5-Fm9_PMcsxOwGZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xps5RTfRjlEf8aldTor3CA.png" /></figure><p>Choose the appropriate Region and Compartment, configure the Network settings, and select the Public Subnet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ayTDx_MYbgMio4trQvpAUw.png" /></figure><p>The Marketplace image creates a VM. Choose the Availability Domain and the Agent Factory Server Shape. You may select the minimum shape or choose one appropriate for your requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*JCzvC1vI3uvMTXQeGd3pmw.png" /></figure><p>Create an SSH Key Pair. If you are using Windows, download PuTTYgen to generate the SSH keys. If you are using a Mac, use ssh-keygen via the Terminal.</p><p>Upload the Public Key, review the details, and click Create to start the instance creation job.<br>Once the job succeeds, copy the Application URL from the logs in the format: https://&lt;instance_public_ip&gt;:8080/studio/installation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zIEISVeCgIil9gceLZv4aw.png" /></figure><p>Access the URL to view the Sign Up page of the Oracle AI Database Private Agent Factory and start setting up the application.</p><p>Copy and paste the application URL in a browser. You will see a page like below.</p><p>Click ‘Advanced’ and then ‘Proceed to host’.</p><p>Configure User:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0HfdjI8XLKLOG7EUdkM1Lw.png" /></figure><p>Provide the required user details to create your Agent Factory account.<br>Configure the Database Connection by providing your 26ai credentials that were set up at the beginning of this blog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*ZDEn0gZ9OBVkaMPPsDonOg.png" /></figure><p>Download the Wallet from the 26ai Database and upload it when prompted.<br>Click Test Connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*RXdLS-vnjnAkby8fzOzKGg.png" /></figure><p>Click Test connection.</p><p>After a successful Test Connection, the next step is to create the LLM connection.</p><p>To create LLM connection, we need API key.</p><p>To get API key, navigate to IDCS console and search for your user</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JS3hS5k46M7vftc0ZaGdjA.png" /></figure><p>Click on the user and click on API Keys. Download the private key and public key and keep them safe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Aqo8XUDrk2peQ9-2KaeOCA.png" /></figure><p>Click on the user and click on API Keys. Download the private key and public key and keep them safe.</p><p>Choose the public key you downloaded in the previous step and upload it.</p><p>Once uploaded, a fingerprint is generated. This fingerprint and private key are used in the next steps to set up the LLM connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YLzghzV-JauIzWTa54FDLg.png" /></figure><p>Optionally configure the Embedded Model. The embedded model enables in-database vector embeddings, which are used for semantic search and retrieval-augmented generation (RAG) within your agent workflows. Configure this if you plan to use vector search capabilities in your agents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*y88OGt-cSlawg1bOJqr4oQ.png" /></figure><p>That’s it! You have successfully set up the OCI AI Database Private Agent Factory. You can now log in and start building intelligent database agents powered by Oracle’s Generative AI services.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7aec9b0e3c0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OCI AI Meets Oracle Integration Cloud: Powering Next-Generation Adaptive Automation with OCI Gen AI…]]></title>
            <link>https://medium.com/@dilipmail4u/oci-ai-meets-oracle-integration-cloud-powering-next-generation-adaptive-automation-with-oci-gen-ai-0dd5a528abcb?source=rss-85500cd5597e------2</link>
            <guid isPermaLink="false">https://medium.com/p/0dd5a528abcb</guid>
            <dc:creator><![CDATA[Dilip Kumar Panchali]]></dc:creator>
            <pubDate>Thu, 30 Oct 2025 12:20:17 GMT</pubDate>
            <atom:updated>2025-10-31T10:19:42.649Z</atom:updated>
            <content:encoded><![CDATA[<h3>OCI AI Meets Oracle Integration Cloud: Powering Next-Generation Adaptive Automation with OCI Gen AI and Agentic AI</h3><p><strong>The Evolution of Enterprise Automation:</strong></p><p>For years, enterprise automation has been about efficiency, streamlining repeatable tasks, connecting disparate systems, and accelerating data flow. Oracle Integration Cloud (OIC) has been a cornerstone of this transformation, empowering businesses to build robust, scalable integrations. But the world is changing. The rise of Artificial Intelligence, particularly in its generative and agentic forms, is redefining what’s possible.<br>We’re moving beyond simple automation to truly intelligent, adaptive, and autonomous operations. OIC is at the heart of this revolution, transforming from a powerful Integration Platform as a Service (iPaaS) into the central nervous system for your AI-powered enterprise. By deeply integrating with Oracle Cloud Infrastructure’s (OCI) cutting-edge AI services, OIC is enabling a new frontier of automation that understands, reasons, and acts like never before.<br>Let’s explore the core areas of this transformative strategy.</p><ol><li><strong>Direct Generative AI Integration</strong></li></ol><p><strong>Unleashing Creativity and Context with OCI Generative AI Services </strong>The ability of Generative AI to create human-like text, summarize vast amounts of information, and understand complex prompts is nothing short of revolutionary. OIC now provides native, seamless connectivity to OCI’s Generative AI services, bringing this power directly into your integration workflows.</p><p><strong>How it Works:</strong> OIC can directly invoke OCI Generative AI models (including those from Cohere and Meta’s Llama family), passing data from an integration flow for processing and receiving intelligent outputs. This isn’t just about calling an API. It’s about embedding generative intelligence at critical points in your business processes.</p><p><strong>Examples</strong>:</p><p><strong>Automated Content Generation:</strong> Imagine an OIC flow triggered by a new marketing campaign. It can now send campaign details to OCI Generative AI to instantly draft personalized email subject lines, social media posts, or even product descriptions, dramatically reducing manual effort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y-EalGXveNYcwvYCMEqWQg.png" /></figure><p><strong>Intelligent Document Summarization:</strong> A legal department receives hundreds of contracts weekly. An OIC integration can automatically ingest these documents, send them to Generative AI for summarization of key clauses and obligations, and then store the concise summaries in a database for quick access or route them for review.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vFM1i4wEjjz13ltwvhsAyw.png" /></figure><p><strong>Dynamic Communication:</strong> Customer service interactions can be enhanced by OIC flows that analyze a support ticket, use Generative AI to craft a perfectly worded, empathetic response, and then send it to the customer via their preferred channel, all without human intervention until an escalation is truly necessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UwWgrIKuoGAgSjjNtvAnVg.png" /></figure><p>2. <strong>Factual Grounding with RAG</strong></p><p><strong>Precision and Policy with Retrieval-Augmented Generation (RAG) Integrations</strong></p><p>Generative AI is powerful, but it needs grounding in truth. This is where <strong>Retrieval-Augmented Generation (RAG)</strong> comes in, and OIC is now equipped to leverage it within your enterprise integrations. RAG combines the creative power of Generative AI with the factual accuracy of your private, trusted knowledge bases.</p><p><strong>How it Works:</strong> Instead of just generating responses from its training data, a RAG-enabled OIC integration can first query your internal documents, databases, and policy manuals. It “retrieves” the most relevant information and then “augments” the Generative AI model’s response with this factual context, ensuring accuracy, relevance, and adherence to company policies.</p><p><strong>Example</strong>: Automated Invoice Approval with Policy Validation</p><p>Consider an invoice approval process. An OIC integration receives an invoice. Before routing it for payment, a RAG action within the OIC flow can automatically:</p><ol><li><strong>Retrieve:</strong> Query your internal knowledge base (e.g., vendor contracts, procurement policies, pricing agreements) for details related to the vendor, product/service, and agreed-upon terms.</li><li><strong>Augment &amp; Validate:</strong> Compare the invoice line items against the retrieved information. If a discrepancy is found (e.g., unit price exceeds contracted rate, incorrect tax code), the integration can flag it, add a note generated by the GenAI explaining the discrepancy based on policy, and route it to a specific human for review. If all checks pass, the invoice proceeds directly to payment — a truly intelligent and validated automation.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*sdmrQvqv2gLUAMRffMFJcA.png" /></figure><p><strong>3. Adaptive Automation with AI Agents</strong></p><p><strong>The Rise of Agentic AI</strong> <strong>Adaptive Automation : Intelligence Meets Integration</strong></p><p>The way we automate work is evolving. We started with <strong>Manual Work</strong>, moved to automating predictable, repetitive tasks with <strong>Predictable Automation</strong> (workflows, traditional integration), and now we’re entering the era of <strong>Adaptive Automation</strong>, driven by Agentic AI.</p><p><strong>What is Adaptive Automation?</strong></p><p>Adaptive Automation represents a leap forward. Instead of following rigid, predefined steps like traditional workflows, it employs <strong>AI Agents</strong> — intelligent entities powered by Large Language Models (LLMs). These agents can:</p><ol><li><strong>Understand Goals:</strong> You give the agent an objective in natural language (e.g., “Ensure we have enough supplies for next week’s surgeries”).</li><li><strong>Plan Dynamically:</strong> The agent analyzes the goal and devises a plan, deciding which actions are needed.</li><li><strong>Execute Actions using Tools:</strong> This is where integration is crucial. The agent calls upon available “Tools” to interact with systems and perform actions (like checking schedules, querying inventory, creating orders).</li><li><strong>Observe Results &amp; Adapt:</strong> Based on the outcome of an action, the agent observes the result and dynamically adjusts its plan, deciding the next best step. It can handle variations and exceptions without needing every possibility pre-programmed.</li></ol><p><strong>Why Integration Powers Adaptive Automation?</strong></p><p>AI Agents are intelligent, but they need a way to interact with the real world of enterprise applications and data. They can’t check inventory or create a purchase order without the right connections. This is where Oracle Integration Cloud (OIC) becomes essential:</p><p><strong>OIC Integrations = Agent Tools:</strong> Your existing and new OIC integrations (connecting to ERPs, hospital systems, databases, APIs, etc.) become the practical “Tools” the AI agent uses to execute its plan.</p><p><strong>Enterprise Connectivity:</strong> OIC provides the secure, reliable, and pre-built connectivity needed for agents to safely access and modify data in core business systems.</p><p><strong>Orchestration Capabilities:</strong> While agents handle high-level planning, complex multi-step actions can still be encapsulated within robust OIC integrations (predictable workflows) and exposed as a single powerful tool for the agent, combining the strengths of both approaches.</p><p><strong>Framework:</strong> OIC provides the components to define agents, register integrations as tools, manage the interaction patterns (like ReAct or Plan-and-Execute), define guidelines, and ensure observability.</p><p><strong>Interoperability (MCP):</strong> OIC acts as an MCP Server, allowing agents built elsewhere to securely leverage OIC’s integration tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dqkKd0INNfvAa1EEAfJxdQ.png" /></figure><p><strong>Examples</strong>:</p><p><strong>Automated Customer Support Resolution:</strong></p><ul><li><strong>Goal:</strong> Resolve a customer’s complaint about a billing error.</li><li><strong>Agent Actions:</strong></li><li>Receives the customer complaint via chat or email.</li><li>Uses a “Get Customer Details” tool (an integration with CRM) to retrieve the customer’s account and billing history.</li><li>Uses a “Check Invoice” tool (integration with billing system) to analyze the specific invoice mentioned.</li><li>Uses a “Compare Billing Rules” tool (potentially querying a knowledge base or rules engine) to identify the discrepancy.</li><li>If an error is confirmed, uses a “Create Adjustment” tool (integration with billing system) to correct the invoice.</li><li>Uses a “Send Notification” tool (integration with email/messaging system) to inform the customer of the resolution, explaining the error and the correction made.</li><li>If the issue is complex or requires authorization beyond its scope, it uses a “Create Support Ticket” tool and assigns it to a human agent, providing a summary of its findings.</li><li><strong>Adaptability:</strong> The agent dynamically chooses which tools to use based on the customer’s specific complaint and the data retrieved. It doesn’t follow a single fixed script.</li></ul><p><strong>Proactive Supply Chain Management :</strong></p><ul><li><strong>Goal:</strong> Ensure optimal inventory levels for upcoming production runs or scheduled services (like surgeries).</li><li><strong>Agent Actions:</strong></li><li>Uses a “Get Production Schedule/Service Schedule” tool to identify upcoming needs.</li><li>Uses a “Get Bill of Materials/Required Supplies” tool for each planned item/service.</li><li>Uses a “Check Current Inventory” tool to see current stock levels.</li><li>Uses a “Check Supplier Lead Times” tool (integration with supplier B2B systems or database).</li><li>Analyzes the schedule, required materials, current inventory, and lead times according to predefined rules/guidelines (e.g., maintain 120% of required stock, factor in lead times).</li><li>If a shortfall is predicted, uses a “Create Purchase Order” tool, potentially selecting the best supplier based on lead time or cost.</li><li>Monitors the order status using a “Check Order Status” tool.</li><li><strong>Adaptability:</strong> The agent can adjust order quantities based on real-time inventory checks, prioritize orders based on schedule urgency, and potentially even select alternative suppliers if lead times are too long, all without manual intervention for each step.</li></ul><p><strong>Conclusion</strong></p><p>Adaptive Automation, powered by Agentic AI and grounded by robust integration platforms like OIC, unlocks the potential to automate more complex, dynamic, and end-to-end business processes, enabling greater business agility and insight. Integration provides the essential bridge between the agent’s intelligence and the enterprise systems where work actually gets done.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0dd5a528abcb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stay Informed on OIC Message Consumption with OCI Metrics and Alerts]]></title>
            <link>https://medium.com/@dilipmail4u/stay-informed-on-oic-message-consumption-with-oci-metrics-and-alerts-a0f10aadb1ed?source=rss-85500cd5597e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0f10aadb1ed</guid>
            <dc:creator><![CDATA[Dilip Kumar Panchali]]></dc:creator>
            <pubDate>Thu, 20 Mar 2025 10:07:06 GMT</pubDate>
            <atom:updated>2025-03-21T08:48:07.571Z</atom:updated>
            <content:encoded><![CDATA[<p>OIC Gen3 ver 25.02: Enhanced Metrics and Alert Management</p><p>Oracle Integration Cloud (OIC) Gen3 ver 25.02 has introduced new and improved out-of-the-box metrics to help you better monitor and manage your resources. With these enhancements, you can now effortlessly measure the resource usage within each compartment and determine whether you have purchased an appropriate number of message packs.</p><p>Managing Access to Metrics</p><p>To manage metrics effectively, you must have the necessary permissions within the Oracle Cloud Infrastructure (OCI). Specifically:</p><ul><li>You must be part of an <strong>OCI group</strong> that has been assigned a <strong>manage policy</strong> to access and manage metrics.</li><li>To verify your permissions, sign into your <strong>OCI console</strong> and check whether you can view and manage the metrics.</li></ul><p>If you are an administrator with <strong>manage access</strong>, you automatically have permission to view message metrics for the compartment. On the other hand, if you have <strong>read-only access</strong>, you must belong to an OCI group with a <strong>read metrics policy</strong>.</p><p>allow group &lt;group_name&gt; to &lt;verb&gt; &lt;resource-type&gt; in compartment &lt;compartment-name&gt;</p><p>allow group oci-integration-admins to read metrics in compartment OICCompartment</p><p>Navigating the Metrics in OCI</p><p>To view the metrics:</p><ol><li>Open the <strong>Navigation Menu</strong> and go to <strong>Developer Services</strong>.</li><li>Under <strong>Application Integration</strong>, select <strong>Integration</strong>.</li><li>Click on your <strong>Oracle Integration instance</strong> to view it.</li><li>In the <strong>Metrics</strong> section, you will see graphs with default values, including:</li></ol><p>A new metric has been added to help you verify any overages:</p><ul><li><strong>Consumed Message Packs from Overage:</strong> Displays the number of message packs used to cover any message usage overage.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*YaFokkAFie1r3YxQniVl4w.png" /></figure><p>There are numerous options with OCI metrics for OIC to monitor consumption metrics. For example, suppose you have configured one message pack that can process 5,000 messages per hour, but you would like to receive a notification when the daily consumption exceeds the configured limit. Here is one approach to get notified.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hLTi3y7IYL_cHbeFaATSXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DeKx0U58IecZBs_VCi-jww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4s7EvYB0Zxf_2Ot8dUjZXA.png" /></figure><p>You can view this metric, which has already started displaying the configured number of messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aO1-zbwTMy2Il8-p_jYF8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*01ifmZIOHXZTpp6eG1O7Rw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1MrVmvwOYsQoWc64rZlTYA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0f10aadb1ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimize File-Based Integration Flows with Oracle Integration Cloud (OIC) Events]]></title>
            <link>https://medium.com/@dilipmail4u/optimize-file-based-integration-flows-with-oracle-integration-cloud-oic-events-65f7dce69f17?source=rss-85500cd5597e------2</link>
            <guid isPermaLink="false">https://medium.com/p/65f7dce69f17</guid>
            <dc:creator><![CDATA[Dilip Kumar Panchali]]></dc:creator>
            <pubDate>Mon, 18 Nov 2024 11:04:00 GMT</pubDate>
            <atom:updated>2024-11-18T11:04:00.015Z</atom:updated>
            <content:encoded><![CDATA[<p>In integration scenarios, especially those involving larger number of files from multiple sources, efficient processing is key to maintaining performance and reliability. Oracle Integration Cloud (OIC) offers a powerful solution with its event-driven architecture, enabling seamless and scalable file-based integrations. By structuring integrations around inbuilt OIC events, businesses can effectively manage file ingestion, record processing, and endpoint application integration. This blog explores a step-by-step approach to designing an event-based integration solution in OIC, detailing how each component — Publisher, File Reader, and Business Logic flows — works together to maximize throughput, optimize resource utilization, and ensure smooth data transfer across systems.</p><p>Oracle Integration Cloud (OIC) offers a structured approach to handling file-based integrations by leveraging inbuilt events for streamlined processing. This design is typically divided into three main integration flows, each playing a distinct role in managing and processing data efficiently:</p><p>1. <strong>Publisher Integration Flow</strong></p><p>This flow identifies and reads files from specified directories, publishing each filename and its path as an event for downstream processing.</p><p>2. <strong>Subscriber Integration Flow — File Reader</strong></p><p>Upon receiving an event with the filename and path, this flow retrieves the content of the specified file and publishes each individual record within the file as a separate event.</p><p>3. <strong>Subscriber Integration Flow — Business Logic</strong></p><p>This flow receives each individual record as an event and applies the required business logic. It then integrates with the endpoint application to complete the process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dQOvt25Uo-ay8hQJTLqGaA.png" /></figure><p>Detailed Step-by-Step Process</p><p>1. <strong>File Listing from Source Application</strong></p><p>OIC lists files from the source application using an appropriate adapter, which may include an Application Adapter or Technology Adapter. Supported sources range from FTP servers to IBM COS buckets, Amazon S3, or Azure Blob storage. Depending on the source, the relevant adapter lists the files available for processing.</p><p>2. <strong>File Processing</strong></p><p>Each file identified for processing is handled individually, ensuring a controlled and efficient flow.</p><p>3. <strong>Event Publication</strong></p><p>For each file, an OIC event is published containing the filename and path details.</p><p>4. <strong>File Content Retrieval by Subscriber</strong></p><p>The Subscriber Integration Flow consumes the event and retrieves the file content based on the provided filename and path, typically using the FTP adapter. Each file initiates a separate OIC instance, distributing the processing load across nodes to improve performance.</p><p>5. <strong>Record-Level Event Publishing</strong></p><p>For each record within the file, an OIC event is published with the specific record data, facilitating targeted processing of each piece of content.</p><p>6. <strong>Record Processing by Business Logic Subscriber</strong></p><p>The Business Logic Subscriber Integration Flow consumes the record-level events, with each record triggering a new OIC instance. This approach further distributes processing, enabling more granular control.</p><p>7. <strong>Applying Business Logic and Target Integration</strong></p><p>Within the Business Logic flow, the required business operations are executed. The processed data is then sent to the target application via an appropriate Application Adapter or Technology Adapter, completing the end-to-end process.</p><p>This design leverages OIC’s inbuilt event framework to optimize resource usage, ensuring scalability and high performance in file-based integrations. By dividing the process into specific, event-driven flows, OIC enables reliable and efficient data handling across various applications and storage sources.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65f7dce69f17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Guide to Attaching Documents Programmatically in Gen3 Oracle Process Automation Using REST API]]></title>
            <link>https://medium.com/@dilipmail4u/a-guide-to-attaching-documents-programmatically-in-gen3-oracle-process-automation-using-rest-api-3cd2cbba1428?source=rss-85500cd5597e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cd2cbba1428</guid>
            <dc:creator><![CDATA[Dilip Kumar Panchali]]></dc:creator>
            <pubDate>Fri, 16 Aug 2024 16:31:53 GMT</pubDate>
            <atom:updated>2024-08-16T16:31:53.872Z</atom:updated>
            <content:encoded><![CDATA[<p>A Guide to Attaching Documents Programmatically in Gen3 Oracle Process Automation Using REST API</p><p>In this blog I will be discussing about attaching documents to the user task programmatically. We usually come across the scenarios wherein we wanted to review the related document in the user task. Consider the scenario there is a task for invoice approval, we may also wanted to attach invoice attached it.</p><p>Consider we have a process which creates a human task. We wanted to attach a document to the task programmatically using REST API.</p><p>Let us get started by creating a simple Process as shown below, Consider we have a simple form start process flow as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*5gozUFZ1NBSg5B68Kz15jA.png" /></figure><p>Create a simple invoice form and attach it to the start event as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*SZjRjpqx5--yT7lluJaiMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*bmAoQyRvOvVcpt655PE0EQ.png" /></figure><p>Drag and drop the approval task and map all the form fields to the task request. Once you activate and deploy the flow, the app will be visible in the workspaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*XdpoQTTXJnpbkY26iSXs4g.png" /></figure><p>Initiate the workflow by opening the deployed app, filling in the details, and a task will be created and await approval. A task has been created for the team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*52x6k_Y12lOCNx7gLcUT7g.png" /></figure><p>Now consider that this task needs to be created programmatically and also requires receiving the document as an attachment. I can claim this task and retrieve it under my name, or I can retrieve all the tasks associated with the group.</p><p>Once you claim it, the task will be moved to the ‘My Tasks’ tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*fKgfWZ4_S3JEAQeVog3C7g.png" /></figure><p>We intend to trigger the process flow and also attach a document programmatically in the Documents section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*RHcoYx2MTJYPks-61YRR5Q.png" /></figure><p>High-level overview of the solution as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*6HjZDf9EDml6coISZqgCBg.png" /></figure><p>Oracle Cloud Infrastructure Process Automation REST APIs and REST endpoints exposed are protected using OAuth token-based authentication.</p><p>Prerequisite steps to access OPA REST APIs using OAuth token-based authentication are as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S5G-jekrgJPf0s1bbJ55Hw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*OZ_dF0pBs3DWjuJL7ew0JQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*MTpawBl4oxkM_oQjraouSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*JAo_3QSoCLqkV3AHNmhXEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*fx0Y3ClbF_6Sh-MRBjt5IA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QvTEuNevV58dpYiN5NJPyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*rDmwP6KR4AL2IIgdeqYn6Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*oq0TDYuaUm2aljCQMod4Zw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Kyq_VH3hbNujewRob3kbQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*yhNqU65MZsxfhFPuRD5byA.png" /></figure><p>Now let us focus on developing an integration flow in Gen3 to trigger the process flow.</p><p>We will start by obtaining the list of tasks based on the filter criteria. Use the following <a href="https://docs.oracle.com/en/cloud/paas/process-automation/rest-api-proca/op-tasks-get.html">API</a> to retrieve the tasks for a process.</p><p>Filter criteria may vary depending on the need. I used the filter criteria below to retrieve my related workflow tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*NDfllv0s9FiRPEFjnWVmPg.png" /></figure><p>Let me guide you through the screenshots for generating the Auth token, which is a crucial step in obtaining OAuth security credentials. One of the primary steps, creating an OAuth Confidential app, has been covered above. Now, let’s look at the steps in the integration flow.</p><p>Create a REST connection in OIC Gen3 without a security policy, as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*_DBn8e6F_xF2V9igI_wqsg.png" /></figure><p>Create a REST connection for the process with the process cloud URL, as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*fcOQCGMIA73pZkD-ZZQv-w.png" /></figure><p>Create a trigger-based REST connection for an integration flow to be exposed as a REST API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*mdnargkYNM-mwymIQMgfOA.png" /></figure><p>Create an application-based integration.Drag and drop the REST trigger connection and follow the screen shots and check the check boxex mentioned in the following screen shots as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*zi3DPjBWmV10rdgk-krfqQ.png" /></figure><p>Create an application-based integration. Drag and drop the REST trigger connection, then follow the screenshots and check the checkboxes indicated in the screenshots below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*adrv3K_7Hh7999BWFZQtDQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*XBxoSAKyQB7n9Qfwx01V8A.png" /></figure><p>Please refer to the inline JSON sample provided below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*Ot3ym4b24KQTSTp1QqvXCg.png" /></figure><p>Click, finish!</p><p>Drag and drop the REST Invoke OAuth Connection, and also check the boxes shown in the screenshots below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*hkhm_TnsN2yZWcW09OmQaA.png" /></figure><p>Add query-parameter as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/1*ZuYsLAIaz_Q32tLxL1QQcA.png" /></figure><p>Ensure to check the check box send query parameters as form data in message body</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*Upm0TB7nJ0KXwq7D6c0dtQ.png" /></figure><p>Edit the mapper as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*jsE7_cTmT4D-QiJFAk1QTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*gW4tHdlAJBpkTNOmmPv06g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/1*6jk0x1u79qq_K7dli-ZOSA.png" /></figure><p>Click finish.</p><p>Up to this point we have completed generating the OAuth token and the flow looks like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*SKNdIW3vUkEtGN75QrXxHg.png" /></figure><p>Now Drag and Drop the Process rest connection and follow the steps mentioned in the screen shot and ensure to check the relevant check boxes mentioned in the screen shots</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*imqNyZ5tqDVCIHmfue1v7g.png" /></figure><p>Provide the resource URI as mentioned also ensure to add query parameters shown in the screen shot below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*oR5yubLBJiAPm3L3XIfbsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*TchSiQHSBk0dfQSL7qe3oQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*SAHwsfSCV2eEgoqG8MxobQ.png" /></figure><p>Attach the Json response inline as show below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ygGZ7hmQp2ikrMAfeDhTVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*zUcr8BMfp5LQFmOVTB-FBw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*aYRPrxYed2rYeB4-sK6Naw.png" /></figure><p>You can obtain this by sending a sample request using Postman.Refer the <a href="https://docs.oracle.com/en/cloud/paas/process-automation/rest-api-proca/op-tasks-get.html">API</a> documentation for more details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*djRKYiWJU9Gk19AqizjX0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*4tRWse3BDi3tBNeBCK0TyA.png" /></figure><p>Up to this point, we have completed the flow to retrieve the open tasks for the given process application. The integration flow is shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*lMRGnbf9mdTXxwNA84o08Q.png" /></figure><p>In the next steps, attach the document by using the tasked received in the previous step.</p><p>We are reusing the same Process REST connection. Drag and drop the Process REST connection into the integration flow again, and follow the steps shown in the screenshot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/357/1*LUCYC9plx9gLC9uuQKzEaQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*uThFjNGIS6ZK4pVPYnNksQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*VIhGsJYKN56twcGFgEziJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*yI-C0FZu35GDM0K-ft1cXw.png" /></figure><p>Attach the sample JSON response</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*rzhx_j2s0llJ0k4BfF2qlw.png" /></figure><p>Map the response back to the client as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*2Vjsurt41adf_V_NqPdnxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*IvT54IR-cFgNIPnwq0PV-Q.png" /></figure><p>Activate and run the flow. Before we proceed, let’s ensure that a task is created first in Oracle Process Cloud.</p><p>Navigate to the Process App and submit a request as illustrated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*9sTy2STrUstJy6bWXSt9PQ.png" /></figure><p>Click Submit and Navigate to tasks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/165/1*LMdxauTnRe2m8ebS7CKEvw.png" /></figure><p>Click Team Tasks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*mC0aYUqwz3zxeN2FQJrOGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*dPTQkQwhmF7msa7z1M66tw.png" /></figure><p>As you can see, no document is attached at this time. Once we run the integration flow, a document will be attached to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*_GnsOBBRDLNFdvICYhJXXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*0XbptBgRWEiZVxmrjgYXwQ.png" /></figure><p>Process has been run successfully as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*aFfKtpU2WJRwzb746wALcA.png" /></figure><p>Let us navigate process task and see if the document has been attached?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*KHSJ-0yJoneoTEOlxBd0BA.png" /></figure><p>Note that we are testing this integration using the Integration Cloud REST client. Ideally, this can be consumed externally by any REST API. Also, we can configure it as a scheduled or FTP-based integration to pick up files from an SFTP client and process them at runtime.</p><p>***Happy Learning***</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cd2cbba1428" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generate a BIP report and save the response to a file using OIC.]]></title>
            <link>https://medium.com/@dilipmail4u/generate-a-bip-report-and-save-the-response-to-a-file-using-oic-461a6bd3a45d?source=rss-85500cd5597e------2</link>
            <guid isPermaLink="false">https://medium.com/p/461a6bd3a45d</guid>
            <dc:creator><![CDATA[Dilip Kumar Panchali]]></dc:creator>
            <pubDate>Fri, 09 Feb 2024 14:59:17 GMT</pubDate>
            <atom:updated>2024-02-09T14:59:17.960Z</atom:updated>
            <content:encoded><![CDATA[<p>Generate a BIP report and save the response to a file using OIC.</p><p>To trigger a BIP Report, we can employ the SOAP adapter in OIC.We start by establishing a SOAP connection.</p><p>The standard Fusion SOAP BI Service URL is: https://&lt;server&gt;/xmlpserver/services/ReportService?wsdl For example: <a href="https://xxdemo1.xx-fa.oraclexxxx.com/xmlpserver/services/ExternalReportWSSService?WSDL">https://xxdemo1.xx-fa.oraclexxxx.com:443/xmlpserver/services/ExternalReportWSSService?WSDL</a> For further details, you can refer to this <a href="https://docs.oracle.com/en/cloud/paas/integration-cloud/soap-adapter/call-oracle-fusion-applications-business-intelligence-publisher-report-services.html#GUID-E2BC2F7E-3FA3-4996-9983-01FF2AE81E41">link</a></p><p>Please click on the “Connections” page and then select the “Create” button. Next, search for the SOAP adapter and proceed to create a SOAP connection by entering the necessary details. Once you have provided the relevant information, test the connection. Upon successful establishment of the connection, it will appear as depicted in the screenshot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1EnmmMamStGsG0fRnwqNFw.png" /></figure><p>Next step is to create SFTP connection using FTP Adapter as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fEOv3rXfGzGkKzR3jsuLwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nfgXeOf5FMoBUFn7gPDWMQ.png" /></figure><p>Now that you have created source and target connections, let us proceed with developing an integration.</p><p>Create Scheduled based integration as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GCvsQIwYIxDVEnJpTE-CbA.png" /></figure><p>Drag and drop each BIP SOAP connection that you created in the first step, following the wizard as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*27nu7bfkK__PrIOsqtgFXw.png" /></figure><p>Click continue and select the details as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9AoYyKK1kwD3UfsTTY_Wog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8OtoY5-d4ByImZMiSflBRw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ceqe-_8hBIkB4VqRw8i6cg.png" /></figure><p>A mapper gets created as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z7J058ZOKg7lbfIiptUhKw.png" /></figure><p>Edit the mapper and pass the relevant report details that you want to execute as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pftDzl6ex1N1OvTo010_Pg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a3JvcfF2V2qto7msp2jomg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2z1Dn0NE-W77tIOsJdEo_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W0D5ObCoRJMiYVi6P4u9XA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cKzU4VK6r3RU11veKZ8vIw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UG1cFVK5AAbqyQ6rX1F2xQ.png" /></figure><p>Drag and Drop the FTP connection which was created in second step and follow wizard supply relevant details as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pVVFhZ2UMMmwJiU68sK2ng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kuNvnRo9Kam8y4No1244zA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CCAe7k-LftmK3hGtDBwBag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tl5B2kAaG5zDTzDHSZGpgQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t7IOyVWZ8ZjDXK_Mba24PA.png" /></figure><p>Click on Finish.</p><p>A mapper is generated as shown below. Edit the mapper to pass the ‘runReport’ bytes to the file reference. Please note that the report response is base64-encoded; we need to decode it using the ‘decodeReferencetoBase64’ function as demonstrated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RRfGj15yeyVPsOtAwUPhgQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a-69Lvaaa0HJ_R9JczzhJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uDvPJV5onFGUWTFVe2a6uw.png" /></figure><p>After completing the flow, it appears as shown below. Click on ‘Save,’ ‘Activate,’ and ‘Run’ to proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*huJRBK97uAxnYp2seFjjLQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lWSP2YUWLmQdUXTp2MmxLg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FpKghhBi3u78bpc6yTXt3A.png" /></figure><p>You can see a .csv file gets generated as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MrVLzNNqmXGkH42ztevE9w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=461a6bd3a45d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Boost Efficiency & Accuracy: Leverage OPA AI Document Understanding Feature to Process Documents in…]]></title>
            <link>https://medium.com/@dilipmail4u/boost-efficiency-accuracy-leverage-opa-ai-document-understanding-feature-to-process-documents-in-b40b538caeff?source=rss-85500cd5597e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b40b538caeff</guid>
            <dc:creator><![CDATA[Dilip Kumar Panchali]]></dc:creator>
            <pubDate>Fri, 05 Jan 2024 08:21:18 GMT</pubDate>
            <atom:updated>2024-01-05T08:21:18.381Z</atom:updated>
            <content:encoded><![CDATA[<h3>Boost Efficiency &amp; Accuracy: Leverage OPA AI Document Understanding Feature to Process Documents in OCI Process Automation</h3><p>Streamline form automation with the new Document Understanding form control! Simplify your workflows by automatically extracting key information from uploaded documents. This new control is ideal for processes triggered by a form start event that requires a file upload.</p><p>It currently supports following file types: 1. Driving Licenses 2. Passports 3. Receipts 4. Invoices</p><p>In scenarios where the ability to upload any of the specified file types and extract data is integral to a process flow, this feature offers significant value. It enables seamless document processing without the need for a separate subscription to the OCI Document Understanding service SKU.</p><p>Consider the below example as we endeavor to implement it utilizing the OCI Process Automation IDP feature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*QQJK8_ajAEtpfHdQf3F6bA.png" /></figure><p>Access OIC-OPA and name the Process Application, then navigate to the UI section to create a web form and select the created form to proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*5pmO0D9abMkmpC_H45cgvQ.png" /></figure><p>Drag and drop the Document Understanding Service form control onto the canvas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*MMMoHMN3r1vRgyk2YjpjOw.png" /></figure><p>Click on Toggle properties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*XwCkVdWUjmXQqDew577vBw.png" /></figure><p>Select Drag and Drop Control and select Document tab as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*9lEmmefEQuL6A6Rs2rcdVQ.png" /></figure><p>Now you can see that the ‘Generate Controls’ tab is enabled, allowing you to generate a dataObject based on the document type you have selected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*U05syA6s0E7WmcWUq4IpKw.png" /></figure><p>To test this feature, click on the preview button and drag-and-drop the invoice document for quick verification</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*2r9J7lMsiIvYESrvEX4OcA.png" /></figure><p>Let’s return to our use case. If the invoice amount is greater than $1000, it is considered auto-approved; otherwise, create a human task for approval. For this purpose, design another UI to attach to the human task with the necessary fields.</p><p>Drag and drop a panel, section, or repeatable section, and create the required fields according to your preferences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*ERgbCqbNi281HRBHjojrYA.png" /></figure><p>I would like to push the data to the database, so I have created an integration that needs to be imported into my process application. Navigate back to Process App and select connectors as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*SOJhLbLTWYYjm4CU6WNkuA.png" /></figure><p>It provides two options, as shown below: users can either import an external API or an integration developed in OIC.</p><p>I imported the OIC interface developed in Oracle Integration Cloud (OIC) for this demonstration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*atjebEA-XOMY-F1T7dqpqw.png" /></figure><p>After a successful import, it appears as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*t5HzqS_LxkJwmzsmHu5naQ.png" /></figure><p>Create a structured process by clicking on add button as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*-utxht0ssw7749oeYyui7g.png" /></figure><p>Create two roles as shown below, and add users or groups as per your requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*2Jm4v4swzK8JM9Usg4n02A.png" /></figure><p>Create a process as outlined below and assign roles to each swim lane.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*DEJGOj0Jq_sVzmfE5nCAEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*JurUwUi_iL-SY6_UutqCXw.png" /></figure><p>Click on the “Human Task Activity” and “Integration Activity” to perform the mappings as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*Q2Dd-MPcPgYWUUnbwUNwVQ.png" /></figure><p>Given that we have multiple line items, it is necessary to execute a transformation and mapping process, as illustrated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*4a8kz_DxCHj2IFWYa2UcLw.png" /></figure><p>Click “Activate” to initiate the process deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*fkGxjSrucqhjac0AgwbUkA.png" /></figure><p>After a successful deployment, the application can be viewed as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*y1lbxPV3S3Z5tE9EoM83NQ.png" /></figure><p>Open and execute the application by dragging and dropping the invoice document in this scenario and click on Submit to initiate the workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*CC3uhCDWsBKt84Pg1YsNEg.png" /></figure><p>Navigate to the “Tasks” section to see the tasks that have been created for the team.</p><p>Observing the unclaimed task, one can note that it was generated due to the invoice amount exceeding $1000. The task can be claimed by the user, who can then take the necessary action as indicated below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*0Catj9V2Elel0i0iVmCubQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*trUXpY5oPc497gFPCYBTNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*z7xAdK94eptPnJbONIhQKA.png" /></figure><p>After successfully claiming a task, navigate to “MyTasks,” click on the specific task, and take the necessary action as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*PUuiMjqy0IX9easnluLbvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*fiYG0APJK7y6ptPOEkVovA.png" /></figure><p>The corresponding flow is executed based on the action. Upon clicking “Approve,” the data is pushed to the database, as illustrated below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*6jMcI7HtVuhyakxYr7x69w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*5K2fyJsfJfTcQXACQGIhHQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b40b538caeff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Streamline Document Processing with OIC: Harnessing the Power of OCI’s AI Capabilities]]></title>
            <link>https://medium.com/@dilipmail4u/streamline-document-processing-with-oic-harnessing-the-power-of-ocis-ai-capabilities-d0fa23440946?source=rss-85500cd5597e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0fa23440946</guid>
            <dc:creator><![CDATA[Dilip Kumar Panchali]]></dc:creator>
            <pubDate>Sat, 08 Jul 2023 12:29:51 GMT</pubDate>
            <atom:updated>2023-07-08T12:29:51.516Z</atom:updated>
            <content:encoded><![CDATA[<p>We often encounter the need to process PDF documents and image files as an integral part of our larger business operations.<br>In such instances, harnessing the power of OCI AI Document and Vision services, in conjunction with Oracle Integration Cloud, enables us to automate our end-to-end business processes.</p><p><strong>OCI AI Document Understanding Service</strong>: This service is designed to extract information from unstructured text documents and automate document-centric workflows. It leverages machine learning models to analyze documents and extract structured data from them.<br><strong>OCI AI Vision Service</strong>: This service focuses on computer vision tasks and enables developers to build applications that can understand and interpret visual content. It provides various capabilities for image and video analysis.</p><p>Let’s explore a scenario where we receive PDF invoices via Outlook, SFTP, or even through a REST API. Our goal is to process these files and kickstart the subsequent steps in our business process.</p><p>Now, let’s delve into the high-level solution that combines the capabilities of OIC and OCI AI to accomplish this seamlessly.</p><p>We may have various use cases for example retrieving files from Outlook, a REST service, or SFTP. In these scenarios, an integration solution plays a central role, utilizing an AI service to extract data from the document and process it according to requirement. Further processing, we have the option to either introduce a human workflow by creating a human task in the process cloud or directly display the information on the frontend application. Additionally, we can explore other possibilities and alternatives based on the specific requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ScYFtP1nNFDw6ArCiwRzw.png" /></figure><p>I would like to walk you through a simple example. Let’s imagine that we have a PDF invoices stored in an SFTP location. Our objective is to move the PDF Invoice files to a target location by renaming it with Corresponding Invoice_Number.pdf. To achieve this, we’ll need to extract the invoice number from the PDF and then rename the file with that invoice number when writing it to the target FTP location.</p><p><strong>Prerequisites</strong></p><p>Set up the following policies to grant access to the OCI AI Document Understanding service.</p><ol><li>Create Policy to grant users Document APIs access (Required): allow any-user to manage ai-service-document-family in tenancy</li><li>If you want to limit access to a user group, create a policy with the below statement: allow group &lt;group-name&gt; to use ai-service-document-family in tenancy</li><li>Policy to access input document files in object storage (Recommended): allow group &lt;group_in_tenancy&gt; to use object-family in tenancy</li><li>Policy to access output location in object storage (Required): allow group &lt;group_in_tenancy&gt; to manage object-family in compartment &lt;output_bucket_located_object_storage_compartment&gt;</li></ol><p>Let’s navigate to the OCI AI Document Service on the OCI Cloud Console as highlighted below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1LVo_8ZfPho_8PcKkQWMqQ.png" /></figure><p>You will find various options, such as text extraction and table extraction, among others. You can choose the one that best suits your use case. In this particular example, I have utilised the text extraction option to extract the invoice number. However, the key-value extraction option can also be used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TcHsqOa57S_b69y7kmkQRA.png" /></figure><p>Click on any of the above highlighted options to analyze the document.You can analyze with sample documents avaialble or you can also drag and drop the one you want to analyze as shown below.I have used sample Invoice.pdf for this example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DUkJNO6hfiume5ph19Vr7Q.png" /></figure><p>Once you analyze it, you will receive a request and response payload. You also have the flexibility to experiment with the words and lines present in the document. In our particular case, we are specifically interested in the invoice number. If you examine the document closely, you will notice that the invoice number appears immediately after the term “Invoice Number”. We can utilize this logic to locate and extract the invoice number. This can serve as a foundation for developing your basic logic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R-hMvLLmDcCoF1-ynyV6WQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8DIkhtRRX8T5LxCUwYwCFQ.png" /></figure><p>Analyzing the document through the user interface (UI) will help you understand how this functionality works. We will utilize the REST API of this AI Service for implementing this functionality.</p><p>In order to extract data from a PDF document, we need to utilize the CreateProcessorJob REST API. Here is the link to the API documentation:<a href="https://docs.oracle.com/en-us/iaas/api/#/en/document-understanding/20221109/ProcessorJob/CreateProcessorJob">CreateProcessorJob REST API Documentation</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pqPyFN3X95qiLBV8KZ9qeQ.png" /></figure><p>The CreateProcessorJob REST API is used to create a job for reading the document, and the response provides us with the JobID and Status. As an input parameter, we are required to provide the object storage bucket name where the extracted text response of the PDF is stored.</p><p>The OCI AI Document Understanding Create Processor REST API functions as depicted below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4nM2Q9-eH94t8ja_VFmAOA.png" /></figure><p>Please note that:</p><ol><li>Providing the name of the Object Storage is necessary as input parameter to the CreateProcessorJob API</li><li>As a synchronous response, we receive the Job ID and the corresponding status.</li><li>If the Job Status is marked as successful, we can proceed to retrieve the response from the Object Storage.</li></ol><p>Let’s move on to Integration Cloud, and here is the high-level overview of how we are going to achieve this in Integration Cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aDRrED4w0qJGq7UhOPX23A.png" /></figure><p>Configurations</p><ol><li>FTP Connection</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qhQmuRXHNZl0qhF8IDYfjw.png" /></figure><p>2. REST Connection with OCI Signature Security Policy- OCI AI Document Service Connection</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LjlXYoIbI2X1GzQKorOGPw.png" /></figure><p>You can find API Reference end points at this location: <a href="https://docs.oracle.com/en-us/iaas/api/#/en/document-understanding/20221109/">Document Understanding REST API Connection URL End Points</a></p><p>To set up the OCI Signature Security Policy, a fingerprint and a pair of public and private keys need to be generated. If you are already familiar with the process of generating a fingerprint, you can ignore this. Otherwise, please follow the steps provided below:</p><p>Generate Public and Private Key with the following openssl Commands, Please install OpenSSL if you don’t have it. By default, Mac already has OpenSSL.</p><ol><li>openssl genrsa -out oci_api_key.pem -aes128 2048</li></ol><p>2. chmod go-rwx oci_api_key.pem</p><p>3. chmod go-rwx oci_api_key_public.pem</p><p>4. openssl rsa -pubout -in oci_api_key.pem -out oci_api_key_public.pem</p><p>Generate a fingerprint for the identified user who has access to the AI Doc service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lGkLEwzEoLTpfPJvZdyxyw.png" /></figure><p>Once you upload a fingerprint gets generated. Please note that you have to supply private key which was generated as a pair in the previous step. Tenancy OCID can be taken from profile screen as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p6WSITijbQKqfXBrMHd8yQ.png" /></figure><p>The User OCID can be obtained from the identity, as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ovch2-YuJssJawxvwzzSWQ.png" /></figure><p>3. REST Connection with OCI Signature Security Policy- A connection to invoke OCI Object Storage Bucket</p><p>Here is the Object Storage Service API Reference End Points Documentation: <a href="https://docs.oracle.com/en-us/iaas/api/#/en/objectstorage/20160918/">API Reference End Points</a></p><p>Please refer to the following screenshot for instructions on configuring the connection to OCI Object Storage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dAWQeGx0OO2jT6glK4OHZg.png" /></figure><p>As mentioned previously, the extracted text response of the PDF is stored in an OCI Object Storage bucket. Therefore, we need to create an Object Storage bucket that will be used as an input parameter for extracting the PDF text response. I have created a bucket with a name DocUnderstanding as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XexlB221SEmynOgZ32SbTg.png" /></figure><p>Now, let’s examine the entire integration flow step by step. For ease of understanding, we will refer to it as Flow1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PeawQdW2fhkUhtKbyJR71g.png" /><figcaption><strong>Integration Flow1</strong></figcaption></figure><p>Let us double click on CreateDocumentUnderstanding Service Connection:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qdADnv3bQ8HSyHVCnSnfmQ.png" /></figure><p>Click “Next” and provide the sample JSON payload inline in the request. You can obtain the sample JSON payload from the OCI AI Console Request and Response section. Please refer to the aforementioned steps in the OCI AI Console walkthrough for more details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5NArkAzhY9u02y_ZE4mKiQ.png" /></figure><p>Click “Next” and provide the response JSON payload inline. You can obtain the response JSON payload from the API documentation. An example of the response JSON payload is shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*64SbdK7uO0DsaQpwZpi31w.png" /></figure><p>We have completed the configuration of the OCI AI Document Connection service in the integration flow with the above step. Now, let’s examine the mapper to determine the values to be passed for the request payload of the AI Service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lxp9YKleerFoCz3V-I-E_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qU1tMJmmvASDziESyjWKWQ.png" /></figure><p>The synchronous response from the AI service is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qzVzU1ChA7H-JphGmoT_cA.png" /></figure><p>Now, let’s proceed from the above flow.Please note that I haven’t included an if condition to verify if the job is complete. It is recommended to add if condition However, since the document has been extensively tested proceeding without the if condition in the current example</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q251nfRawaHFD9jKwww6Qw.png" /><figcaption><strong>Integration Flow Continuation…</strong></figcaption></figure><p>Let us double click GetDocContentfromObjectStore and it’s corresponding mapper:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FpxFGkzBVCy5Z_BGRTAeIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Zbz5Fkl5zo523XuBQ-oJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l0lwO6e3RM46u7pi_tnejw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Isj6GyvN521BGiSp_z-5qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VpWBzAJywSr30oc4IJ3VvQ.png" /></figure><p>Refer to the example below to observe the folder structure and the location of the actual JSON payload upon successful execution from the integration cloud:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MceclGIsWGQfEScioJtJWA.png" /></figure><p>Please refer to the following screenshots for the next two steps: staging the response and retrieving it according to the API Document Response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T7ykbjYSQyDvafbqX3wnIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Y4uK7meGb3gi8eRIwvTqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*crpqVATftIg3bkLY9Rd_uw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5pkrwxJ0ecWfDGMzOaOewQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eNYK7KAslgDC84SVMEfRRw.png" /></figure><p>Please note that need to encode StreamReference when passing it to opaqueElement</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s0ccRQT2Q3HyNnXvcMuHrA.png" /><figcaption>Mapper for StageObjStoreResponse</figcaption></figure><p>Now let us take a look at GetStageFileResponse configuration steps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XNg3Ciu4jVARJAZgQuNtjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dJmFxULbo5_56UlIXeMPGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WSs6f0Prpo9c8VkPta8DbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JTeILLeTOeybSXI9IMYNUA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qvm33zHpZAxNBcqyP8DfCA.png" /></figure><p>The CreateProcessJob API response can be obtained from the OCI AI Console also from API documentation. The example shown below is for reference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lB7vHId1ansUYEEWWIVwgA.png" /></figure><p>At this stage, we have PDF extract as xml response . It is now up to us to decide how we wish to utilize it. In our current use case, I will extract the invoice number from the response and proceed to rename the file using this number before transferring it to the designated SFTP location.</p><p>I utilized the invoice below for this demonstration. You can download the invoice by clicking <a href="https://slicedinvoices.com/pdf/wordpress-pdf-invoice-plugin-sample.pdf">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dWzpg7IOG8hCmELAJlwkvw.png" /></figure><p>As you can see in the screenshot above, the Invoice Number: INV-3337 is the information I need to locate and extract. I will use INV-3337 as the new filename when writing it to the target SFTP location.</p><p>The logic for extraction is as follows: examine the response below, which begins with the “documentMetadata” tag, followed by the “pages” tag. Within the “pages” section, we can find “words” and “lines”. To locate the Invoice Number, we can depend on either the “words” or “lines”. I prefer the “lines” approach, as the invoice number is often found after tags such as “Invoice Number”, or “Invoice#”. Therefore, I iterate through lines until I come across any of these tags, and the very next tag of this will contain the Invoice Number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CrKkgVLGNR285zqbMtCNdw.png" /></figure><p>My xpath expression to locate words under pages is as follows :<em>$GetObjStageFileResponse/nsmpr11:ReadResponse/nsmpr14:request-wrapper/nsmpr14:pages[1]/nsmpr14:lines[1]/nsmpr14:text</em> and this is provided for your reference purpose only and is subject to change based on your document.</p><p>Now, let’s take a look at further flow on how does it look like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y3pZ5A9mBS5fQa4THBrmRA.png" /><figcaption><strong>Integration Flow Continuation..</strong></figcaption></figure><p>Once Invoice Number is located, exit the loop and continue transferring the file using the newly extracted filename. Please disregard the other conditional statements, as I have included them based on my document’s requirement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RkIYUbxgSIKN71vzAv0H6Q.png" /><figcaption><strong>Integration Flow Continuation…</strong></figcaption></figure><p>Here is a screenshot capturing the successful execution of the entire end-to-end flow. It consists of six screenshots for reference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7eqvaIwIiZ7kbmoEnXJHkA.png" /></figure><p>You can observe below, as previously mentioned, I have utilized a publicly available Sample Invoice for this demonstration. I have placed the Invoice_Sample.pdf file in the Invoices Folder for processing. Subsequently, the processed file has been relocated to the processed folder under the new name INV-3337 as desired.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MbJudlVAR2EXiWGmXaB5VQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0fa23440946" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automate Oracle Financial Services Accounting Foundation Cloud Service Workflows using Oracle…]]></title>
            <link>https://medium.com/@dilipmail4u/automate-oracle-financial-services-accounting-foundation-cloud-service-workflows-using-oracle-bd435451ead1?source=rss-85500cd5597e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd435451ead1</guid>
            <dc:creator><![CDATA[Dilip Kumar Panchali]]></dc:creator>
            <pubDate>Mon, 12 Dec 2022 17:46:06 GMT</pubDate>
            <atom:updated>2022-12-16T18:18:04.164Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Automate Oracle Financial Services Accounting Foundation Cloud Service Workflows using Oracle Integration Cloud</strong></p><p>Literally thousands of Business use-cases can be integrated and automated using Oracle Integration Cloud. Here in the article, I am going to walk you through HOW Oracle Integration Cloud helps automating PMF Process in Oracle AFCS.</p><p>Accounting Foundation Cloud Service (AFCS) is a new Oracle Financials SaaS service from Oracle cloud which takes data from multiple sources for purposes of accounting and financial reporting.</p><p>Current use-case is about processing inbound requests in AFCS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*lRgAJVnb1XS-9Ggz9DQe_Q.png" /><figcaption>Steps involved in the current Inbound Use case</figcaption></figure><p>Let us see how these steps can be automated through Oracle Integration Cloud Orchestration Process. End-to-End Process can be automated using Oracle Integration Cloud App integration feature with few clicks. It is few hours job if we have all the connection details handy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*qXukU3syNGwUkdeMlqmWOg.png" /><figcaption>Low-level-Design of the Solution in Oracle Integration Cloud</figcaption></figure><p>Integration Cloud has more than 80+ prebuilt adapters which can directly talk to target application. This use-case can be achieved using below two adapters</p><p>1. SFTP adapter</p><p>2. REST Adapter</p><p>SFTP adapter helps to retrieve the ASCII file along with its metadata from SFTP location.</p><p>Rest of the steps in the process can be achieved using REST adapter.AFCS services expose all its functionality using REST APIs.</p><p>Access AFCS API details <a href="https://docs.oracle.com/cd/F52138_01/afcshelp/22B/apihtml/index.htm#t=Getting_Started.htm%23Authentication">here</a></p><p>Here is the screen shot of the overall integration for reference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*C964lyte7EiFftKS2CY07w.png" /><figcaption>Oracle Cloud Integration Flow</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*J50jbfeoA2ABVxvTKZE_eA.png" /></figure><p>Let us deep dive into the low-level configuration details.</p><p>SFTP Configuration Steps:</p><p>· Create SFTP connection by providing SFTP credentials</p><p>· Use this connection in the integration flow to list the file using <strong>List Files</strong> operation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*6UA33sz3LYbxVAaRBwbJ1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*wWWdMPRpsZBEpXWiXZQYAw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*SvwbspnU-Oom7BMT8ptIAA.png" /></figure><p>Please note that For Loop can be opened to read each file.</p><p>Configuration steps for reading a File</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*tt8hUAxXN5hv-Z6BxidZYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*-rZkRo0Zu6YMDZ_qZSVvuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*BWpJNUPBACoREzkUZi0esA.png" /></figure><p>REST Adapter Configuration Steps to Get Auth Token from IDCS service tied to AFCS</p><p>Follow below steps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*_9ucl2RK1Dhm4KHrrgbNdA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*RTIZYFyFKH0R_RxnWeCufg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*0ddwXk0qVDfTDKrZ17MTJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*omv5YE6ZMB6bSeptfhQbtQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*kVdtis1sj0_yi8UxMe_WWg.png" /></figure><p>Click on done.</p><p>Receive OAuth Token in response from this invocation.</p><p>· This OAuth token is being passed as Authorization Bearer token in sub sequent calls.</p><p>· Next step is to generate AFCS Object Storage Pre-Authenticated-URL.</p><p>Follow the below steps to generate Pre-Authenticated-URL by passing relevant parameters as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*7wjBwrmYAUk1uUmmMEPOHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*7wjBwrmYAUk1uUmmMEPOHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*DnBcnkVjhiwO5ybq3V-qnQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*dH5tplssnrOC0ktVueFeog.png" /></figure><p>Choose response as JSON and pas below inline Sample</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*hwgxgKeVigKQdNkXT0wThA.png" /></figure><p>Click on Done.</p><p>Mapper for your reference:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*SaDZoge7aUAeHAeajOKv9A.png" /></figure><p>PRE-AUTH URL is received in Response from this step.</p><p>File Can be uploaded to AFCS Object Storage with Pre-Authenticated-URL.</p><p>REST adapter with put command uploads the file to AFCS Object Storage location. Keep in mind below two points while mapping REST Target. 1.Map FileReference to Stream Reference on REST Target. 2. Map Upload URL(Pre-Authenticated-URL generated from previous step) to Absolute Endpoint URI (This step dynamically overrides endpoint URI at run-time). Please look at the below mapper screen shots for reference.</p><p>Let us take a look at the below low-level configuration details of REST Adapter and it’s corresponding mappers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*y2TfggWYjWYEh3ogr8PqYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*ZmV7eAelTXOPabwYLlH2Dg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*8pUM5V_81D6UnwqxCCRCeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*tUXqCEYRXNES-rmna6mhyw.png" /></figure><p>Next step is to kick off AFCS Pre-defined PMF Work flow Process.AFCS has exposed a REST API for this operation as well.</p><p>Please note that required AFCS Job details and all the input details are provided by AFCS Workflow developer. Pass those parameters as input in the mapper. Please follow below screen shots for reference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*wA8wcNgcQrcumOzszypcXA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*IniJnIJonIap9R87mg2H4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*Nx6rWhY6nK31aBxukUL9Ig.png" /></figure><p>Click on done.</p><p>This step triggers AFCS work flow and uploaded file gets processed as per the workflow definition. Acknowledgement/response is received from AFCS Job which we can notify/send an email with all the details received from the above trigger.</p><p>Sample notification triggered by integration flow after successful trigger of AFCS PMF process as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*sZUl06bmRRmGI4lw_p6aFA.png" /></figure><p>Access REST APIs for Account Foundation Cloud Service <a href="https://docs.oracle.com/cd/F52138_01/afcshelp/22B/apihtml/index.htm#t=Getting_Started.htm%23Authentication">here</a></p><p>Learn more about <a href="https://www.oracle.com/in/integration/">Oracle Integration Cloud</a></p><p>#AFCS #OIC #Oracle Integration Cloud #Account Foundation Cloud Service</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd435451ead1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>