REST Style Architecture... 5 Using the Primavera Gateway API... 7 Sample Java Code that Invokes the API... 7 Reference Documentation...

Similar documents
Contents Introduction... 5 Using Gateway API... 9 Using SampleRestAPI Security Troubleshooting Gateway API Legal Notices...

Scope Use this guide to migrate your P6 EPPM schema to a P6 Professional schema or your P6 Professional schema to a P6 EPPM schema.

About Configuring Oracle Access Manager

Note: Oracle Consulting can provide technology assessments and architectural planning workshops to guide you through these processes.

Primavera Unifier and Enterprise Manager. Supported Versions of Enterprise Manager. Primavera Unifier Metrics Collected for Enterprise Manager

Contents Introduction... 5 Installing the ucad Application... 6 Uninstalling ucad... 8 Working in AutoCAD with the ucad Plug-in...

Contents Introduction... 5 Installation Instructions... 6 Uninstall the Unifier File Transfer Utility... 9 For More Information...

Overview Upgrading Unifier to Unifier

Contents Installation Tasks... 5 Upgrading the P6 Adapter For More Information Legal Notices... 17

About Connecting the Content Repository

Contents Configuring P6 EPPM Web Services... 5 Creating the WebSphere Environment for P6 EPPM Web Services... 7

Contents Installation Tasks... 5 Upgrading the P6 Adapter Preface Legal Notices... 17

Contents Overview of Manually Upgrading a P6 Professional Database... 5

Where to Get Training... 5 Where to Get Support... 5

About This Guide. Converting Methodologies to Projects

Contents Introduction... 5 Configuring Primavera Unifier for Single Sign On (Windows)... 7 For More Information Legal Notices...

Contents Installation Tasks... 4 Upgrading the P6 Adapter For More Information Legal Notices... 18

Contents About Connecting the Content Repository... 5 Prerequisites for Configuring a Content Repository and Unifier... 5

Contents Configuring P6 Integration API... 5 Creating the WebSphere Environment for P6 Integration API... 7

Contents About Configuring Fusion PPM Bridge... 5 Fusion PPM Bridge Download... 5 Deploying Fusion PPM Bridge for the First Time...

New Features in Primavera P6 16.2

What's New. Features introduced in New Features in Primavera Gateway 17

Copyright

Copyright 1998, 2009, Oracle and/or its affiliates. All rights reserved.

New Features in Primavera Professional 15.2

About Connecting the Content Repository. About Content Repository Authentication Modes

Oracle Enterprise Manager Ops Center. Introduction. What You Will Need. Creating vservers 12c Release 1 ( )

Oracle Hospitality OPERA Exchange Interface Cloud Authentication. October 2017

Oracle Enterprise Manager Ops Center. Introduction. What You Will Need. Installing and Updating Local Software Packages 12c Release

Oracle Cloud What's New for Oracle WebCenter Portal Cloud Service

What's New New Features in Primavera P6 EPPM 18

Oracle Enterprise Manager Ops Center. Introduction. What You Will Need. Hardware and Software Configuration

Oracle Communications Configuration Management

Contents About Connecting the Content Repository... 5 Prerequisites for Configuring a Content Repository and Unifier... 5

Contents About Connecting the Content Repository... 5 Prerequisites for Configuring a Content Repository and Unifier... 6

What s New for Oracle Cloud Stack Manager. Topics: July Oracle Cloud. What's New for Oracle Cloud Stack Release

Oracle Web Service Manager Implementation Guide Oracle FLEXCUBE Universal Banking Release [April] [2014]

Security Guide Release 4.0

Oracle Enterprise Manager Ops Center

Microsoft Active Directory Plug-in User s Guide Release

What s New for Cloud at Customer What's New for the Cloud Services on Oracle Cloud at Customer New Documentation for Oracle Cloud at Customer

Day-0 Setup Guide Release July 2018

Legal Notices Oracle Primavera The P6 Extended Schema Copyright 1997, 2012, Oracle and/or its affiliates. All rights reserved. Oracle and Java are reg

Database Change Reference Release 6.3

Contents Overview of the Gateway Performance and Sizing Guide... 5 Primavera Gateway System Architecture... 7 Performance Considerations...

Oracle Enterprise Manager Ops Center

Prerequisites for Using Enterprise Manager with Your Primavera Applications

PeopleSoft Fluid Icon Standards

Contents Overview... 5 Upgrading Primavera Gateway... 7 Using Gateway Configuration Utilities... 9

PeopleSoft Fluid Required Fields Standards

Microsoft Internet Information Services (IIS) Plug-in User s Guide Release

New Features in Primavera P6 EPPM 17

Oracle Database Mobile Server

Oracle Banking Channels Bank User Base

Oracle Hospitality Suite8 Export to Outlook User Manual Release 8.9. July 2015

Deploying Oracle FLEXCUBE Application on WebSphere Oracle FLEXCUBE Universal Banking Release [December] [2016]

Oracle Enterprise Manager Ops Center. Introduction. What You Will Need

Oracle Endeca Commerce Compatibility Matrix

Oracle Hospitality MICROS Commerce Platform Release Notes Release Part Number: E December 2015

Installer Troubleshooting Oracle FLEXCUBE Universal Banking Release [October] [2015]

Oracle Hospitality Cruise Meal Count System Security Guide Release 8.3 E

Open Development Tool Application Deployment in Weblogic Oracle FLEXCUBE Universal Banking Release [May] [2017]

Deploying Oracle FLEXCUBE Application on WebLogic Oracle FLEXCUBE Universal Banking Release [September] [2013] Part No.

Oracle Utilities Work and Asset Management Integration to Primavera P6 Enterprise Project Portfolio Management

Module Code Entries Utility Oracle FLEXCUBE Universal Banking Release [December] [2016]

Reports DSN Entries Utility Oracle FLEXCUBE Universal Banking Release [May] [2018]

Managing Zone Configuration

Oracle Banking Digital Experience

Oracle Configuration Manager

Apple Safari Settings Oracle FLEXCUBE Release [May] [2017]

Scheduler JAVA JOB Creation Oracle FLEXCUBE Universal Banking Release [December] [2016]

Oracle Linux. UEFI Secure Boot Signing Key Update Notice

Recipe Calculation Survey. Materials Control. Copyright by: MICROS-FIDELIO GmbH Europadamm 2-6 D Neuss Date: August 21 st 2007.

Oracle Fusion Middleware

Oracle Enterprise Manager Ops Center E Introduction

Oracle Endeca Guided Search Compatibility Matrix

Managing Personally Identifiable Information in P6 Professional

Oracle Banking APIs. Part No. E Third Party Simulation Guide Release April 2018

Oracle. Field Service Cloud Using the Parts Catalog

Payment Job Framework Property File Creation Oracle FLEXCUBE Universal Banking Release [October] [2015]

Oracle Enterprise Data Quality. 1 Overview. 2 Prerequisites. Siebel Connector Installation Guide 11g Release 1 ( )

Oracle Enterprise Manager Ops Center. Introduction. Creating Oracle Solaris 11 Zones 12c Release 2 ( )

General Security Principles

Oracle Fusion Middleware. 1 Oracle Team Productivity Center Server System Requirements. 2 Installing the Oracle Team Productivity Center Server

Oracle Enterprise Manager

Introduction to Auto Service Request

Documentation Accessibility. Access to Oracle Support

Oracle Utilities Opower Custom URL Configuration

Microsoft.NET Framework Plug-in User s Guide Release

Oracle Retail MICROS Stores2 Functional Document Sales - Receipt List Screen Release September 2015

Oracle Banking Digital Experience

Report Management and Editor!

Oracle Enterprise Manager Ops Center. Overview. What You Need. Create Oracle Solaris 10 Zones 12c Release 3 ( )

Data Model Getting Started Oracle FLEXCUBE Universal Banking Release [May] [2018]

Oracle Banking Channels Bank User Base

Oracle Cloud Getting Started with Oracle WebCenter Portal Cloud Service

Oracle Utilities Customer Self Service

Oracle. Applications Cloud Using Functional Setup Manager. Release 13 (update 18A)

Oracle FLEXCUBE Direct Banking

Oracle Hospitality Cruise Fine Dining System Security Guide Release E

Transcription:

Gateway API Programmer's Guide Release 14.2 September 2014

Contents Introduction... 5 REST Style Architecture... 5 Using the Primavera Gateway API... 7 Sample Java Code that Invokes the API... 7 Reference Documentation... 9 Security... 11 Troubleshooting the Primavera Gateway API... 13 For More Information... 15 Where to Get Documentation... 15 Where to Get Training... 18 Where to Get Support... 19 Documentation Accessibility... 20 Legal Notices... 21 3

Introduction The Primavera Gateway API provides a flexible interface to Primavera Gateway functionality. Based on the Representational State Transfer (REST) architectural style, the API enables developers to leverage standard interfaces to create integrated software solutions that interoperate with a wide variety of enterprise software applications running on a diversity of hardware and operating system platforms. In This Section REST Style Architecture... 5 Using the Primavera Gateway API... 7 Sample Java Code that Invokes the API... 7 Reference Documentation... 9 REST Style Architecture Primavera Gateway API Employs Web-based Technology The Primavera Gateway API platform employs Web-based technology to handle requests from external programs. External client programs use Primavera Gateway API by creating a request and sending it to the application server using one of the following operations. Operation Get Delete Post Put Description Returns data based on the parameters you provide when you call the operation. Deletes objects. Creates new objects. Updates existing objects. Having received the request, Primavera Gateway invokes the required business and security logic to service the request and provide an appropriate response. The following Primavera Gateway APIs provide REST style services: Service appinstances Description The appinstances service supports operations associated with Gateway application instances. 5

Gateway API Programmer's Guide appinstanceconfigurations Flows flowdefinitionapps flowfieldmaptemplates flowinstances flowloadobjects flowstepinstancemessages flowparameters flowstepinstances ParameterValues Services Settings Synchronizations The appinstanceconfigurations service supports operations associated with configurations of Gateway application instances. The Flows service supports operations associated with business flows in the Primavera Gateway application. The flowdefinitionapps loads a list of FlowDefinitionApp objects from the database. The flowfieldmaptemplates service supports operations associated with the field Map templates corresponding to a flow. The flowinstances service supports operations associated with the flowinstance object. The flowloadobjects service retrieves flow business objects associated to a flow. The flowstepinstancemessages service supports operations for messages associated with a flowstepinstance object. The flowparameters service supports operations associated with the flowparameter object. The flowstepinstances service supports operations associated with flowstepinstance objects. The ParameterValues service supports operations associated with parameter values. Each parameter value is identified by a unique ID. The Services service schedules a job and queues it for processing. The Settings service supports operations associated with parameter value object. Each parameter value is identified by a unique ID. The Synchronizations service supports operations associated with synchronizations in the Primavera Gateway application. 6

Introduction Using the Primavera Gateway API Where to Begin Step 1: Install and configure Primavera Gateway for the API As a prerequisite to using the API, you will need to install Primavera Gateway, configure a user with the appropriate security access in the WebLogic application server and in the application. Oracle Web Services Manager (OWSM) must be set up and enabled before you can use the APIs to connect to Primavera Gateway. Step 2: Decide on a client technology Decide on the client technology that you will use with Primavera Gateway to invoke REST style services. Java and JavaScript are examples of technologies that can invoke REST style services to interact with the Primavera Gateway API. Step 3: Use the API to interact with Primavera Gateway This step involves interacting with the API using the following URL patterns to send requests to the API. Basic Authentication: http://<hostname>:<portnumber>/pdi/restapi/v1/<service> SSL Authentication: https://<hostname>:<portnumber>/pdi/restapi/v1/<service> Generally, calls to the API will follow a sequence similar to the following sequence: a. Establish a session and get a session ID. b. Use the session ID to invoke other operations as required by your program. c. Delete the session ID when you are finished. Sample Java Code that Invokes the API The following code is a generic example that demonstrates how to establish a session and use the returned session ID to retrieve business flows.this example uses basic authentication. private static String username = "GatewayAdmin"; private static String password = "Primavera1"; private static String hostname = "localhost"; private static String portnumber = "7001"; private static String getsessionurl = "http://"+hostname+":"+portnumber+"/pdi/restapisession/usersession"; private static String getappsurl = "http://"+hostname+":"+portnumber+"/pdi/restapi/v1/flows/list"; private static String jsessionid; 7

Gateway API Programmer's Guide public static void main(string s[]) throws Exception{ try { //Call session api String sessionjson = callresturl(getsessionurl,"get"); //Convert the JSON to java object ObjectMapper mapper = new ObjectMapper(); Session session = mapper.readvalue(sessionjson, Session.class); //Store session id jsessionid = session.getsessionid(); // Get a list of Flow objects String appsjson=callresturl(getflowsurl,"get"); //End the session object once all the operations are done String deletejson = callresturl(getsessionurl+";jsessionid="+session.getsessionid(),"delete "); } } catch (Exception e) { e.printstacktrace(); throw e; } private static String callresturl(string resturl,string method) throws Exception { HttpURLConnection conn = null; try { URL url = new URL(restUrl); conn = (HttpURLConnection) url.openconnection(); conn.setrequestmethod(method); conn.setrequestproperty("accept", "application/json"); if(jsessionid!= null){ conn.setrequestproperty("cookie", "JSESSIONID=" + jsessionid); } 8

Introduction String usercredentials = username+":"+password; String base64credentials javax.xml.bind.datatypeconverter.printbase64binary(usercredentials.getb ytes()); String basicauth = "Basic " + base64credentials; conn.setrequestproperty("authorization", basicauth); if (conn.getresponsecode()!= 200) { throw new RuntimeException("Failed : HTTP error code : " + conn.getresponsecode());} BufferedReader br = new BufferedReader(new InputStreamReader((conn.getInputStream()))); String output; StringBuilder buff = new StringBuilder(); while ((output = br.readline())!= null) { buff.append(output); } return buff.tostring(); } } finally { if(conn!= null) conn.disconnect(); } Reference Documentation The Primavera Gateway API provides reference documentation that is available from an Primavera Gateway deployment. To access the documentation: 1) Go to the Primavera Gateway documentation library on Oracle Technology Network (OTN). 2) Select the Oracle Primavera Gateway API Documentation link. 3) Select the links for each service to review details about the operations that the service provides and the parameters that can appear in the requests or responses. 9

Security Primavera Gateway provides security at both the transport and the application levels. Refer to the Tested Configurations document for details on specific configurations. Transport Level Security using HTTPS The Primavera Gateway API supports both the HTTPS and HTTP protocols. You can use HTTPS (Hypertext Transfer Protocol over Secure Socket Layer) to achieve secure communication at the transport layer of the OSI Model as long as SSL is enabled for the Gateway domain. The API supports the HTTP protocol for basic authentication and communication. Application Level At the application level, the API supports Global, and Project, access to the application. 11

Troubleshooting the Primavera Gateway API If you are experiencing difficulty in connecting to and using the API, check the following items: The URL that you are using is correct. OWSM setup is correct. The application is running. The user name that you are using to invoke the API has access to the application and the data that you are attempting to retrieve. 13

For More Information In This Section Where to Get Documentation... 15 Where to Get Training... 18 Where to Get Support... 19 Documentation Accessibility... 20 Where to Get Documentation Complete documentation libraries for Primavera Gateway releases are available on the Oracle Technology Network (OTN) at: http://www.oracle.com/technetwork/documentation/default-1923957.html From this location you can either view libraries online or download them to have local copies. We recommend viewing them from OTN to ensure you always access the latest versions, including critical corrections and enhancements. Primavera Gateway is configured to access its help system on OTN. However, you can also install a local version when you install the software. The documentation assumes a standard setup of the product, with full access rights to all features and functions. The following table describes the core documents available for Primavera Gateway and lists the recommended readers by role. Title Gateway Help Gateway Developer's Guide Gateway Customization Guide Description Describes how to work with Primavera Gateway and provides information to help users accomplish tasks. All users should read the Help. Provides information on how third-party systems such as enterprise resource management (ERP) and enterprise asset management (EAM) systems can create their own providers in order to integrate with Primavera products. Developers of third-party providers that integrate with Primavera products via Primavera Gateway should read this book. Provides information on how to customize an existing third-party integration. Developers interested in customizing existing third-party 15

Gateway API Programmer's Guide Title Gateway Provider Reference Guide EBS Provider Reference Guide VCP Provider Reference Guide Manual Deployment Guide Gateway Installation and Configuration Guide Description providers that integrate with Primavera products via Primavera Gateway should read this book. Provides a list of the business objects available for each supported provider. Developers of third-party providers that integrate with Primavera products via Primavera Gateway should read this book. Provides a list of the business objects available for the EBS provider. Developers of third-party providers that integrate with Primavera products via Primavera Gateway should read this book. Provides a list of the business objects available for the VCP provider. Developers of third-party providers that integrate with Primavera products via Primavera Gateway should read this book. Provides information on how to manually install and configure Primavera Gateway. administrator and the administrator for the third-party or ERP system should read this guide. Provides information on how to install and configure Primavera Gateway. Primavera Gateway is a product that facilitates integrations with Primavera products and third-party systems such as enterprise resource management (ERP) and enterprise asset management (EAM) systems. administrator and the administrator for the third-party or ERP system should read this guide. Gateway Upgrade Guide Provides a sequence of procedures that must be completed to upgrade to a new version of Primavera Gateway. administrator and the administrator for the third-party or ERP system should read this guide. Gateway Performance and Sizing Guide Provides hardware and software requirements for deploying Primavera Gateway. administrator and the administrator for the third-party or ERP system should read this guide. 16

For More Information Title Description Gateway Security Guide Provides guidelines on establishing a highly secure environment for all Primavera Gateway environments. administrator and the administrator for the third-party or ERP system should read this guide. Gateway API Programmer's Guide Connecting with Instantis EnterpriseTrack Connecting Prime and P6 EPPM Connecting Unifier and P6 Enterprise Project Portfolio Management Migrating P6 Master Data Between Distinct Environments Provides instructions on how to access and use Primavera Gateway REST APIs. administrator and Primavera Gateway users having the Gateway Developer role should read this guide. Provides instructions on how to setup the integration environment for Oracle Instantis EnterpriseTrack in Primavera Gateway. administrator and the administrator for the third-party system should read this guide. Provides instructions on how to setup the integration environment between Oracle Primavera Prime and P6 Enterprise Project Portfolio Management in Primavera Gateway. administrator and the administrator for the third-party system should read this guide. Provides instructions on how to setup the integration environment between Oracle Primavera Unifier and P6 Enterprise Project Portfolio Management in Primavera Gateway. administrator and the administrator for the third-party system should read this guide. Provides instructions on how to setup the integration environment between distinct P6 deployments to transfer P6 data in Primavera Gateway. administrator and the administrator should read this guide. 17

Gateway API Programmer's Guide Title Connecting E-Business Suite and P6 EPPM Connecting Value Chain Planning and P6 EPPM Configuring Gateway for Single Sign On Gateway Licensing Information User Manual Tested Configurations Description Provides instructions on how to setup the integration environment between Oracle E-Business Suite and P6 Enterprise Project Portfolio Management in Primavera Gateway. administrator and the administrator for the third-party system should read this guide. Provides instructions on how to setup the integration environment between Oracle Value Chain Planning and P6 Enterprise Project Portfolio Management in Primavera Gateway. administrator and the administrator for the third-party system should read this guide. Provides instructions on how to configure Oracle Access Manager (OAM) and then enable Single Sign On for Primavera Gateway. administrator should read this guide. Lists licensing information of all third-party software that is used or associated with the Oracle software program. Lists the configurations that have been tested and verified to work with Primavera Gateway. administrator and the administrator for the third-party or ERP system should read this guide. Distributing Information to the Team You can copy the online documentation to a network drive for access by project participants. Each team member can then view or print those portions that specifically relate to his or her role in the organization. Throughout this documentation, the Security Guidance icon helps you to quickly identify security-related content to consider during the installation and configuration process. Where to Get Training To access comprehensive training for all Primavera products, go to: http://education.oracle.com 18

For More Information Oracle Learning Library The Oracle Learning Library (OLL) provides online learning content covering Primavera products. Content includes videos, tutorials, articles, demos, step-by-step instructions to accomplish specific tasks, and self-paced interactive learning modules. To access the learning library s Primavera content, go to: http://www.oracle.com/goto/oll Where to Get Support If you have a question about using Oracle products that you or your network administrator cannot resolve with information in the documentation or help, click http://support.oracle.com/. This page provides the latest information on contacting Oracle Global Customer Support, knowledge articles, and the support renewals process. For more information about working with Support, visit https://support.oracle.com/epmos/faces/documentdisplay?id=888813.2 to view Support Tools & Tips. Access to Oracle Support Oracle customers have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/us/support/contact-068555.html or visit http://www.oracle.com/us/corporate/accessibility/support/index.html if you are hearing impaired. Using Primavera's Support Resource Centers Primavera s Support Resource Center provides links to important support and product information. Primavera's Product Information Centers (PICs) organize documents found on My Oracle Support (MOS), providing quick access to product and version specific information such as important knowledge documents, Release Value Propositions, and Oracle University training. PICs also offer documentation on Lifetime Management, from planning to installs, upgrades, and maintenance. Visit https://support.oracle.com/epmos/faces/documentdisplay?id=1486951.1 to access links to all of the current PICs. PICs also provide access to: Communities are moderated by Oracle providing a place for collaboration among industry peers to share best practices. News from our development and strategy groups. Education contains a list of available Primavera product trainings through Oracle University. The Oracle Advisor Webcast program brings interactive expertise straight to the desktop using Oracle Web Conferencing technology. This capability brings you and Oracle experts together to access information about support services, products, technologies, best practices, and more. For more information about working with Support, visit https://support.oracle.com/epmos/faces/documentdisplay?id=888813.2. 19

Gateway API Programmer's Guide Documentation Accessibility For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc. 20

Legal Notices Oracle Primavera Gateway API Programmer's Guide Copyright 2013, 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable: U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government. This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate failsafe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications. This software or hardware and documentation may provide access to or information on content, products and services from third-parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services. 21