Use Oracle Integration to Add Attachments to a Process Instance by Bogdan Eremia
September 29, 2021 Leave a comment
The other day it came to my attention that it’s not really straightforward to add attachments to an Oracle Process Instance using the REST API.
One reason for this is that it requires multipart/mixed
media type for the request body message format, and producing this kind format is not so common for JavaScript clients. The JS clients are more used to working with multipart/form-data
, the de-facto standard for form-based file upload in HTML.
One way of overcoming this is to use Oracle Integration Cloud (OIC) between the JS client and Process REST API. OIC has a REST Technology Adapter that supports sending/receiving attachments in both multipart/mixed
and multipart/form-data
media types. The goal is to shape in OIC a REST interface that accepts multipart/form-data
, to do a translation into multipart/mixed
(alongside with other transformations/actions if required) and to call the Process REST API. Below are the main steps for achieving this.
1. Create a REST Connection in OIC for Process REST API.
Go to OIC Homepage > Designer > Connections to create a new connection by selecting the REST Adapter. Read the complete article here.
For regular information on Oracle PaaS become a member in the PaaS (Integration & Process) Partner Community please register here.
Blog
Twitter
LinkedIn
Facebook
Wiki
Technorati Tags: SOA Community,Oracle SOA,Oracle BPM,OPN,Jürgen Kress