- Add a “Service task” from 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 Service Task and select the Main config tab.
- Select Java Task as the Task Type.
Add the following fields to the Documentation section by clicking the New button.
Field Name String Value Expression serviceURL <REST ENDPOINT URL> method HTTP method (GET or POST only) outputVariable Name of the variable to save response basicAuthUsername Username if the endpoints are secured basicAuthPassword Password for the username above input Request payload headers header values in the format "headerName1:headerValue1,headerName2:header Value2"
The following code block provides an example service task definition to use as the REST task.