REST Service activity

An activity that calls a REST service method from an AgilePoint process. You can select and configure the method call by connecting to a REST service URI.



Configure the REST Service activity

To configure the REST Service activity, do the procedure in this topic.

Examples

Prerequisites

  • An operational REST Service.

Good to Know

  • In most text fields, you can use process data variables as an alternative to literal data values.
  • You can configure whether this activity waits for other activities before it runs.

    For more information, refer to How Do I Configure an Activity to Wait for Other Incoming Activities?

  • Documentation for Integrations with Third-Party, External, or Open Source Technologies

    The highest priority for AgilePoint NX Product Documentation is accuracy. Whenever feasible, AgilePoint provides input details, business rules, or example values for third-party integrations. These can include any technology that is not native to AgilePoint NX, such as Salesforce, Active Directory, or REST. However this information is subject to change without notice to AgilePoint. Because we can not guarantee the accuracy of this information, the details provided for third-party product input values, as well as examples for third-party product integrations, are limited in the AgilePoint documentation. It is the responsibility of third-party vendors to provide documentation related to these aspects of their software and services.

    For examples of use case implementations or configuration field input values for third-party products, AgilePoint recommends these resources:

    • AgilePoint Community Forums - An AgilePoint-moderated, crowd-sourcing user forum where you can ask questions about specific techniques, the solutions to use cases, workarounds, or other topics that may not be covered in the Product Documentation.
    • Professional Services - If you can not find the information you need for your specific business problem, mentoring is available through AgilePoint Professional Services.
    • Personalized Training - AgilePoint can provide personalized training for your organization. To request personalized training, contact AgilePoint Sales.
    • Third-Party Vendor Documentation - Whenever feasible, AgilePoint provides links to third-party vendor documentation.

      This does not include technology standards or protocols, such as JavaScript, REST, or FTP. Resources for these technical standards are publicly available on the Internet.

How to Start

  1. On the Application Explorer screen, do one of these:
  2. Do one of these:
    • Add an activity:
      1. In the Process Builder, in the Activity Library, open the Web Services Web Services icon tab.
      2. On the Web Services Web Services icon tab, drag the REST Service REST Service icon activity onto your process.
    • Change an activity:
      1. In your process, double-click your activity.

Procedure

  1. Complete the fields on the General Configuration screen.

    For more information, refer to Configure General Options for Web Service.

  2. Click REST Access Token REST Access Token icon.
  3. On the REST Access Token screen, in the REST Service list, select your REST service access token.
  4. To connect to the REST service, in the REST Service list, select your REST service access token.
  5. (Optional) To do advanced configuration for the REST service, do this procedure.
    1. Select Advanced Configuration.
    2. Click REST Configuration REST Configuration icon.
    3. Complete the fields on the Advanced REST Configuration screen.
  6. Click REST Request Payload REST Request Payload icon.
  7. On the REST Request Payload Configuration screen, do one of these:
    • To configure the custom payload details for the REST Service request, do this procedure.
      1. Select Custom Payload.
      2. Enter payload values in the box to use when the process runs. The values of the payload must be in JSON/XML format.
    • To map the PayLoad with Schema, do this procedure.
      1. Select Map Payload with Schema.
      2. In the box, enter the payload values which you want to map from schema.
      3. Click Map Schema.
      4. On the Schema Mapper screen, map the request columns to the schema elements.
  8. Click REST Response REST Response icon.
  9. Complete the fields on the REST Response Configuration screen.
  10. (Optional) Click Advanced Advanced icon > E-mail Notifications E-mail Notifications icon.

    For more information, refer to Configure E-mail Notifications for Any Activity.

General Configuration

Specifies the common information for a system activity.

Screen



Fields

Field Name Definition

Display Name

Function:
Specifies the activity name that shows in your process.
Accepted Values:
One line of text that can have spaces.
Default Value:
None
Accepts Process Data Variables:
No
Example:
Refer to:

Description

Function:
Specifies an optional text description for your activity.
Accepted Values:
More than one line of text.
Default Value:
None
Accepts Process Data Variables:
No

REST Access Token Configuration

Specifies the access token or configure the REST service.



Fields

Field Name Definition

REST Service

Function:
Specifies the access token that connects to your REST service.
Accepted Values:
A list of access tokens configured for your environment.
Default Value:
A process data variable based on the parameter name.
Example:
Refer to:

Add Token Add Token icon

Opens this Screen:
Access Token for REST
Function of this Screen:
Configure an access token to connect to a REST service.

Advanced Configuration

Function:
Specifies if you want to do a detailed configuration of the REST service.
Accepted Values:
  • Deselected - Does not do a detailed configuration of the REST service.
  • Selected - Does a detailed configuration of the REST service.
Default Value:
Deselected

Advanced REST Configuration

Specifies the advanced configuration options for your REST service connection.

Screen



Fields

Field Name Definition

Request URL

Function:
Specifies the REST service URL for your method.
Accepted Values:
A valid REST service URL.
Default Value:
None

Action

Function:
Specifies the type of action for the REST service to do.
Accepted Values:
  • POST
  • GET
  • DELETE
  • PUT
  • PATCH
Default Value:
GET

Content Type

Function:
Specifies the type of content the REST service uses.

JSON or XML patch files are also supported to patch the document with the specified changes.

Accepted Values:
  • JSON
  • XML
Default Value:
JSON

Accept

Function:
Specifies the data format to accept in a REST service.
Accepted Values:
  • XML
  • JSON
Default Value:
JSON

Protocol

Function:
Specifies the communication protocol for your REST service.
Accepted Values:
  • HTTP 1.0
  • HTTP 1.1
Default Value:
HTTP 1.0
Example:
Refer to:

Request Timeout (Seconds)

Function:
Specifies the maximum amount of time, in seconds, to complete the REST service call for the activity.
Accepted Values:
An integer that specifies a number of seconds.
Default Value:
600

Read/Write Timeout (Seconds)

Function:
Specifies the maximum amount of time, in seconds, for read and write methods.
Accepted Values:
An integer that specifies a number of seconds.
Default Value:
600

Continue Timeout(seconds)

Function:
Specifies the maximum amount of time, in seconds, to wait for a server response with the HTTP status 100-Continue. If this times out before a response is received, the request body is sent without a response from the server.
Accepted Values:
An integer that specifies a number of seconds.
Default Value:
600

Header Information

Function:
Specifies the custom headers for the REST service.

Request headers are usually used to give security information, such as authentication credentials.

Accepted Values:
  • Header
  • RunTime Value

Use the Create Create icon button to add the Header and RunTime Value for the REST service.

Default Value:
None

Create Create icon

Function:
Adds the row for Header and RunTime Value.

Delete Delete icon

Function:
Deletes a Header and RunTime Value row.

Plain Header

Function:
Specifies the header name and value to add in the Header and RunTime Value field.

Authentication

Opens this Screen:

Advanced REST Configuration > Authentication screen > Basic Authentication tab

Creates REST service authentication credentialsto connect to a REST service URL with basic authentication.

Screen



Fields

Field Name Definition

User Name

Function:
Specifies the user name for REST service authentication.
Accepted Values:
A valid user name.
Default Value:
None
Example:
Refer to:

Password

Function:
The password for the authentication account.
Accepted Values:
An alphanumeric string that represents a password.
Default Value:
None
Accepts Process Data Variables:
No
Example:
Refer to:

Authorization

Function:
Specifies an authorization value to connect to the REST service.
Accepted Values:
A valid authorization value.

When you click Generate button, this field completes.

Default Value:
None

Generate

Function:
Gives the authorization value to connect to the REST service.

Insert

Function:
Adds the authorization name and value in the Header and Value field.

Reset

Function:
Deletes the REST service authentication credentials.

Advanced REST Configuration > Authentication screen > OAuth 2.0 tab

Creates REST service authentication credentials to connect to a REST service URL with the OAuth 2.0 protocol.

Screen



Fields

Field Name Definition

Token Type

Function:
Specifies the name of an external system, such as SharePoint, Google Drive, or Box from the list.
Accepted Values:
The name of an external system.
Default Value:
None

Token

Function:
Specifies the access token for the specified external system.
Accepted Values:
An access token from the list.
Default Value:
None.

When you select an external system from the Token Type field, the name of the access token for the specified system shows in this field.

REST Request Payload Configuration

Configures the request payload for the REST service method call with the REST activity.



Fields

Field Name Definition

Payload

Function:
Specifies the payload to use when the process runs.
Accepted Values:
  • Custom Payload - Specifies a payload to use when the process runs. The payload must be in a valid JSON or XML format.
  • Map Payload with Schema - Connects the values in your payload with your AgilePoint schema.
Default Value:
Custom Payload
Accepts Process Data Variables:
No
Example:
Refer to:

REST Response Configuration

Configures the response settings for a REST service method call with the REST activity.

Screen



Fields

Field Name Definition

Response Status Code

Function:
Specifies the process data variable that stores the response status code, which tells status of the HTTP request.
Accepted Values:
A process data variable.
Default Value:
None
Accepts Process Data Variables:
Yes

Error Response

Function:
Specifies the process data variable that stores the HTTP response message, which tells the result of the request.
Accepted Values:
A process data variable.
Default Value:
None
Accepts Process Data Variables:
Yes

Save Response to Custom Attribute

Function:
Specifies the variable that contains the response to a method call. The method calls a REST service.
Accepted Values:
A process data variable.
Default Value:
None
Accepts Process Data Variables:
Yes

Map Response to Process Schema

Function:
Specifies if the REST service response connects to your schema.
Accepted Values:
  • Enter Sample Response - Specifies sample response schema to connect to your process.
  • Get Response from Simulation - Specifies a response schema with a simulation.

Click Map to Schema button to open the Schema Mapper. Use this screen to connect the response to process schema. You can not map the schema if the REST service type is None.

Default Value:
None
Example:
Refer to:

Header (Optional)

Function:
Specifies the custom headers for the REST service
Accepted Values:
  • Schema - Specifies a process data variable to use for the custom header.
  • Header - Specifies a name of the custom header.
  • Value - Specifies a value to use for the custom header.

    Select Get Response from Simulation for Value field.

Default Value:
None

Add Header Add Header icon

Function:
Adds the row for Schema and Header fields.

Delete Delete icon

Function:
Deletes the row with Schema and Header fields.

Payload

Function:
Specifies JSON or XML response payload to connect to the schema.
Accepted Values:
  • XML
  • JSON
Default Value:
JSON

Sample JSON/XML

Function:
Specifies an example response payload to connect the schema in JSON or XML format.
Accepted Values:
Sample payload data in XML or JSON format.
Default Value:
None

Map to Schema

Opens this Screen:
Schema Mapper
Function of this Screen:
Maps SharePoint fields, form fields, web methods, or other input sources to an XML schema..

Simulate

Opens this Screen:
REST Response Configuration > Simulate
To Open this Field:
  1. On the REST Response Configuration screen, click Get Response from Simulation.
Function of this Screen:
Configures the response settings with a simulated REST method call.

Ad Hoc Mapping

Opens this Screen:
REST Response Configuration > Ad Hoc Mapping
To Open this Field:
  1. On the REST Response Configuration screen, click Get Response from Simulation.
Function of this Screen:
Configures the response settings one at a time.

REST Response Configuration > Simulate

Configures the response settings with a simulated REST method call.



Fields

Field Name Definition

URL

Function:
Specifies the REST service URL for your method.
Accepted Values:
A valid REST service URL.
Default Value:
None

Action

Function:
Specifies the type of action for the REST service to do.
Accepted Values:
  • POST
  • GET
  • DELETE
  • PUT
  • PATCH
Default Value:
GET

Header

Function:
Specifies the custom headers for the REST service
Accepted Values:
A valid header
Default Value:
None

Request Body

Function:
Specifies the request data.
Accepted Values:
A valid data.
Default Value:
None

Simulate

Opens this Screen:
Runs the REST service and shows the response message.

Save

Opens this Screen:
Saves the response message and goes back to the previous screen.

Response

Function:
Shows the response message.
Accepted Values:
A valid response message.
Default Value:
None

Header

Function:
Shows the name and value of the header.
Accepted Values:
Read only.

REST Response Configuration > Ad Hoc Mapping

Configures the response settings one at a time.

Screen



Fields

Field Name Definition

Process Field

Function:
Specifies a process data variable to use for schema.
Accepted Values:
A process data variable.
Default Value:
None
Accepts Process Data Variables:
Yes

Response Field XPath

Function:
Specifies a name for the response.
Accepted Values:
  • A variable from the Rest Response box.
  • One line of text that can have spaces.
Default Value:
None
Accepts Process Data Variables:
Yes

Add Response Field Add Response Field icon

Function:
Adds a row for the Process Field and Response Field XPath.

Remove Response Field Remove Response Field icon

Function:
Deletes the row with the Process Field and Response Field XPath.