- Create a BPMN process and a BPMN diagram. For instructions, see Creating a BPMN Process.
- Drag and drop a REST Task from the tools palette in the place where you need to invoke the endpoint.
- Go to the Properties panel of the REST Task and select the Main config tab.
Enter values for the following fields appropriately, as shown in the example below.
Field Name String Value Required/Optional Service URL
URL of the target endpoint
You can give this instead of the Service Reference (EPR).
Required BasicAuth Username Username if the endpoints are secured Required BasicAuth Password Password for the username above Required Service Reference (EPR)
Registry resource path of the endpoint referenceOptional
You can give this instead of the Service URL.
HTTP Method HTTP method (GET. POST, PUT or DELETE) Required Input Payload Request payload Optional Output Variable name Name of the variable to save the response Optional Output Variable Mappings
Variable mappings to map JSON response content into multiple variables.
Code Block language java
Optional Transport headers
Header values in the format
Code Block language js