Uploading files to Oracle Document Cloud Service using SOA by Shreenidhi Raghuram

clip_image002

This blog provides a quick tip for implementing file upload into Oracle Document Cloud Service (DOCS) using java in Oracle SOA and Oracle SOA Cloud Service(SOACS)

The DOCS upload REST service requires POSTing of multipart form, a feature that is currently unavailable in the REST cloud adapter. This POST request to upload a file contains 2 body parts. The first being a json payload and the second containing the actual file content.

The request format looks as shown here in the Oracle Documents Cloud Service REST API Reference.

The section below shows a java embedded block of code that can be used within a BPEL process to achieve the file upload. This can be used in Oracle SOA and SOACS – BPEL composites. A valid DOCS endpoint, credentials for authorization, and a GUID of the folder location for the file upload are required to execute this REST call.
In this sample, a pdf document file is being uploaded into DOCS. The media type should be appropriately changed for other content formats.
Also, It is recommended to access the authorization credentials from a credential store when developing for production deployments. This section is only intended as a demo. Read the complete article here.

SOA & BPM Partner Community

For regular information on Oracle SOA Suite become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn image[7][2][2][2] Facebook clip_image002[8][4][2][2][2] Wiki

Basic integration of Process Cloud Service with Document Cloud Service by Lykle Thijssen

clip_image001

 

Recently, Oracle had released a new version of Process Cloud Service. It mainly contains some minor improvements, but also has one major update: Oracle Process Cloud Service can now use Oracle Document Cloud Service for working with documents in business processes. This blog will show you how to make it happen.

Establishing the connection

In the main page of Oracle Process Cloud Service, click on your user in the right-top corner and select “Administration”. On the Administration page, you click “Settings” under Configuration, which will get you where you want to be. Here you can fill in the URL of your Document Cloud Service, as well as username and password of the admin user. You can test the configuration immediately and click “Save” in the upper right corner when the integration was successful.

Once the connection has been established, we can proceed to using documents in our processes immediately!

Developing the process

For this blog, I have created a small sample process for insurance claims. An employee of an insurance company will enter some details through a web form and attach a bill sent by a client. Then, if the bill is over $1000, a manager needs to approve or reject the claim. After this, the process will end. The small sample process looks as follows:

During development of the process, I have done nothing related to documents, this comes automatically! Of course, it is possible to work on document settings: for example, you can set access rights while implementing the human task. You can also create document folders on the application level of Process Cloud, but for now, I have decided to go with the default setting of one folder for my application, which will automatically be created in Document Cloud. For every instance of the process, a subfolder is automatically created too, so from Document Cloud side, it looks as follows: Read the complete article here.

SOA & BPM Partner Community

For regular information on Oracle SOA Suite become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn image[7][2][2][2] Facebook clip_image002[8][4][2][2][2] Wiki