0% found this document useful (0 votes)
31 views

File Upload EPM-FTP using Integration Cloud Implementation Guide

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

File Upload EPM-FTP using Integration Cloud Implementation Guide

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

File Transfer EPM-FTP Using Integration Cloud

Sample OIC Integration Flow (File transfer to EPM Cloud from


FTP location) Implementation Guide
ORACLE WHITE PAPER | MAY 2018
Disclaimer
The following is intended to outline our general product direction. It is intended for information
purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any
material, code, or functionality, and should not be relied upon in making purchasing decisions. The
development, release, and timing of any features or functionality described for Oracle’s products
remains at the sole discretion of Oracle.

FILE TRANSFER EPM-FTP USING INTEGRATION CLOUD


Table of Contents

Disclaimer 1

Introduction 1

Pre-requisite 1

Integration Flow 1

Configure the Integration 2

Import the Integration 2

Edit the Connections 4

EPM_REST_CONNECTION Connection 4

FTP_CONNECTION Connection 5

Modify the Integration 6

Activate the Integration 8

Integration Steps 10

Step 1 11

Step 2 11

Step 3 11

Step 4 12

Step 5 12

Step 6 13

Step 7 18

Run the Integration 18

Prepare the file 18

0 | File Transfer EPM-FTP Using Integration Cloud


Delete the File in EPM cloud 18

Run the integration 19

Check the Result 19

OIC 19

EPM 20

Debugging 20

Security 22

Useful information 23

1 | File Transfer EPM-FTP Using Integration Cloud


Introduction
This document describes step-by-step instructions on how to transfer a file from any FTP/SFTP location
to EPM cloud using Oracle Integration Cloud (OIC). This flow is a scheduled orchestration. It makes use
of a standard FTP and REST adapter in Oracle Integration Cloud.

The file is read from the FTP location and then transferred to EPM cloud via a REST adapter connection.
Refer to EPM documentation for the REST service used in this flow.

https://docs.oracle.com/cloud/latest/epm-common/PREST/toc.htm

https://docs.oracle.com/cloud/latest/epm-common/PREST/upload.htm#PREST-lcm_rest_apis_3

This sample integration flow works on EPM Cloud release 18.03 or later and OIC 18.1.5 or later. In the
package, there is an implementation guide, which has the step-by-step instructions. There is an OIC
archive file - you import the archive to your OIC environment, make necessary configurations, and the
integration will work.

To download the package, please access this article on Oracle Cloud Customer Connect. If it's your first
time accessing Oracle Cloud Customer Connect, you will need to register by clicking the "Register"
button at the top right.

This sample integration is not part of the standard Oracle product. Oracle will not maintain it for future
changes or the particular requirements. If you need to update the integration, please refer to OIC
documentation.

Pre-requisite
Oracle Integration Cloud 18.1.5

Oracle EPM Cloud 18.03

Publicly accessible FTP/SFTP server

Integration Flow
Below is the integration flow.

1 | File Transfer EPM-FTP Using Integration Cloud


It is a simple flow that is triggered by the schedule, downloads the file from the FTP location and then uploads it to
EPM Cloud.

Configure the Integration

Import the Integration


The installation package contains “EPM_FILE_UPLOAD_01.00.0000.iar”, an OIC integration archive file.

Download the package to your local disk.

Log in to your OIC service and open the “Integrations” page.

2 | File Transfer EPM-FTP Using Integration Cloud


On the top right, click Import, then select “EPM_FILE_UPLOAD_01.00.0000.iar”. Click Import to import the archive
to your OIC, as shown below.

Once imported you will see the following integration flow created.

Two connections with names “EPM_REST_CONNECTION” and “FTP_CONNECTION” will appear under the
Connection page.

3 | File Transfer EPM-FTP Using Integration Cloud


Edit the Connections
Navigate to the Connections page and click the Edit menu to edit the connections as shown below.

EPM_REST_CONNECTION Connection
On the Edit connection page for “EPM_REST_CONNECTION”, click Configure Connectivity. Enter your EPM Cloud
service URL, for example: https://planning-xyzcom.stg-pbcs.us1.oraclecloud.com. Click OK to close the dialog.

Click Configure Security and then provide the user credentials for your EPM cloud service. Then click OK.

4 | File Transfer EPM-FTP Using Integration Cloud


Click Test, Save and Close.

FTP_CONNECTION Connection
On the Edit connection page for “FTP_CONNECTION”, click Configure Connectivity. Enter FTP/ SFTP server
details and click OK.

5 | File Transfer EPM-FTP Using Integration Cloud


Click Configure Security and provide the credentials/certificate details depending on the FTP/SFTP server you are
using.

Click OK to close the dialog.

Then click Test and make sure the connection is successful. Click Save and Close.

Modify the Integration


Only a minor modification is needed to get this integration working. Navigate to the Integration page and click on Edit
next to the integration name “EPM_FILE_UPLOAD”

Click on “assign_file” and then click the Edit icon.

6 | File Transfer EPM-FTP Using Integration Cloud


The following variables need to be modified.

Name Description Sample value Modification


assign_file_folder This is the folder location on FTP server ‘/Data/Jan/records’ Required
where the file is located.
assign_file_name This is the file which has to be ‘dataFile.dat’ Required
downloaded from ftp location.
assign_oic_location This is the temporary location on OIC ‘/tmp’ Optional
where the file would be downloaded.
assign_epm_file_name The name to be used while saving the $assign_file_name or Optional
file on EPM. By default it is equal to the ‘newDataFile.dat’
file name on ftp location, for example
assign_file_name.
You can provide a new file name if
desired.
assign_epm_file_folder The folder in EPM cloud where the file ‘/inbox/Jan’ Optional
has to be uploaded. This is optional.

To modify any of these, click on the Edit icon on the table row under the Value column.

7 | File Transfer EPM-FTP Using Integration Cloud


Then enter the value under Expression text box and click Close.

Repeat the steps for all the required/desired fields and then click Close.

Save the integration by clicking on Save and then click Close to close the integration.

Activate the Integration


On the Integration page, click on Activate to activate the integration flow.

8 | File Transfer EPM-FTP Using Integration Cloud


The below dialog will pop-up, asking if you want to enable the tracing and include payload with Activation. “Include
payload” will write the sensitive information into OIC log files. It could be used in the testing but is not recommended
in production. Click Activate here; you can add the schedule later.

On successful activation, the button will change to green.

9 | File Transfer EPM-FTP Using Integration Cloud


Integration Steps

Below are the detailed steps of the sample integration. To configure or run the integration, you do not need to walk
through all the steps. To update the integration or build more features upon the sample, you can go through each
step.

10 | File Transfer EPM-FTP Using Integration Cloud


Step 1
Indicates this is a scheduled “Orchestration” type integration.

Step 2
This is the Assignment step to initialize a few variables used later in the integration flow.

These variables are already covered in the section “Modify the integration”.

Step 3
This is mapping to the request schema for Download File Operation from FTP location. The variables initialized in
previous steps are mapped directly to corresponding fields in Download File Request.

11 | File Transfer EPM-FTP Using Integration Cloud


Step 4
The FTP endpoint specifies:
» Operation as “Download File”
» Transfer mode is “Binary”.
» The Input directory and File name are the folder and file name present in FTP location. These are optional
and specified during mapping in previous step.
» Download directory is the location in OIC where the file would be downloaded before sending to EPM.

Step 5
This is the mapping to Request schema for REST service to upload the file to EPM.
» The “File Reference” represents the stream of the file downloaded from FTP location. This is mapped directly to
the “streamReference, for example the application-octet stream of the REST request used to upload the file to
EPM.
» The variable $assign_epm_file_name is mapped to the path parameter “file_name” of the REST request.
» There is a query parameter “q” required for REST request. The value of “q” is determined based on two
parameters: “size” of the file, “$assign_epm_file_folder” variable.
» If the destination EPM folder where the file has to be uploaded is not specified, “$assign_epm_file_folder” would
be empty and then the value of q is constructed as following string:
{isLast:true,isFirst:true,chunkSize:size}
» If the destination EPM folder is specified, “$assign_epm_file_folder” would not be empty and then the value of q is
constructed as following string:
{ isLast:true,isFirst:true,chunkSize:size, extDirPath: "$assign_epm_file_folder" }

12 | File Transfer EPM-FTP Using Integration Cloud


If you click on “q” , you can see the functions used to construct the value.

Step 6
This step specifies the REST endpoint details to upload the file to EPM. Refer to EPM documentation for details on
the REST service used for upload.

https://docs.oracle.com/cloud/latest/epm-common/PREST/upload.htm#PREST-lcm_rest_apis_3

13 | File Transfer EPM-FTP Using Integration Cloud


The EPM REST URL for upload is “/interop/rest/11.1.2.3.600/applicationsnapshots/{file_name}/contents” where
{file_name} is a path parameter.

The operation action type is “POST”.

To specify the query parameter, “Add and review parameters for this endpoint” is checked.

To specify request payload type, “Configure a request payload for this endpoint” is checked.

To specify the response type and schema, “Configure this endpoint to receive the response” is checked.

14 | File Transfer EPM-FTP Using Integration Cloud


EPM upload REST service has a request query parameter named “q”. The format of “q” is explained in the previous
step.

15 | File Transfer EPM-FTP Using Integration Cloud


EPM upload REST service accepts file contents as “application/octet-stream”, so the payload format is selected as
“Raw” and media type is specified as “application/octet-stream”.

16 | File Transfer EPM-FTP Using Integration Cloud


EPM upload REST service returns a response as JSON content. Following is the sample JSON:
{
"status":0,
"details":null,
"links":[
{
"data":null,
"action":"POST",
"href":"null",
"rel":"self"
}
]
}

Summary page looks like this:

17 | File Transfer EPM-FTP Using Integration Cloud


Step 7
End of integration

Run the Integration

Prepare the file


Make sure the file you want to transfer and that you specified in the integration flow Step 2 is available in the FTP
location within the specified folder.

Delete the File in EPM cloud


Make sure the file does not exist on EPM cloud. You can use the EPM Automate utility to remove the file from EPM
Cloud if it already exists.

18 | File Transfer EPM-FTP Using Integration Cloud


Refer to the following documentation for EPM Automate:

https://docs.oracle.com/cloud/latest/epm-common/CEPMA/toc.htm

Run the integration


For testing purposes, click Submit Now from the menu to run the integration right away instead of scheduling. In
production, you will define a schedule to run the integration regularly.

Check the Result

OIC
You can check the status of the integration from the Monitoring page in OIC.

19 | File Transfer EPM-FTP Using Integration Cloud


EPM
You can also check that the file is successfully uploaded to your EPM Cloud service using EPM Automate.

Debugging
You can view the messages generated during the flow execution by going to the Tracking page on OIC if tracing
was enabled during activation.

20 | File Transfer EPM-FTP Using Integration Cloud


Click on the business identifier, for example, “start time: xxxx”. Then click View Activity Stream from the menu.

Inspect the messages flow between the steps of integration flow.

21 | File Transfer EPM-FTP Using Integration Cloud


Security

The below user accounts are used in the sample integration. It is the responsibility of the customer to manage the
accounts and security.

User Account Use to


FTP/SFTP user account Access customer’s FTP/SFTP site

OIC user account Login, import, modify, and run the integration.

EPM Cloud user account Invoke the REST service on EPM cloud to upload the file

22 | File Transfer EPM-FTP Using Integration Cloud


Useful information

Integration Cloud

https://docs.oracle.com/en/cloud/paas/integration-cloud-service

EPM Cloud

https://cloud.oracle.com/epm-cloud

EPM REST service

https://docs.oracle.com/cloud/latest/epm-common/PREST/toc.htm

https://docs.oracle.com/cloud/latest/epm-common/PREST/upload.htm#PREST-lcm_rest_apis_3

EPM Automate

https://docs.oracle.com/cloud/latest/epm-common/CEPMA/toc.htm

REST Adapter

https://docs.oracle.com/en/cloud/paas/integration-cloud-service/icsre/getting-started-rest-adapter.html

FTP Adapter

https://docs.oracle.com/en/cloud/paas/integration-cloud-service/icsft/getting-started-oracle-ftp-cloud-adapter.html

23 | File Transfer EPM-FTP Using Integration Cloud


Oracle Corporation, World Headquarters Worldwide Inquiries
500 Oracle Parkway Phone: +1.650.506.7000
Redwood Shores, CA 94065, USA Fax: +1.650.506.7200

CONNECT W ITH US

blogs.oracle.com/oracle
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. This document is provided for information purposes only, and the
contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other
facebook.com/oracle warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or
fitness for a particular purpose. We specifically disclaim any liability with respect to this document, and no contractual obligations are
formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any means,
twitter.com/oracle electronic or mechanical, for any purpose, without our prior written permission.

oracle.com Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and
are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are
trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.

You might also like