Configure the Oracle Primavera Cloud Connections

After installing this accelerator, you need to configure the delivered Oracle Primavera Cloud connections.

This accelerator delivers two connections that are required for connecting with Oracle Primavera Cloud through Oracle Integration:

  • OPC Adapter
  • OPC Rest API

The first connection uses the Oracle Primavera Cloud Adapter to retrieve data from Oracle Primavera Cloud. The second connection uses the REST Adapter to send additional requests, such as retrieving baseline data.

Follow the steps in the sections below to configure these connections to connect with Oracle Primavera Cloud.

Connection 1 - Using Oracle Primavera Cloud Adapter

The first connection to Oracle Primavera Cloud in this accelerator is labeled OPC Adapter.

To configure the connection:

  1. In the Connections section, click Actions Actions icon on the connection, then select Edit.
  2. In the Properties section, in the Connection URL field, enter the URL of your Oracle Primavera Cloud instance.

    For example:

    https://primavera.oraclecloud.com

  3. Go to the Security section, enter the login credentials (user name and password) of your Oracle Primavera Cloud account, or a Oracle Primavera Cloud integration user account.
  4. Click Save. If prompted, click Save again.
  5. Click Test to ensure that your connection is successfully configured. In the resulting dialog box, click Test again.
    A message confirms if your test is successful.
  6. To return to the project workspace, click Go back Back icon.

Connection 2 - Using REST Adapter

The second connection to Oracle Primavera Cloud in this accelerator is labeled OPC Rest API.

To configure the connection:

  1. In the Connections section, click Actions Actions icon on the connection, then select Edit.
  2. Go to the Properties section and do the following:
    1. In the Connection Type field, select REST API Base URL.
    2. In the Connection URL field, enter the base URL of your Oracle Primavera Cloud REST API instance.

      For example:

      https://primavera.oraclecloud.com/api/restapi/

      Note:

      You must include /api/restapi/ in the URL.
  3. Go to the Security section and do the following:
    1. In the Security Policy field, select OAuth Custom Two Legged Flow.
    2. In the Access Token Request field, enter the access token request in the following format:

      -X POST "https://<SERVER_URL>/primediscovery/apitoken/request?scope=http://<SERVER_URL>/api" -H "Authorization: Basic <Base64-encoded-username-and-password>

      Where:

      • <SERVER_URL> is the base URL of your Primavera Cloud instance (for example, https://primavera.oraclecloud.com)
      • <Base64-encoded-username-and-password> is your encoded Primavera Cloud user name and password.

        For information about how to obtain this, see Generate a Base64 Encoded User Name and Password.

      Note:

      The URL for scope must be the full path to the application's context root (scope=http://<SERVER_URL>/api) and must always be http (not https).
  4. In the Optional Security section, in the access_token_usage field, enter the token type and token header details in the following format:

    -H Authorization: Bearer ${access_token} -H x-prime-tenant:<PRIME_TENANT_NAME> -H x-prime-identity-app:<PRIME_IDENTITY_APP> -H x-prime-tenant-code:<PRIME_TENANT_CODE>

  5. Click Save. If prompted, click Save again.
  6. Click Test to ensure that your connection is successfully configured. In the resulting dialog box, click Test again.
    A message confirms if your test is successful.
  7. To return to the project workspace, click Go back Back icon.