Description
    WMTokenTask class to perform operations on Workflow Manager (Classic) Tokens.
    Class hierarchy
    workflowmanager/BaseTask
|_workflowmanager/WMTokenTask
    
    Constructors
    
      
    Properties
      
        |
        | disableClientCaching | Boolean | The indicator to disable client browser caching. | 
        | proxyURL | String | The proxy URL. | 
        | token | String | The token string if security is on. | 
        | url | String | The base URL for Workflow Manager (Classic) service. | 
      
        
    Methods
      
    Constructor Details
      
        
        Constructor for WMTokenTask. Disable client caching is default to be true.
      Parameters:
        
          | <string>url | Required | The base Workflow Manager (Classic) REST URL. | 
        
        Sample: 
require([
    "workflowmanager/WMTokenTask", ...
], function(WMTokenTask, ...) {
    var wmTokenTask = new WMTokenTask("http://myserver/arcgis/rest/services/WMService/WMServer");
    });
    ...
});
        
         
       
    Property Details
     
       <Boolean> disableClientCaching
The indicator to disable client browser caching.
      
     
       
       
       The token string if security is on.
      
       
       
       The base URL for Workflow Manager (Classic) Service.
      
     Method Details
      
        parseTokens(jobId, stringToParse, user, callback, errback)
Parses a string with embedded tokens using user and job info.
      
      Input Parameters:
        
          | <int> jobId | Required | The job Id. | 
          | <string> stringToParse | Required | The string with tokens to parse. | 
          | <string> user | Required | The user name. | 
          
          | <function> callback | Optional | The success callback function name. | 
          | <function> errback | Optional | The error callback function name. | 
        
        Sample: 
require([
    "workflowmanager/WMTokenTask", ...
], function ParseTokens {
        var stringToParse = "[JOB:ID]";
        wmTokenTask.parseTokens(401, stringToParse, "cjones",
            function () {
                alert("Token parsed successfully.")
            }, function () {
                alert("Failed to parse token.")
            }    
});