Invoke

Invoke

Invoking processes using HTTP verbs

Invoking processes using HTTP verbs

You can use the following HTTP verbs to invoke a process:
  • GET
  • POST
  • PATCH
  • PUT
  • DELETE
You can configure a single process to use different HTTP verbs and perform different CRUD operations based on the HTTP verb that is used in a request. You can use XQuery functions to determine the HTTP verb and the resource path segments that are used in a request.
For example, you want to update a CRM system with customer records. You might want to perform one or more of the following tasks:
  • Use the GET verb to read a customer record.
  • Use the POST verb to insert a new customer record.
  • Use the PATCH verb to update an existing customer record.
  • Use the PUT verb to overwrite an existing customer record.
  • Use the DELETE verb to delete an existing customer record.
You can configure a single process to perform all these operations as shown in the following image:
The image shows a process that uses the getRequestHTTPVerb function in the Assignment step to determine the HTTP verb that is used in the request. Based on the HTTP verb that is used, the Decision step branches out to different paths to perform different CRUD operations.
The Assignment step in the process uses the
getRequestHTTPVerb
function to determine the HTTP verb that is used in the request. The following image shows the
getRequestHTTPVerb
function under the
Request Context
section in the Expression Editor:
The image shows the getRequestHTTPVerb function under the Request Context section in the Expression Editor.
Based on the HTTP verb that is used, the Decision step branches out to different paths to perform different CRUD operations.
To view a video about using different HTTP verbs to invoke a process, see the following community article:

0 COMMENTS

We’d like to hear from you!