Table of Contents

Search

  1. Preface
  2. Understanding Data Types and Field Properties
  3. Designing Processes
  4. Using and Displaying Data
  5. Designing Guides
  6. Designing Process Objects
  7. Designing Service Connectors
  8. Using App Connections
  9. System Services, Listeners and Connectors
  10. Designing Human Tasks

Design

Design

HTTP verb functions

HTTP verb functions

Use HTTP verb functions to retrieve the HTTP verb and the resource path segments that are used in a request. The HTTP verb functions are available under the
Request Context
section of the Expression Editor.
You can use the following HTTP verb functions:
getRequestHTTPVerb
Use the
getRequestHTTPVerb
function to determine the HTTP verb that is used in a request. The function retrieves the HTTP verb from the request and returns one of the following responses in a string format:
  • GET
  • POST
  • PATCH
  • PUT
  • DELETE
getResourcePathSegments
Use the
getResourcePathSegments
function to retrieve all or specific resource path segments of REST requests. The function returns the values as a string of tokens.
For example, consider the following request URL:
https://na1.ai.dm-us.informaticacloud.com/active-bpel/rt/InitiateOrder/Orders/OrderID_100/quantity/5
If you use the
request:getResourcePathSegments()
expression, you see the following response:
[Orders, OrderID_100, quantity, 5]
To retrieve a specific resource path segment, use a numeric qualifier to denote the position of the resource path segment from the process name.
For example, to retrieve the
OrderID_100
segment alone in the response, use the following expression:
request:getResourcePathSegments()[2]
You cannot use the
getResourcePathSegments
function to fetch the resource path segments of SOAP requests and message events. You cannot use the
getResourcePathSegments
function to fetch the host context.

0 COMMENTS

We’d like to hear from you!