Mapping an API response to an XSLT input
You can map API responses to XSLT input for a partner task, sponsor task, or a system task.
This task assumes that you have an API that gives responses you want to map to an XSLT
input. The task requires that you have an API dialog in a Partner task, Sponsor task, or a System
task in an activity. The complete response of an API request can be mapped to an XSLT
input.
- 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, click the arrow and select
Edit.
The Task Flow page is displayed.
- Add the Partner Task, Sponsor Task, or the System Task.
- Right-click and select Define.
- Drag the API and the XSLT components to the task flow workspace.
- Enter a name for the task and click OK.
- Add a connector from the API to the XSLT.
- Right-click the API icon and select Define.
- Click ... to select the XML to map from the API response You can also provide the actual mapping data instead of the XML structure.
- Enter the sample API response.
- Click OK to close the API definition window.