Run the Sample Integrations

When you provision a new instance of Oracle Integration, the following sample integrations are automatically included. These samples help you get you up and running quickly and show you how easy it is to activate, invoke, and monitor an integration between endpoints. If you provision a new instance of Oracle Integration Generation 2, these samples are not automatically included.

See the following sections to run and monitor the samples. It is recommended that you run these samples in the following order because several samples build upon one another.

Note:

When you invoke an integration endpoint directly from the Chrome browser, it throws an HTTP ERROR 401 error. The Chrome browser throws this error when an API supports both the Basic Authentication and the OAuth Authentication mechanisms. Use a different browser to run your integration.
Sample Complexity This Sample Demonstrates How to ... See ...

Echo

None

Use simple logging with a REST Adapter as a trigger in a request-response orchestrated integration.

Run the Echo Sample

Hello World

None

Use simple log and email notification actions with a REST Adapter in an orchestrated integration.

Run the Hello World Sample

Hello World Invoke

Minimal

Call and invoke a simple REST web service in an orchestrated integration. Simple logging is also used.

Run the Hello World Invoke Sample

Hello World Data Map Invoke

Minimal

Call and invoke a simple REST web service using the Map Data integration pattern.

Run the Hello World Map Data Invoke Sample

File Transfer

Medium

Read an opaque file from a "/" directory and write the file to an "/upload" directory in a simple scheduled orchestration. After activating the integration, you go to the Actions menu and select Submit now or Add Schedule to run the scheduled integration.

Run the File Transfer Sample

Incident Details from Service Cloud

Medium

Get incident details from the Oracle Service Cloud for an incident ID and send the incident details to the caller as a response.

Run the Incident Details from Service Cloud Sample

Multiple Verbs and Resources Invoke

Medium

Create and invoke a REST web service with multiple HTTP verbs and resources.

Run the Multiple Verbs and Resources Invoke Sample

ConcatMessages Low Create and invoke a JavaScript callout action using a REST Adapter in an orchestrated integration. Run the ConcatMessages Sample
Get Opportunity Details

Medium

Get opportunity details from the Oracle Engagement Cloud for an opportunity ID and send the opportunity details to the caller as a response. Run the Get Opportunity Details Sample

Note:

The documentation for running these samples is also available when you click How to run icon for an activated integration.

Run the Echo Sample

This sample demonstrates how to use simple logging with a REST Adapter as a trigger in a request-response orchestrated integration. The REST Adapter is triggered when you specify a URL. A browser response is sent to you. A logging message is created and logged to the activity stream for viewing. You also track the integration and monitor message status.

Prerequisites

None.

How To Activate

  1. In the left navigation pane, click Home > Integrations > Integrations.

  2. In the row for the Echo sample, click the Activate icon icon, then click Activate when prompted.

  3. Wait for the icon to turn green and the word Active to appear in the Status column, indicating that the integration is activated.

How To Run

  1. Click the Run icon icon to show a message with details about running, testing, and tracking the integration.How to run message
  2. Enter the following URL in a browser. You can also access the URL from the Run icon icon for this integration.

    
    https://hostname:port/ic/api/integration/v1/flows/rest/ECHO/1.0/{message}

    For example:

    
    https://my_pod.us.company.com:port/ic/api/integration/v1/flows/rest/ECHO/1.0/Invoking my first integration.

Note:

You can also run the integration by clicking Test to invoke the Test Integration page. See Test REST Adapter Trigger Connection-Based Integrations.

What Results Do You See

  • You receive the following response in your browser:

    {
      "Message" : "Invoking my first integration.",
      "Welcome" : "\"Welcome to OIC!!!  Echo was successful.\""
    }

How To Monitor

  1. In the left navigation pane, click Home > Monitoring > Integrations > Dashboards.
  2. By default, the Dashboard page displays overall system status, including the percentage of successful messages, total number of messages, total number of successful messages, and total number of failed messages. Details about currently used connections, currently activated integrations, and scheduled integrations are also provided. You can also view the activity stream and download diagnostic logs and incident reports.

  3. Select Activity Stream from the View menu to view details about the invocation.

  4. In the left navigation pane, click Tracking and note that the Echo integration instance is listed as completed.
  5. In the left navigation pane, click Integrations and note the status of the message processed.

How To View

  1. In the left navigation pane, click Home > Integrations > Integrations.

  2. Click the Echo integration.

    A read-only version of the integration is displayed for viewing. Because the integration is active, it cannot be edited.

  3. View the flow of the integration.
    • A REST Adapter is configured as a trigger (inbound) connection in the integration. The REST Adapter is configured with a resource endpoint of /{message} and a GET operation. The REST Adapter is triggered when you specify the URL in How to Run.

    • A logging message is created and logged to the activity stream. A browser response is sent to you.



Run the Hello World Sample

This sample demonstrates how to use simple log and email notification actions with a REST Adapter in an orchestrated integration. The REST Adapter is triggered when you specify a URL. A switch activity with two rules is defined. If you provide an email address and name when triggering the REST Adapter, a browser response and email response are sent to you. If you provide only a name when triggering the REST Adapter, only a browser response is sent to you. With either switch rule, a logging message is created and logged to the activity stream for viewing. You also track the integration and monitor message status.

Complexity

None.

Prerequisites

None.

How To Activate

  1. In the left navigation pane, click Home > Integrations > Integrations.

  2. In the row for the Hello World sample, click the Activate icon icon, then click Activate when prompted.

  3. Wait for the icon to turn green and the word Active to appear in the Status column, indicating that the integration is activated.

How To Run

  1. Click the Run icon icon to show a message with details about running, testing, and tracking the integration.
  2. Enter one of the following URLs in a browser. You can also access these URLs from the Run icon icon for this integration.

    http://hostname:port/ic/api/integration/v1/flows/rest/HELLO_WORLD/1.0/names/{name}
    http://hostname:port/ic/api/integration/v1/flows/rest/HELLO_WORLD/1.0/names/{name}?email={email.address}

    For example:

    https://my_pod.us.company.com:port/ic/api/integration/v1/flows/rest/HELLO_WORLD/1.0/names/Mark
    
    https://my_pod.us.company.com:port/ic/api/integration/v1/flows/rest/HELLO_WORLD/1.0/names/Mark?email=mark.smith@mycompany.com

Note:

You can also run the integration by clicking Test to invoke the Test Integration page. See Test REST Adapter Trigger Connection-Based Integrations.

What Results Do You See

  • If you specified only your name, you receive the following response in your browser:

    {
      "Hello" : "Mark",
      "Message" : "\"Welcome to OIC!!!\"",
      "Email" : "\"Email address was not provided.\""
    }
  • If you specified your name and email address, you receive the following response in your browser:

    {
      "Hello" : "Mark",
      "Message" : "\"Welcome to OIC!  Check your email.\"",
      "Email" : "mark.smith@mycompany.com"
    }
    and you receive a Hello email with the following contents:
    Hello Mark,
    
    Welcome to Oracle Integration!

How To Monitor

  1. In the left navigation pane, click Home > Monitoring > Integrations > Dashboards.

    By default, the Dashboard page displays overall system status, including the percentage of successful messages, total number of messages, total number of successful messages, and total number of failed messages. Details about currently used connections, currently activated integrations, and scheduled integrations are also provided. You can also view the activity stream and download diagnostic logs and incident reports.

  2. Select Activity Stream from the View menu to view details about the invocation.

  3. In the left navigation pane, click Tracking and note that the Hello World integration instance is listed as completed.


    Description of smaple_tracking.png follows
    Description of the illustration smaple_tracking.png
  4. In the navigation pane, click Integrations and note that the message was successfully received and processed without any errors.


    Description of sample_mon_integs.png follows
    Description of the illustration sample_mon_integs.png

How To View

  1. In the left navigation pane, click Home > Integrations > Integrations.

  2. Click the Hello World integration.

    A read-only version of the integration is displayed for viewing. Because the integration is active, it cannot be edited.

  3. View the flow of the integration:

    • A REST Adapter is configured as a trigger (inbound) connection in the integration. The REST Adapter is configured with a resource endpoint of /names{name} and a GET operation. The REST Adapter is triggered when you specify the URL in How to Run.

    • A switch activity with two rules is defined:

      • If an email address and name are provided in the invocation URL (upper rule), a logging message is created and logged to the activity stream and a notification action is configured with parameters for your name and email address. The message body of the email is also defined in the notification action. A browser response and email response are sent to you.

      • If only a name is provided in the invocation (lower rule), a logging message is created and logged to the activity stream. A browser response is sent to you.



Run the Hello World Invoke Sample

This sample demonstrates how to call and invoke a simple REST web service in an orchestrated integration. The REST Adapter is triggered when you specify a URL. The Hello World REST Adapter you previously used in the Hello World sample is invoked in the integration. The name and email address response are sent to you in JSON format. A logging message is created and logged to the activity stream for viewing. You also track the integration and monitor message status.

Prerequisites

The Hello World sample integration must be activated before configuring the connection in How to Configure.

How to Configure

Before you can activate and run this sample, you must configure the connection and security properties of the Sample Hello World Invoke REST Adapter used in this sample.

  1. In the left navigation pane, click Home > Integrations > Connections.

  2. Click Sample Hello World Invoke.

  3. Go to the Connection Properties section to specify information to connect to the application/endpoint and process requests.

    1. For Connection Type, select Swagger Definition URL.

    2. For Connection URL, enter the following:

      https://hostname:port/ic/api/integration/v1/flows/rest/HELLO_WORLD_INVOKE/1.0/metadata/swagger
  4. Go to the Security section.

    1. Enter the username and password that you used to log in to Oracle Integration, then click Save.

  5. Click Test to test your configuration. A message is displayed that describes the results of the test. If successful, you are ready to activate the integration.

    Connection Sample Hello World Invoke was tested successfully.
  6. Click Save, then click Back button.

How To Activate

  1. In the row for the Hello World Invoke sample, click the Activate icon icon, then click Activate when prompted.

  2. Wait for the icon to turn green and the word Active to appear in the Status column, indicating that the integration is activated.

How To Run

  1. Click the Run icon icon to show a message with details about running, testing, and tracking the integration.
  2. Enter one of the following URLs in a browser. You can also access these URLs from the Run icon icon for this integration.
    https://host:port/ic/api/integration/v1/flows/rest/HELLO_WORLD_INVOKE/1.0/info?name={Name}
    
    https://host:port/ic/api/integration/v1/flows/rest/HELLO_WORLD_INVOKE/1.0/info?name={Name}&email={Email Address}
    For example:
    https://my_pod.us.company.com:port/ic/api/integration/v1/flows/rest/HELLO_WORLD_INVOKE/1.0/info?name=Mark
    https://my_pod.us.company.com:port/ic/api/integration/v1/flows/rest/HELLO_WORLD_INVOKE/1.0/info?name=Mark&email=mark.smith@mycompany.com

Note:

You can also run the integration by clicking Test to invoke the Test Integration page. See Test REST Adapter Trigger Connection-Based Integrations.

What Results Do You See

If you specified a name and email, you receive the following response in your browser:

{
  "Hello" : "mark",
  "Message" : "\"Welcome to OIC!  Check your email.\"You have successfully called a REST service!",
  "Email" : "mark.smith@mycompany.com"
}
and you receive a Hello email with the following contents:
Hello Mark,

Welcome to OIC!

How To Monitor

  1. In the left navigation pane, click Home > Monitoring > Integrations > Dashboards.

    By default, the Dashboard page displays overall system status, including the percentage of successful messages, total number of messages, total number of successful messages, and total number of failed messages. Details about currently used connections, currently activated integrations, and scheduled integrations are also provided. You can also view the activity stream and download diagnostic logs and incident reports.

  2. Select Activity Stream from the View menu to view details about the invocation.

  3. In the left navigation pane, click Tracking and note that Hello World Invoke is listed as completed. Hello World, which was invoked by Hello World Invoke, has also completed.

  4. In the navigation pane, click Integrations and note that the messages were successfully received and processed without any errors.

How To View

  1. In the left navigation pane, click Home > Integrations > Integrations.

  2. Click the Hello World Invoke integration.

    A read-only version of the integration is displayed for viewing. Because the integration is active, it cannot be edited.

  3. View the flow of the integration:

    • A REST Adapter is configured as a trigger (inbound) connection in the integration. The REST Adapter is configured with a resource endpoint of /info and a GET operation, and retrieves a name and email address. This REST Adapter is triggered when you specify the URL in How to Run.

    • A logging message is created and logged to the activity stream.

    • The Hello World REST Adapter you previously used in the Hello World sample is invoked in the integration. The REST Adapter is configured with a business object of /name/{name}, a GET operation, and a request query parameter of email. The name and email address response are sent to you in JSON format.



Run the Hello World Map Data Invoke Sample

This sample demonstrates how to call and invoke a simple REST web service using the Map Data integration pattern. The REST Adapter is triggered when you specify a URL. The Hello World Invoke REST Adapter is invoked in the integration. The name and email address response are sent to you in JSON format. A logging message is created and logged to the activity stream for viewing. You also track the integration and monitor message status.

Prerequisites

The Hello World sample integration must be activated before configuring the connection in How to Configure.

How to Configure

Before you can activate and run this sample, you must configure the connection and security properties of the Sample Hello World Invoke REST Adapter used in this sample.

  1. In the left navigation pane, click Home > Integrations > Connections.

  2. Click Sample Hello World Invoke.

  3. Go to the Connection Properties section to specify information to connect to the application/endpoint and process requests.

    1. For Connection Type, select Swagger Definition URL.

    2. For Connection URL, enter the following:

      https://hostname:port/ic/api/integration/v1/flows/rest/HELLO_WORLD/1.0/metadata/swagger
  4. Go to the Security section.

    1. Enter the username and password that you used to log in to Oracle Integration, then click OK.

  5. Click Test to test your configuration. A message is displayed that describes the results of the test. If successful, you are ready to activate the integration.

    Connection Sample Hello World Invoke was tested successfully.
  6. Click Save, then click Back button.

How To Activate

  1. In the left navigation pane, click Home > Integrations > Integrations.

  2. In the row for the Hello World Data Map Invoke sample, click the Activate icon icon, then click Activate when prompted.

  3. Wait for the icon to turn green and the word Active to appear in the Status column, indicating that the integration is activated.

How To Run

  1. Click the Run icon icon to show a message with details about running, testing, and tracking the integration.
  2. Enter one of the following URLs in a browser.

    https://hostname:port/ic/api/integration/v1/flows/rest/HELLO_WORLD_MAP_DATA_INVOKE/1.0/info?name={Name}
    https://hostname:port/ic/api/integration/v1/flows/rest/HELLO_WORLD_MAP_DATA_INVOKE/1.0/info?name={Name}&email={Email Address}

    For example:

    https://my_pod.us.company.com:port/ic/api/integration/v1/flows/rest/HELLO_WORLD_MAP_DATA_INVOKE/1.0/info?name=mark
    https://my_pod.us.company.com:port/ic/api/integration/v1/flows/rest/HELLO_WORLD_MAP_DATA_INVOKE/1.0/info?name=mark&email=mark.smith@mycompany.com

Note:

You can also run the integration by clicking Test to invoke the Test Integration page. See Test REST Adapter Trigger Connection-Based Integrations.

What Results Do You See

  • If you specified only your name, you receive the following response in your browser:

    {
      "Hello" : "mark",
      "Message" : "\"Welcome to OIC!!!\"You have successfully called a REST service!",
      "Email" : "\"Email address was not provided.\""
    }
  • If you specified your name and email address, you receive the following response in your browser:

    {
      "Hello" : "mark",
      "Message" : "\"Welcome to OIC!  Check your email.\"You have successfully called a REST service!",
      "Email" : "mark.smith@mycompany.com"
    }
    and you receive a Hello email with the following contents:
    Hello mark,
    Welcome to OIC !

How To Monitor

  1. In the left navigation pane, click Home > Monitoring > Integrations > Dashboards.
  2. By default, the Dashboard page displays overall system status, including the percentage of successful messages, total number of messages, total number of successful messages, and total number of failed messages. Details about currently used connections, currently activated integrations, and scheduled integrations are also provided. You can also view the activity stream and download diagnostic logs and incident reports.

  3. Select Activity Stream from the View menu to view details about the invocation.

  4. In the left navigation pane, click Tracking and note that the Hello World Map Data Invoke instance is listed as completed. Hello World, which was invoked by Hello World Map Data Invoke, has also completed.

  5. In the left navigation pane, click Integrations and note that the messages were successfully received and processed without any errors.

How To View

  1. In the left navigation pane, click Home > Integrations > Integrations.

  2. Click the Hello World Data Map Invoke integration.

    A read-only version of the integration is displayed for viewing. Because the integration is active, it cannot be edited.

  3. View the flow of the integration:

    • A REST Adapter is configured as a trigger (inbound) connection in the integration. The REST Adapter is configured with a resource endpoint of /info and a GET operation, and retrieves a name and email address. The REST Adapter is triggered when you specify the URL in How to Run.

    • A logging message is created and logged to the activity stream.

    • The Hello World Invoke REST Adapter is invoked in the integration. The REST Adapter is configured with a business object of /name/{name}, a GET operation, and a request query parameter of email. The name and email address response are sent to you in JSON format.



Run the File Transfer Sample

This sample demonstrates how to read an opaque file from a "/" directory and write the file to an "/upload" directory in a scheduled orchestrated integration. An FTP Adapter reads the file from the / directory and another FTP Adapter writes the file to the /upload directory. An assign action is configured to assign variables for the file name and file size. A logging message is created to indicate that the file name has been read. The message is logged to the activity stream for viewing. You also track the integration and monitor message status.

Prerequisites

None.

How To Activate

  1. In the left navigation pane, click Home > Integrations > Integrations.

  2. In the row for the File Transfer sample, click the Activate icon icon, then click Activate when prompted.

  3. Wait for the icon to turn green and the word Active to appear in the Status column, indicating that the integration is activated.

How to Configure

Before you can activate and run this sample, you must configure the connection and security properties of the Sample FTP connection FTP Adapter used in this sample.

  1. In the left navigation pane, click Home > Integrations > Connections.

  2. Click Sample FTP connection.

  3. Go to the Connection Properties section to specify information to connect to the application/endpoint and process requests.

    1. For FTP Server Host Address, enter speedtest.tele2.net.

    2. For FTP Server Port, enter 21.

  4. Go to the Security section.

    1. For Security Policy, select FTP Server Access Policy.

    2. For Username, enter anonymous.

    3. Enter the same password twice. You can use any password.

    4. Click Save.

  5. Click Test to test your configuration. A message is displayed that describes the results of the test. If successful, you are ready to activate the integration.

    Connection Sample FTP connection was tested successfully.
  6. Click Save, then click Back button.

How To Run

  1. Click the Run icon icon to show a message with details about running, testing, and tracking the integration.
  2. Click Submit Now.

    The Submit Now dialog is displayed.

  3. Click Submit Now.
    The following message is displayed at the top of the page.
     CONFIRMATION
    Submit Now request to run integration File Transfer Sample (version_number) was submitted successfully with request id number. 

How To Monitor

  1. Click the instance number in the message at the top to go to the Track Instances page.

    The File Transfer sample integration instance is listed as in progress. You can see the filename and file size, which enables you to look for particular files in case of problems.

  2. Wait for the run to complete.
  3. In the left navigation pane, click Integrations and note that the message was successfully received and processed without any errors. For this example, Schedule is not defined is displayed because this scheduled integration was invoked with the Submit Now option.

How To View

  1. In the left navigation pane, click Home > Integrations > Integrations.

  2. Click the File Transfer integration.

    A read-only version of the integration is displayed for viewing. Because the integration is active, it cannot be edited.

  3. View the flow of the integration:

    • The Schedule icon indicates that this is a scheduled orchestrated integration. The schedule invokes this integration.

    • An FTP Adapter (ReadFile) is configured to read a file in binary mode from the / directory of the server you specified in the Connections page. No schema is defined for this file transfer, so it is treated as an attachment.

    • A logging message is created to indicate that the file name has been read. The message is logged to the activity stream.

    • An assign action is configured to assign variables for the file name and file size. This enables you to track issues based on filename and size.

    • An FTP Adapter (WriteFile) is configured to write a file to the /upload directory on the same server that matches the file name pattern of 1KB%yyMMddHHmmssSS%.zip.

    • A logging message is created to indicate the file name has been uploaded to the /upload directory. The message is logged to the activity stream.


    Description of sample_file_trans_int.png follows
    Description of the illustration sample_file_trans_int.png

Run the Incident Details from Service Cloud Sample

This sample demonstrates how to get incident details from the Oracle Service Cloud for an incident ID and send the incident details to the caller as a response. The REST Adapter is triggered when you specify a URL. The Oracle Service Cloud (RightNow) Adapter is invoked in the integration. The Oracle Service Cloud (RightNow) Adapter is configured to get incident details from the Oracle Service Cloud. The incident response is returned to you. A logging message is created and logged to the activity stream for viewing. You also track the integration and monitor message status.
Description of sample_incident_integ.png follows
Description of the illustration sample_incident_integ.png

Complexity

Medium.

Prerequisites

To run this sample, you must first subscribe to Oracle RightNow Cloud and configure an Oracle Service Cloud (RightNow) Adapter connection. After subscribing, you receive the WSDL, username, and password to specify for the Oracle Service Cloud (RightNow) Adapter on the Connections page. See Creating an Oracle Service Cloud (RightNow) Adapter Connection.

How To Activate

  1. In the left navigation pane, click Home > Integrations > Integrations.

  2. In the row for the Incident Details from Service Cloud sample, click the Activate icon icon, then click Activate when prompted.

  3. Wait for the icon to turn green and the word Active to appear in the Status column, indicating that the integration is activated.

How To Run

Enter the following URL in a browser with a valid incident ID value:
https://hostname:port/ic/api/integration/v1/flows/rest/SAMPL_INCID_DETAI_FROM_SERVI_CLO/1.0/incident/12
For example:
https://my_pod.us.company.com:port/ic/api/integration/v1/flows/rest/SAMPL_INCID_DETAI_FROM_SERVI_CLO/1.0/incident/12

What Results Do You See

You receive the following incident details response in your browser from the Oracle Service Cloud:

{
  "IncidentName" : "Survey Feedback",
  "LookupName" : "111206-000001",
  "CreatedTime" : "2011-12-06T22:35:11.000Z",
  "UpdatedTime" : "2011-12-06T22:35:11.000Z"
}

How To Monitor

  1. In the left navigation pane, click Home > Monitoring > Integrations > Dashboards.

    By default, the Dashboard page displays overall system status, including the percentage of successful messages, total number of messages, total number of successful messages, and total number of failed messages. Details about currently used connections, currently activated integrations, and scheduled integrations are also provided. You can also view the activity stream and download diagnostic logs and incident reports.

  2. Select Activity Stream from the View menu to view details about the incident ID.

  3. In the left navigation pane, click Tracking and note that the Incident details from Service Cloud integration instance is listed as completed.

  4. In the left navigation pane, click Integrations and note that the message was successfully received and processed without any errors.

How To View

  1. In the left navigation pane, click Home > Integrations > Integrations.
  2. Click the Incident details from Service Cloud integration.

    A read-only version of the integration is displayed for viewing. Because the integration is active, it cannot be edited.

  3. View the flow of the integration:

    • A REST Adapter is configured as a trigger (inbound) connection in the integration. The REST Adapter is configured with a resource endpoint of /incident{id} and a GET operation, and retrieves the incident ID. This REST Adapter is triggered when you specify the URL in How to Run.

    • A logging message is created and logged to the activity stream.

    • The Oracle Service Cloud (RightNow) Adapter is invoked in the integration. The adapter is configured with an incident business object and a CRUD Get operation to get incident details from the Oracle Service Cloud. The incident response is returned to you.


    Description of sample_incident_integ.png follows
    Description of the illustration sample_incident_integ.png

Run the Multiple Verbs and Resources Invoke Sample

This sample demonstrates how to use multiple HTTP verbs and resources configured in the REST Adapter trigger connection of an integration. A single REST Adapter can be configured to have multiple HTTP verbs such as GET, PUT, POST, PATCH, and DELETE. The REST Adapter can also be configured with multiple resources. For this sample, a single /emp resource and an /emp/loc subresource are used.


EmployeeAPI REST Adapter with six operations from which to select: modifyEmployee, updateEmployee, getEmployee, getEmployeeLocation, deleteEmployee, and addEmployee. Each operation goes to a mapper and a return action.

Complexity

Medium.

Prerequisites

None.

How To Activate

  1. In the left navigation pane, click Home > Integrations > Integrations.

  2. In the row for the Sample Multiple Verbs and Resources Invoke sample, click the Activate icon icon, then click Activate when prompted.

  3. Wait for the icon to turn green and the word Active to appear in the Status column, indicating that the integration is activated.

How To Run

  1. Click the How to Run icon icon to display a message with details about running, testing, and tracking the integration.
    Metadata URL field and URL value, and How to run, Test, and Track Instances links are displayed.

  2. Click Test.
  3. On the Test Integration page, click the Operation dropdown list to view all configured options and HTTP verbs.
  4. From the dropdown list, select the operation to perform.
    Operation list selections: getEmployeeLocation, getEmployee, addEmployee, updateEmployee, deleteEmployee, and modifyEmployee.

    The section below the dropdown list shows all the options available for the selected operation such as URI Parameters and Body.

  5. Click Test to run the selected operation.

What Results Do You See

The activity stream opens and shows the execution path of the request.

The Response section indicates that the invocation succeeded with a status of 200 OK.



How To Monitor

In addition to viewing the activity stream that appears on the Test Integration page, you can click the instance ID that appears above the stream to open the Tracking Details page. This page provides a graphical view of tracking instance details and the exact path (in the color green) followed by the request in the integration.
EmployeeAPI REST Adapter with six operations from which to select: modifyEmployee, updateEmployee, getEmployee, getEmployeeLocation, deleteEmployee, and addEmployee (which is highlighted to show that it was the operation that was executed).

Click Close to navigate back to the Test Integration page. Another operation can be selected from the dropdown list and invoked by clicking Test.

How To View

  1. In the left navigation pane, click Home > Integrations > Integrations.

  2. Click the Sample Multiple Verbs and Resources Invoke integration.

    A read-only version of the integration is displayed for viewing. Because the integration is active, it cannot be edited.

  3. View the flow of the integration.

    • A REST Adapter (EmployeeAPI) is configured as a trigger (inbound) connection in the integration. The REST Adapter is configured with a resource endpoint of /emp, a subresource of /emp/loc, and multiple verbs: GET, PUT, POST, PATCH, and DELETE operations. The configured operations are modifyEmployee (PATCH), updateEmployee (PUT), getEmployee (GET), getEmployeeLocation (GET), deleteEmployee (DELETE), and addEmployee (POST).
    • The REST Adapter is triggered when you specify the URL in How to Run.
    • Each operation is shown as a different path that branches out from the trigger connection.
    • Each branch has a map and a reply action configured.
    • The tracking configuration for each branch can be viewed by clicking the menu option on the REST Adapter trigger connection and selecting the appropriate operation from the dropdown list.


    EmployeeAPI REST Adapter with six operations from which to select: modifyEmployee, updateEmployee, getEmployee, getEmployeeLocation, deleteEmployee, and addEmployee.

Run the ConcatMessages Sample

This sample demonstrates how to use a simple callout action with a REST Adapter in an orchestrated integration. The REST Adapter is triggered when you specify a URL with two string query parameters. These parameters are then concatenated by a JavaScript callout action and a string message is returned as a response. A logging message is created and logged to the activity stream for viewing. You can also track the integration and monitor message status.


Integration consisting of a REST Adapter, logger, JavaScript function, mapper, and reply.

Complexity

Low.

Prerequisites

None.

How To Activate

  1. In the left navigation pane, click Home > Integrations > Integrations.

  2. In the row for the ConcatMessages sample, click the Activate icon icon, then click Activate when prompted.

  3. Wait for the icon to turn green and the word Active to appear in the Status column, indicating that the integration is activated.

How To Run

  1. Click the How to Run icon icon to show a message with details about running, testing, and tracking the integration.
    Metadata URL field and URL value, and How to run, Test, and Track Instances links are displayed.

  2. Enter the following URL in a browser. You can also access this URL from the Metadata URL field at the top of the message.
    https://hostname:port/ic/api/integration/v1/flows/rest/CONCATMESSAGES/1.0/welcome?message1=Welcome to OIC,&message2=Sample ConcatMessage Integration
    
    

    For example:

    https://mypod.us.company.com:port/ic/api/integration/v1/flows/rest/CONCATMESSAGES/1.0/welcome?message1=Welcome to OIC,&message2=Sample ConcatMessage Integration
    
    

What Results Do You See

  1. If you have specified message1 and message2, you receive the following response in your browser:
    Message : "Welcome to OIC, Sample ConcatMessage Integration"
    .

How To Monitor

  1. In the left navigation pane, click Home > Monitoring > Integrations > Dashboards.

    By default, the Dashboard page displays overall system status, including the percentage of successful messages, total number of messages, total number of successful messages, and total number of failed messages. Details about currently activated integrations and scheduled integrations are provided. You can also view the activity stream and download diagnostic logs and incident reports.

  2. Select Activity Stream from the View menu to view details about the invocation.
  3. In the left navigation pane, click Tracking and note that the ConcatMessages integration instance is listed as completed.
  4. In the left navigation pane, click Integrations and note the status of the messages processed.

How To View

  1. In the left navigation pane, click Home > Integrations > Integrations.

  2. Click the ConcatMessages integration.

  3. View the flow of the integration.

    • A REST Adapter is configured as a trigger (inbound) connection in the integration. The REST Adapter is configured with a /welcome resource endpoint, a GET operation, and the message1 and message2 request query parameters. The REST Adapter is triggered when you specify the URL in How to Run.
    • A logging message is created and logged to the activity stream.
    • A callout action concatenates the input parameters message1 and message2 and a response is sent to you in JSON format.


    Integration consisting of a REST Adapter, logger, JavaScript function, mapper, and reply.

Run the Get Opportunity Details Sample

This sample demonstrates how to get opportunity details from Oracle Engagement Cloud for an opportunity ID and send the opportunity details to the caller as a response. The REST Adapter is triggered when you specify a URL. The Oracle Engagement Cloud Adapter is invoked in the integration. The Oracle Engagement Cloud Adapter is configured to get opportunity details from Oracle Engagement Cloud. The opportunity response is returned to you. A logging message is created and logged to the activity stream for viewing. You also track the integration and monitor message status.
Integration consisting of a REST Adapter, logger action, mapper, Engagement Cloud Adapter, mapper, and return action.

Complexity

Medium.

Prerequisites

To run this sample, you must first subscribe to Oracle Engagement Cloud and configure an Oracle Engagement Cloud Adapter connection. After subscribing, you receive the WSDL, username, and password to specify for the Oracle Engagement Cloud Adapter on the Connections page.

How To Activate

  1. In the left navigation pane, click Home > Integrations > Integrations.

  2. In the row for the Opportunity details from Sales Cloud sample, click the Activate icon icon, then click Activate when prompted.

  3. Wait for the icon to turn green and the word Active to appear in the Status column, indicating that the integration is activated.

How To Run

  1. Click the Run icon icon to show a message with details about running, testing, and tracking the integration.
  2. Enter the URL in a browser with a valid opportunity ID value. You can get the URL from the Metadata URL field in the message.

What Results Do You See

You receive the opportunity details response in your browser from Oracle Engagement Cloud.

How To Monitor

  1. In the left navigation pane, click Home > Monitoring > Integrations > Dashboards.

    By default, the Dashboard page displays overall system status, including the percentage of successful messages, total number of messages, total number of successful messages, and total number of failed messages. Details about currently used connections, currently activated integrations, and scheduled integrations are also provided. You can also view the activity stream and download diagnostic logs and incident reports.

  2. Select Activity Stream from the View menu to view details about the opportunity ID.

  3. In the left navigation pane, click Tracking and note that the Opportunity details from Sales Cloud integration instance is listed as completed.

  4. In the left navigation pane, click Integrations and note that the message was successfully received and processed without any errors.

How To View

  1. In the left navigation pane, click Home > Integrations > Integrations.
  2. Click the Opportunity details from Sales Cloud integration.

    A read-only version of the integration is displayed for viewing. Because the integration is active, it cannot be edited.

  3. View the flow of the integration:

    • A REST Adapter is configured as a trigger (inbound) connection in the integration. The REST Adapter is configured with a resource endpoint of /opportunity/{id} and a GET operation, and retrieves the opportunity. This REST Adapter is triggered when you specify the URL in How to Run.

    • A logging message is created and logged to the activity stream.

    • The Oracle Engagement Cloud Adapter is invoked in the integration. The adapter is configured with an opportunity business object and a CRUD Get operation to get opportunity details from Oracle Engagement Cloud. The opportunity response is returned to you.


    Integration consisting of a REST Adapter, logger action, mapper, Engagement Cloud Adapter, mapper, and return action.

Load Newer Versions of the Sample Integrations

When your instance is upgraded, the sample integration versions included with your previous instance version remain untouched and are not automatically updated. Because of this, you do not automatically get any samples that may have been updated to newer versions. To obtain the latest sample integration versions, you must perform the following steps. These steps enable you to load new sample integrations that overwrite previous integration samples with the same name and version. Any sample integrations you may have previously deleted are also reloaded. However, if a sample integration is active or locked, it is not overwritten.

To load newer versions of the sample integrations:

  1. In the left navigation pane, click Home > Integrations.

  2. In the upper right corner, click the ? icon.

  3. Select Get Samples.

  4. Click Get.

    The sample integrations are loaded in bulk. A message is displayed indicating that the sample integrations have been loaded successfully. Any active or locked integrations are not loaded.

Note:

Each sample integration is loaded as part of its own package. Therefore, if you delete one of the sample integrations and create a new integration with the same name and version, the integration is not overwritten as long as you do not include it in that package. In the left navigation pane, click Home > Integrations > Integrations > Packages to see the package names associated with each sample integration.