FRAMES | NO FRAMES Description | Parameters | Examples | Response
ParseTokens
URL http://<wmservice-url>/tokens/parseTokens
Parent Resource Workflow Manager Service

Description

Parses a string with embedded tokens. The string is returned with embedded tokens replaced by their actual values.

The following types of embedded tokens are supported: For example:
Parsing the token string "[JOB:ID] [JOB:ASSIGNED_TO] [JOB:START_DATE]" would return a result such as "401 demo 6/14/2012".

Parameters

Parameter Details
f Description: The response format. The default response format is html.

Values: html | json
user Required
Description: The username of the client.
stringtoparse Required
Description: The string with embedded tokens to parse.
job Required
Description: The ID of the job needed to parse the token string.

Example Usage

Example 1: URL for parsing a string with embedded job start date token.

http://sampleserver/arcgis/rest/services/Workflow/WMServer/tokens/parseTokens?user=demo&stringtoparse=[JOB%3ASTART_DATE]&job=105&f=pjson

Example 2: URL for parsing a string with embedded job assigned to token.

http://sampleserver/arcgis/rest/services/Workflow/WMServer/tokens/parseTokens?user=demo&stringtoparse=[JOB%3AASSIGNED_TO]&job=105&f=pjson

JSON Response Syntax

{
 "output": "<parsed string with tokens replaced by values>,"
}

JSON Response Example

{
 "output": "10/2/2012"
}