You can send files in Base64 or UTF-8 format to IBM PEM by mapping the
content to a file upload component in an API request.
This task assumes that you have an activity with a task that has an API dialog.
Important: The API call fails if the file upload request exceeds the maximum length of an API
request, which is 1,024,000 characters. Including large files (greater than or equal to 2MB) in an
API request causes high memory consumption.
-
Sign in to the PEM Portal as a Sponsor Administrator.
-
Select .
The list of activity definitions is displayed.
-
In the Actions column for the activity, select Edit.
A window with a Task Flow pane is displayed.
-
Right-click on the task with the API dialog, and select Define.
A window with a Dialog Flow pane is displayed.
-
Right-click on the API dialog and select Define.
-
Click the mapping button (...) next to the Request field.
Note: The mapping button does not open the API Request Mapping window if the
request XML definition is blank or invalid.
The API Request Mapping window is displayed.
-
Map a file upload component to the API element.
-
Click OK to close the mapping window.
-
Click Save as Draft to save the activity.