Workflow API for Neo

DataExport

/v1/export

Requests the export of workflow definitions metadata, form definitions metadata, workflow instances, and task instances. The file and data structures used are subject to change. Roles permitted to execute this operation: - Global roles: WorkflowTenantOperator


/v1/export

Usage

curl -X GET -H "Accept: application/zip" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "https://sandbox.api.sap.com/workflow-service/rest/v1/export"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DataExportApi;

import java.io.File;
import java.util.*;

public class DataExportApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BasicAuthentication
        HttpBasicAuth BasicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuthentication");
        BasicAuthentication.setUsername("YOUR USERNAME");
        BasicAuthentication.setPassword("YOUR PASSWORD");

        // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
        OAuth Oauth2_AuthorizationCode = (OAuth) defaultClient.getAuthentication("Oauth2_AuthorizationCode");
        Oauth2_AuthorizationCode.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
        OAuth Oauth2_ClientCredentials = (OAuth) defaultClient.getAuthentication("Oauth2_ClientCredentials");
        Oauth2_ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");

        DataExportApi apiInstance = new DataExportApi();
        try {
            apiInstance.v1ExportGet();
        } catch (ApiException e) {
            System.err.println("Exception when calling DataExportApi#v1ExportGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DataExportApi;

public class DataExportApiExample {

    public static void main(String[] args) {
        DataExportApi apiInstance = new DataExportApi();
        try {
            apiInstance.v1ExportGet();
        } catch (ApiException e) {
            System.err.println("Exception when calling DataExportApi#v1ExportGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuthentication)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_AuthorizationCode)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_ClientCredentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


DataExportApi *apiInstance = [[DataExportApi alloc] init];

// Data Export
[apiInstance v1ExportGetWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkflowApiForNeo = require('workflow_api_for_neo');
var defaultClient = WorkflowApiForNeo.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuthentication
var BasicAuthentication = defaultClient.authentications['BasicAuthentication'];
BasicAuthentication.username = 'YOUR USERNAME'
BasicAuthentication.password = 'YOUR PASSWORD'

// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
var Oauth2_AuthorizationCode = defaultClient.authentications['Oauth2_AuthorizationCode'];
Oauth2_AuthorizationCode.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
var Oauth2_ClientCredentials = defaultClient.authentications['Oauth2_ClientCredentials'];
Oauth2_ClientCredentials.accessToken = "YOUR ACCESS TOKEN"

var api = new WorkflowApiForNeo.DataExportApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.v1ExportGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1ExportGetExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BasicAuthentication
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new DataExportApi();

            try
            {
                // Data Export
                apiInstance.v1ExportGet();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DataExportApi.v1ExportGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuthentication
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\DataExportApi();

try {
    $api_instance->v1ExportGet();
} catch (Exception $e) {
    echo 'Exception when calling DataExportApi->v1ExportGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DataExportApi;

# Configure HTTP basic authorization: BasicAuthentication
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::DataExportApi->new();

eval { 
    $api_instance->v1ExportGet();
};
if ($@) {
    warn "Exception when calling DataExportApi->v1ExportGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuthentication
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.DataExportApi()

try: 
    # Data Export
    api_instance.v1ExportGet()
except ApiException as e:
    print("Exception when calling DataExportApi->v1ExportGet: %s\n" % e)

Parameters

Responses

Status: 200 - Returns all data related to workflow instances and task instances as well as the latest version of all workflow definitions and form definitions as a .zip-file. The exported file and data structures are subject to change. For more information, see the product documentation at: https://help.sap.com/viewer/f85276c5069a429fa37d1cd352785c25/Cloud/en-US/5a66488784b843f29b2cd7b4e6f511a9.html.

Status: 401 - Unauthorized. You have not provided valid authentication credentials to access the resource.

{error=unauthorized, error_description=Full authentication is required to access this resource.}

Status: 403 - Access forbidden. You have not the required permissions to access the resource.

{error={message=User does not have sufficient privileges.}}

Status: 429 - You cannot run concurrent requests of this type for the current account. Please retry later.

Status: 500 - Internal server error. The operation you requested led to an error during execution.

{error={code=bpm.workflowruntime.rest.internal.server.error, message=Internal server error, logId=f29a5719-3342-4a4a-8a3d-5ddd5253159e}}

Status: 503 - The limit of concurrent requests of this type has been exceeded. Please retry later.


Forms

/v1/forms/{formId}

Undeploys all versions of an existing form. Roles permitted to execute this operation: - Global roles: WorkflowTenantOperator


/v1/forms/{formId}

Usage

curl -X DELETE -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "https://sandbox.api.sap.com/workflow-service/rest/v1/forms/{formId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FormsApi;

import java.io.File;
import java.util.*;

public class FormsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BasicAuthentication
        HttpBasicAuth BasicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuthentication");
        BasicAuthentication.setUsername("YOUR USERNAME");
        BasicAuthentication.setPassword("YOUR PASSWORD");

        // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
        OAuth Oauth2_AuthorizationCode = (OAuth) defaultClient.getAuthentication("Oauth2_AuthorizationCode");
        Oauth2_AuthorizationCode.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
        OAuth Oauth2_ClientCredentials = (OAuth) defaultClient.getAuthentication("Oauth2_ClientCredentials");
        Oauth2_ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");

        FormsApi apiInstance = new FormsApi();
        String formId = formId_example; // String | The ID of the form you want to undeploy. The ID is at most 255 characters long.
        String xCSRFToken = xCSRFToken_example; // String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.
        try {
            apiInstance.v1FormsFormIdDelete(formId, xCSRFToken);
        } catch (ApiException e) {
            System.err.println("Exception when calling FormsApi#v1FormsFormIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FormsApi;

public class FormsApiExample {

    public static void main(String[] args) {
        FormsApi apiInstance = new FormsApi();
        String formId = formId_example; // String | The ID of the form you want to undeploy. The ID is at most 255 characters long.
        String xCSRFToken = xCSRFToken_example; // String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.
        try {
            apiInstance.v1FormsFormIdDelete(formId, xCSRFToken);
        } catch (ApiException e) {
            System.err.println("Exception when calling FormsApi#v1FormsFormIdDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuthentication)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_AuthorizationCode)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_ClientCredentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *formId = formId_example; // The ID of the form you want to undeploy. The ID is at most 255 characters long.
String *xCSRFToken = xCSRFToken_example; // The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.

FormsApi *apiInstance = [[FormsApi alloc] init];

// Delete a form.
[apiInstance v1FormsFormIdDeleteWith:formId
    xCSRFToken:xCSRFToken
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkflowApiForNeo = require('workflow_api_for_neo');
var defaultClient = WorkflowApiForNeo.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuthentication
var BasicAuthentication = defaultClient.authentications['BasicAuthentication'];
BasicAuthentication.username = 'YOUR USERNAME'
BasicAuthentication.password = 'YOUR PASSWORD'

// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
var Oauth2_AuthorizationCode = defaultClient.authentications['Oauth2_AuthorizationCode'];
Oauth2_AuthorizationCode.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
var Oauth2_ClientCredentials = defaultClient.authentications['Oauth2_ClientCredentials'];
Oauth2_ClientCredentials.accessToken = "YOUR ACCESS TOKEN"

var api = new WorkflowApiForNeo.FormsApi()

var formId = formId_example; // {String} The ID of the form you want to undeploy. The ID is at most 255 characters long.

var xCSRFToken = xCSRFToken_example; // {String} The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.v1FormsFormIdDelete(formId, xCSRFToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1FormsFormIdDeleteExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BasicAuthentication
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new FormsApi();
            var formId = formId_example;  // String | The ID of the form you want to undeploy. The ID is at most 255 characters long.
            var xCSRFToken = xCSRFToken_example;  // String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.

            try
            {
                // Delete a form.
                apiInstance.v1FormsFormIdDelete(formId, xCSRFToken);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FormsApi.v1FormsFormIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuthentication
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\FormsApi();
$formId = formId_example; // String | The ID of the form you want to undeploy. The ID is at most 255 characters long.
$xCSRFToken = xCSRFToken_example; // String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.

try {
    $api_instance->v1FormsFormIdDelete($formId, $xCSRFToken);
} catch (Exception $e) {
    echo 'Exception when calling FormsApi->v1FormsFormIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FormsApi;

# Configure HTTP basic authorization: BasicAuthentication
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::FormsApi->new();
my $formId = formId_example; # String | The ID of the form you want to undeploy. The ID is at most 255 characters long.
my $xCSRFToken = xCSRFToken_example; # String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.

eval { 
    $api_instance->v1FormsFormIdDelete(formId => $formId, xCSRFToken => $xCSRFToken);
};
if ($@) {
    warn "Exception when calling FormsApi->v1FormsFormIdDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuthentication
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.FormsApi()
formId = formId_example # String | The ID of the form you want to undeploy. The ID is at most 255 characters long.
xCSRFToken = xCSRFToken_example # String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.

try: 
    # Delete a form.
    api_instance.v1FormsFormIdDelete(formId, xCSRFToken)
except ApiException as e:
    print("Exception when calling FormsApi->v1FormsFormIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
formId*
Header parameters
Name Description
X-CSRF-Token*

Responses

Status: 204 - The request was successful and the form definition was deleted.

Status: 401 - Unauthorized. You have not provided valid authentication credentials to access the resource.

{error=unauthorized, error_description=Full authentication is required to access this resource.}

Status: 403 - Access forbidden. You have not the required permissions to access the resource.

{error={message=User does not have sufficient privileges.}}

Status: 404 - Form definition not found. Either the payload did not contain a definitionId property or the specified ID was incorrect.

{error={code=bpm.formruntime.definition.not.found, message=Form definition not found, logId=1c4daaf5-eb3f-4ff5-8b13-aa32a47bb07d}}

Status: 429 - You have reached the usage limits that are configured for your tenant. You are performing too many requests or consume too many resources.

{error={code=bpm.workflowruntime.rate.limit.exceeded, message=Your tenant is performing too many requests.}}

Status: 500 - Internal server error. The operation you requested led to an error during execution.

{error={code=bpm.workflowruntime.rest.internal.server.error, message=Internal server error, logId=f29a5719-3342-4a4a-8a3d-5ddd5253159e}}

/v1/forms/{formId}/revisions/{revisionId}/model

Retrieves the form model with the specified form ID and revision. Roles permitted to execute this operation: - Global roles (retrieve start and task forms): WorkflowViewer, WorkflowAdmin, WorkflowDeveloper - Global roles (retrieve start forms only): WorkflowInitiator


/v1/forms/{formId}/revisions/{revisionId}/model

Usage

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "https://sandbox.api.sap.com/workflow-service/rest/v1/forms/{formId}/revisions/{revisionId}/model"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FormsApi;

import java.io.File;
import java.util.*;

public class FormsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BasicAuthentication
        HttpBasicAuth BasicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuthentication");
        BasicAuthentication.setUsername("YOUR USERNAME");
        BasicAuthentication.setPassword("YOUR PASSWORD");

        // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
        OAuth Oauth2_AuthorizationCode = (OAuth) defaultClient.getAuthentication("Oauth2_AuthorizationCode");
        Oauth2_AuthorizationCode.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
        OAuth Oauth2_ClientCredentials = (OAuth) defaultClient.getAuthentication("Oauth2_ClientCredentials");
        Oauth2_ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");

        FormsApi apiInstance = new FormsApi();
        String formId = formId_example; // String | The ID of the form for which the model should be retrieved.
        String revisionId = revisionId_example; // String | The revision of the form for which the model should be retrieved.
        try {
            FormModel result = apiInstance.v1FormsFormIdRevisionsRevisionIdModelGet(formId, revisionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FormsApi#v1FormsFormIdRevisionsRevisionIdModelGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FormsApi;

public class FormsApiExample {

    public static void main(String[] args) {
        FormsApi apiInstance = new FormsApi();
        String formId = formId_example; // String | The ID of the form for which the model should be retrieved.
        String revisionId = revisionId_example; // String | The revision of the form for which the model should be retrieved.
        try {
            FormModel result = apiInstance.v1FormsFormIdRevisionsRevisionIdModelGet(formId, revisionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FormsApi#v1FormsFormIdRevisionsRevisionIdModelGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuthentication)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_AuthorizationCode)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_ClientCredentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *formId = formId_example; // The ID of the form for which the model should be retrieved.
String *revisionId = revisionId_example; // The revision of the form for which the model should be retrieved.

FormsApi *apiInstance = [[FormsApi alloc] init];

// Retrieve form model by ID and revision.
[apiInstance v1FormsFormIdRevisionsRevisionIdModelGetWith:formId
    revisionId:revisionId
              completionHandler: ^(FormModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkflowApiForNeo = require('workflow_api_for_neo');
var defaultClient = WorkflowApiForNeo.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuthentication
var BasicAuthentication = defaultClient.authentications['BasicAuthentication'];
BasicAuthentication.username = 'YOUR USERNAME'
BasicAuthentication.password = 'YOUR PASSWORD'

// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
var Oauth2_AuthorizationCode = defaultClient.authentications['Oauth2_AuthorizationCode'];
Oauth2_AuthorizationCode.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
var Oauth2_ClientCredentials = defaultClient.authentications['Oauth2_ClientCredentials'];
Oauth2_ClientCredentials.accessToken = "YOUR ACCESS TOKEN"

var api = new WorkflowApiForNeo.FormsApi()

var formId = formId_example; // {String} The ID of the form for which the model should be retrieved.

var revisionId = revisionId_example; // {String} The revision of the form for which the model should be retrieved.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1FormsFormIdRevisionsRevisionIdModelGet(formId, revisionId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1FormsFormIdRevisionsRevisionIdModelGetExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BasicAuthentication
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new FormsApi();
            var formId = formId_example;  // String | The ID of the form for which the model should be retrieved.
            var revisionId = revisionId_example;  // String | The revision of the form for which the model should be retrieved.

            try
            {
                // Retrieve form model by ID and revision.
                FormModel result = apiInstance.v1FormsFormIdRevisionsRevisionIdModelGet(formId, revisionId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FormsApi.v1FormsFormIdRevisionsRevisionIdModelGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuthentication
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\FormsApi();
$formId = formId_example; // String | The ID of the form for which the model should be retrieved.
$revisionId = revisionId_example; // String | The revision of the form for which the model should be retrieved.

try {
    $result = $api_instance->v1FormsFormIdRevisionsRevisionIdModelGet($formId, $revisionId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FormsApi->v1FormsFormIdRevisionsRevisionIdModelGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FormsApi;

# Configure HTTP basic authorization: BasicAuthentication
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::FormsApi->new();
my $formId = formId_example; # String | The ID of the form for which the model should be retrieved.
my $revisionId = revisionId_example; # String | The revision of the form for which the model should be retrieved.

eval { 
    my $result = $api_instance->v1FormsFormIdRevisionsRevisionIdModelGet(formId => $formId, revisionId => $revisionId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FormsApi->v1FormsFormIdRevisionsRevisionIdModelGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuthentication
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.FormsApi()
formId = formId_example # String | The ID of the form for which the model should be retrieved.
revisionId = revisionId_example # String | The revision of the form for which the model should be retrieved.

try: 
    # Retrieve form model by ID and revision.
    api_response = api_instance.v1FormsFormIdRevisionsRevisionIdModelGet(formId, revisionId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FormsApi->v1FormsFormIdRevisionsRevisionIdModelGet: %s\n" % e)

Parameters

Path parameters
Name Description
formId*
revisionId*

Responses

Status: 200 - The deployed form definition model.

{id=com.sap.bpm.demo.approvalform, name=ApprovalForm, revision=1.0, type=task, readOnly=false, content=[{id=title, type=string, label=Title, readOnly=false, value=${context.product}, constraints=[{required=false}]}, {id=price, type=string, label=Price, readOnly=false, value=${context.price}, constraints=[{required=false}]}], decisions=[{id=approve, text=Approve, decisionType=positive}, {id=reject, text=Reject, decisionType=negative}]}

Status: 401 - Unauthorized. You have not provided valid authentication credentials to access the resource.

{error=unauthorized, error_description=Full authentication is required to access this resource.}

Status: 403 - Access forbidden. You have not the required permissions to access the resource.

{error={message=User does not have sufficient privileges.}}

Status: 404 - Either the specified form definition, the specified version within that definition, or the JSON model for that definition version was not found.

{error={code=bpm.formruntime.definition.not.found, message=Form definition not found, logId=381a4f5-eb3f-4c3a-89b0-ca32a47bb517}}

Status: 429 - You have reached the usage limits that are configured for your tenant. You are performing too many requests or consume too many resources.

{error={code=bpm.workflowruntime.rate.limit.exceeded, message=Your tenant is performing too many requests.}}

Status: 500 - Internal server error. The operation you requested led to an error during execution.

{error={code=bpm.workflowruntime.rest.internal.server.error, message=Internal server error, logId=f29a5719-3342-4a4a-8a3d-5ddd5253159e}}

/v1/forms/{formId}/versions/{versionNumber}/model

Retrieves the model of the specified version of the specified form definition. Roles permitted to execute this operation: - Global roles: WorkflowViewer, WorkflowAdmin, WorkflowDeveloper


/v1/forms/{formId}/versions/{versionNumber}/model

Usage

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "https://sandbox.api.sap.com/workflow-service/rest/v1/forms/{formId}/versions/{versionNumber}/model"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FormsApi;

import java.io.File;
import java.util.*;

public class FormsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BasicAuthentication
        HttpBasicAuth BasicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuthentication");
        BasicAuthentication.setUsername("YOUR USERNAME");
        BasicAuthentication.setPassword("YOUR PASSWORD");

        // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
        OAuth Oauth2_AuthorizationCode = (OAuth) defaultClient.getAuthentication("Oauth2_AuthorizationCode");
        Oauth2_AuthorizationCode.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
        OAuth Oauth2_ClientCredentials = (OAuth) defaultClient.getAuthentication("Oauth2_ClientCredentials");
        Oauth2_ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");

        FormsApi apiInstance = new FormsApi();
        String formId = formId_example; // String | The form ID for which the model should be retrieved. The form definition ID is at most 255 characters long.
        String versionNumber = versionNumber_example; // String | The version number for which the model should be retrieved. The version number consists of 1 - 10 digits.
        try {
            FormModel result = apiInstance.v1FormsFormIdVersionsVersionNumberModelGet(formId, versionNumber);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FormsApi#v1FormsFormIdVersionsVersionNumberModelGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FormsApi;

public class FormsApiExample {

    public static void main(String[] args) {
        FormsApi apiInstance = new FormsApi();
        String formId = formId_example; // String | The form ID for which the model should be retrieved. The form definition ID is at most 255 characters long.
        String versionNumber = versionNumber_example; // String | The version number for which the model should be retrieved. The version number consists of 1 - 10 digits.
        try {
            FormModel result = apiInstance.v1FormsFormIdVersionsVersionNumberModelGet(formId, versionNumber);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FormsApi#v1FormsFormIdVersionsVersionNumberModelGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuthentication)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_AuthorizationCode)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_ClientCredentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *formId = formId_example; // The form ID for which the model should be retrieved. The form definition ID is at most 255 characters long.
String *versionNumber = versionNumber_example; // The version number for which the model should be retrieved. The version number consists of 1 - 10 digits.

FormsApi *apiInstance = [[FormsApi alloc] init];

// Retrieve form model by ID and version number.
[apiInstance v1FormsFormIdVersionsVersionNumberModelGetWith:formId
    versionNumber:versionNumber
              completionHandler: ^(FormModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkflowApiForNeo = require('workflow_api_for_neo');
var defaultClient = WorkflowApiForNeo.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuthentication
var BasicAuthentication = defaultClient.authentications['BasicAuthentication'];
BasicAuthentication.username = 'YOUR USERNAME'
BasicAuthentication.password = 'YOUR PASSWORD'

// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
var Oauth2_AuthorizationCode = defaultClient.authentications['Oauth2_AuthorizationCode'];
Oauth2_AuthorizationCode.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
var Oauth2_ClientCredentials = defaultClient.authentications['Oauth2_ClientCredentials'];
Oauth2_ClientCredentials.accessToken = "YOUR ACCESS TOKEN"

var api = new WorkflowApiForNeo.FormsApi()

var formId = formId_example; // {String} The form ID for which the model should be retrieved. The form definition ID is at most 255 characters long.

var versionNumber = versionNumber_example; // {String} The version number for which the model should be retrieved. The version number consists of 1 - 10 digits.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1FormsFormIdVersionsVersionNumberModelGet(formId, versionNumber, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1FormsFormIdVersionsVersionNumberModelGetExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BasicAuthentication
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new FormsApi();
            var formId = formId_example;  // String | The form ID for which the model should be retrieved. The form definition ID is at most 255 characters long.
            var versionNumber = versionNumber_example;  // String | The version number for which the model should be retrieved. The version number consists of 1 - 10 digits.

            try
            {
                // Retrieve form model by ID and version number.
                FormModel result = apiInstance.v1FormsFormIdVersionsVersionNumberModelGet(formId, versionNumber);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FormsApi.v1FormsFormIdVersionsVersionNumberModelGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuthentication
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\FormsApi();
$formId = formId_example; // String | The form ID for which the model should be retrieved. The form definition ID is at most 255 characters long.
$versionNumber = versionNumber_example; // String | The version number for which the model should be retrieved. The version number consists of 1 - 10 digits.

try {
    $result = $api_instance->v1FormsFormIdVersionsVersionNumberModelGet($formId, $versionNumber);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FormsApi->v1FormsFormIdVersionsVersionNumberModelGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FormsApi;

# Configure HTTP basic authorization: BasicAuthentication
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::FormsApi->new();
my $formId = formId_example; # String | The form ID for which the model should be retrieved. The form definition ID is at most 255 characters long.
my $versionNumber = versionNumber_example; # String | The version number for which the model should be retrieved. The version number consists of 1 - 10 digits.

eval { 
    my $result = $api_instance->v1FormsFormIdVersionsVersionNumberModelGet(formId => $formId, versionNumber => $versionNumber);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FormsApi->v1FormsFormIdVersionsVersionNumberModelGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuthentication
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.FormsApi()
formId = formId_example # String | The form ID for which the model should be retrieved. The form definition ID is at most 255 characters long.
versionNumber = versionNumber_example # String | The version number for which the model should be retrieved. The version number consists of 1 - 10 digits.

try: 
    # Retrieve form model by ID and version number.
    api_response = api_instance.v1FormsFormIdVersionsVersionNumberModelGet(formId, versionNumber)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FormsApi->v1FormsFormIdVersionsVersionNumberModelGet: %s\n" % e)

Parameters

Path parameters
Name Description
formId*
versionNumber*

Responses

Status: 200 - The deployed form definition model.

{id=com.sap.bpm.demo.approvalform, name=ApprovalForm, revision=1.0, type=task, readOnly=false, content=[{id=title, type=string, label=Title, readOnly=false, value=${context.product}, constraints=[{required=false}]}, {id=price, type=string, label=Price, readOnly=false, value=${context.price}, constraints=[{required=false}]}], decisions=[{id=approve, text=Approve, decisionType=positive}, {id=reject, text=Reject, decisionType=negative}]}

Status: 401 - Unauthorized. You have not provided valid authentication credentials to access the resource.

{error=unauthorized, error_description=Full authentication is required to access this resource.}

Status: 403 - Access forbidden. You have not the required permissions to access the resource.

{error={message=User does not have sufficient privileges.}}

Status: 404 - Either the specified form definition, the specified version within that definition, or the JSON model for that definition version was not found.

{error={code=bpm.formruntime.definition.not.found, message=Form definition not found, logId=381a4f5-eb3f-4c3a-89b0-ca32a47bb517}}

Status: 429 - You have reached the usage limits that are configured for your tenant. You are performing too many requests or consume too many resources.

{error={code=bpm.workflowruntime.rate.limit.exceeded, message=Your tenant is performing too many requests.}}

Status: 500 - Internal server error. The operation you requested led to an error during execution.

{error={code=bpm.workflowruntime.rest.internal.server.error, message=Internal server error, logId=f29a5719-3342-4a4a-8a3d-5ddd5253159e}}

/v1/forms

Retrieves a list of the latest version of each revision of each deployed form definition. The request can be parameterized. The results are sorted by the 'createdAt' attribute in descending order. Roles permitted to execute this operation: - Global roles: WorkflowViewer, WorkflowAdmin, WorkflowDeveloper


/v1/forms

Usage

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "https://sandbox.api.sap.com/workflow-service/rest/v1/forms?$skip=&$top=&$inlinecount=&type="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FormsApi;

import java.io.File;
import java.util.*;

public class FormsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BasicAuthentication
        HttpBasicAuth BasicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuthentication");
        BasicAuthentication.setUsername("YOUR USERNAME");
        BasicAuthentication.setPassword("YOUR PASSWORD");

        // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
        OAuth Oauth2_AuthorizationCode = (OAuth) defaultClient.getAuthentication("Oauth2_AuthorizationCode");
        Oauth2_AuthorizationCode.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
        OAuth Oauth2_ClientCredentials = (OAuth) defaultClient.getAuthentication("Oauth2_ClientCredentials");
        Oauth2_ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");

        FormsApi apiInstance = new FormsApi();
        Integer $skip = 56; // Integer | Specify the number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped.
Refer also to the $top parameter.
        Integer $top = 56; // Integer | Specify the number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned.
Refer also to the $skip parameter.
        String $inlinecount = $inlinecount_example; // String | Specify whether the total count of the form definitions should be returned as the value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting. The values are case-sensitive.
        String type = type_example; // String | Specify whether the response should be filtered by the form type. The values are case-sensitive.
        try {
            array[FormMetadata] result = apiInstance.v1FormsGet($skip, $top, $inlinecount, type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FormsApi#v1FormsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FormsApi;

public class FormsApiExample {

    public static void main(String[] args) {
        FormsApi apiInstance = new FormsApi();
        Integer $skip = 56; // Integer | Specify the number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped.
Refer also to the $top parameter.
        Integer $top = 56; // Integer | Specify the number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned.
Refer also to the $skip parameter.
        String $inlinecount = $inlinecount_example; // String | Specify whether the total count of the form definitions should be returned as the value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting. The values are case-sensitive.
        String type = type_example; // String | Specify whether the response should be filtered by the form type. The values are case-sensitive.
        try {
            array[FormMetadata] result = apiInstance.v1FormsGet($skip, $top, $inlinecount, type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FormsApi#v1FormsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuthentication)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_AuthorizationCode)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_ClientCredentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

Integer *$skip = 56; // Specify the number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped.
Refer also to the $top parameter. (optional) (default to 0)
Integer *$top = 56; // Specify the number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned.
Refer also to the $skip parameter. (optional) (default to 100)
String *$inlinecount = $inlinecount_example; // Specify whether the total count of the form definitions should be returned as the value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting. The values are case-sensitive. (optional) (default to none)
String *type = type_example; // Specify whether the response should be filtered by the form type. The values are case-sensitive. (optional)

FormsApi *apiInstance = [[FormsApi alloc] init];

// Retrieve all form definitions
[apiInstance v1FormsGetWith:$skip
    $top:$top
    $inlinecount:$inlinecount
    type:type
              completionHandler: ^(array[FormMetadata] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkflowApiForNeo = require('workflow_api_for_neo');
var defaultClient = WorkflowApiForNeo.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuthentication
var BasicAuthentication = defaultClient.authentications['BasicAuthentication'];
BasicAuthentication.username = 'YOUR USERNAME'
BasicAuthentication.password = 'YOUR PASSWORD'

// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
var Oauth2_AuthorizationCode = defaultClient.authentications['Oauth2_AuthorizationCode'];
Oauth2_AuthorizationCode.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
var Oauth2_ClientCredentials = defaultClient.authentications['Oauth2_ClientCredentials'];
Oauth2_ClientCredentials.accessToken = "YOUR ACCESS TOKEN"

var api = new WorkflowApiForNeo.FormsApi()

var opts = { 
  '$skip': 56, // {Integer} Specify the number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped.
Refer also to the $top parameter.
  '$top': 56, // {Integer} Specify the number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned.
Refer also to the $skip parameter.
  '$inlinecount': $inlinecount_example, // {String} Specify whether the total count of the form definitions should be returned as the value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting. The values are case-sensitive.
  'type': type_example // {String} Specify whether the response should be filtered by the form type. The values are case-sensitive.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1FormsGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1FormsGetExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BasicAuthentication
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new FormsApi();
            var $skip = 56;  // Integer | Specify the number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped.
Refer also to the $top parameter. (optional)  (default to 0)
            var $top = 56;  // Integer | Specify the number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned.
Refer also to the $skip parameter. (optional)  (default to 100)
            var $inlinecount = $inlinecount_example;  // String | Specify whether the total count of the form definitions should be returned as the value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting. The values are case-sensitive. (optional)  (default to none)
            var type = type_example;  // String | Specify whether the response should be filtered by the form type. The values are case-sensitive. (optional) 

            try
            {
                // Retrieve all form definitions
                array[FormMetadata] result = apiInstance.v1FormsGet($skip, $top, $inlinecount, type);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FormsApi.v1FormsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuthentication
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\FormsApi();
$$skip = 56; // Integer | Specify the number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped.
Refer also to the $top parameter.
$$top = 56; // Integer | Specify the number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned.
Refer also to the $skip parameter.
$$inlinecount = $inlinecount_example; // String | Specify whether the total count of the form definitions should be returned as the value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting. The values are case-sensitive.
$type = type_example; // String | Specify whether the response should be filtered by the form type. The values are case-sensitive.

try {
    $result = $api_instance->v1FormsGet($$skip, $$top, $$inlinecount, $type);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FormsApi->v1FormsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FormsApi;

# Configure HTTP basic authorization: BasicAuthentication
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::FormsApi->new();
my $$skip = 56; # Integer | Specify the number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped.
Refer also to the $top parameter.
my $$top = 56; # Integer | Specify the number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned.
Refer also to the $skip parameter.
my $$inlinecount = $inlinecount_example; # String | Specify whether the total count of the form definitions should be returned as the value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting. The values are case-sensitive.
my $type = type_example; # String | Specify whether the response should be filtered by the form type. The values are case-sensitive.

eval { 
    my $result = $api_instance->v1FormsGet($skip => $$skip, $top => $$top, $inlinecount => $$inlinecount, type => $type);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FormsApi->v1FormsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuthentication
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.FormsApi()
$skip = 56 # Integer | Specify the number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped.
Refer also to the $top parameter. (optional) (default to 0)
$top = 56 # Integer | Specify the number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned.
Refer also to the $skip parameter. (optional) (default to 100)
$inlinecount = $inlinecount_example # String | Specify whether the total count of the form definitions should be returned as the value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting. The values are case-sensitive. (optional) (default to none)
type = type_example # String | Specify whether the response should be filtered by the form type. The values are case-sensitive. (optional)

try: 
    # Retrieve all form definitions
    api_response = api_instance.v1FormsGet($skip=$skip, $top=$top, $inlinecount=$inlinecount, type=type)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FormsApi->v1FormsGet: %s\n" % e)

Parameters

Query parameters
Name Description
$skip
$top
$inlinecount
type

Responses

Status: 200 - Returns a list of deployed form definitions.

[{id=com.sap.bpm.demo.LeaveRequestForm, name=Leave Request Form, version=4, revision=Release, type=start, createdBy=UserId1, createdAt=2018-05-09T11:42:27.524Z, workflowDefinitions=[{id=LeaveRequestWorkflow}]}, {id=com.sap.bpm.demo.LeaveRequestForm, name=Leave Request Form, version=2, revision=Draft, type=start, createdBy=UserId1, createdAt=2018-05-06T14:32:24.324Z, workflowDefinitions=[{id=LeaveRequestWorkflow}]}, {id=com.sap.bpm.demo.OrderingForm, name=Ordering Form, version=3, revision=1.0, type=task, createdBy=UserId13, createdAt=2018-05-04T23:07:04.003Z}]

Status: 401 - Unauthorized. You have not provided valid authentication credentials to access the resource.

{error=unauthorized, error_description=Full authentication is required to access this resource.}

Status: 403 - Access forbidden. You have not the required permissions to access the resource.

{error={message=User does not have sufficient privileges.}}

Status: 429 - You have reached the usage limits that are configured for your tenant. You are performing too many requests or consume too many resources.

{error={code=bpm.workflowruntime.rate.limit.exceeded, message=Your tenant is performing too many requests.}}

Status: 500 - Internal server error. The operation you requested led to an error during execution.

{error={code=bpm.workflowruntime.rest.internal.server.error, message=Internal server error, logId=f29a5719-3342-4a4a-8a3d-5ddd5253159e}}

Jobs

/v1/jobs/{jobId}

Tracks the status of API requests, which the server executed asynchronously. Roles permitted to execute this operation: - Global roles: WorkflowTenantOperator


/v1/jobs/{jobId}

Usage

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "https://sandbox.api.sap.com/workflow-service/rest/v1/jobs/{jobId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.JobsApi;

import java.io.File;
import java.util.*;

public class JobsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BasicAuthentication
        HttpBasicAuth BasicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuthentication");
        BasicAuthentication.setUsername("YOUR USERNAME");
        BasicAuthentication.setPassword("YOUR PASSWORD");

        // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
        OAuth Oauth2_AuthorizationCode = (OAuth) defaultClient.getAuthentication("Oauth2_AuthorizationCode");
        Oauth2_AuthorizationCode.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
        OAuth Oauth2_ClientCredentials = (OAuth) defaultClient.getAuthentication("Oauth2_ClientCredentials");
        Oauth2_ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");

        JobsApi apiInstance = new JobsApi();
        String jobId = jobId_example; // String | The ID of the job for which you check the status.
Typically, the ID has been retrieved from another API request that was processed asynchronously.
The ID is at most 36 characters long.
        try {
            Job result = apiInstance.v1JobsJobIdGet(jobId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling JobsApi#v1JobsJobIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.JobsApi;

public class JobsApiExample {

    public static void main(String[] args) {
        JobsApi apiInstance = new JobsApi();
        String jobId = jobId_example; // String | The ID of the job for which you check the status.
Typically, the ID has been retrieved from another API request that was processed asynchronously.
The ID is at most 36 characters long.
        try {
            Job result = apiInstance.v1JobsJobIdGet(jobId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling JobsApi#v1JobsJobIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuthentication)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_AuthorizationCode)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_ClientCredentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *jobId = jobId_example; // The ID of the job for which you check the status.
Typically, the ID has been retrieved from another API request that was processed asynchronously.
The ID is at most 36 characters long.

JobsApi *apiInstance = [[JobsApi alloc] init];

// Retrieve Job status
[apiInstance v1JobsJobIdGetWith:jobId
              completionHandler: ^(Job output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkflowApiForNeo = require('workflow_api_for_neo');
var defaultClient = WorkflowApiForNeo.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuthentication
var BasicAuthentication = defaultClient.authentications['BasicAuthentication'];
BasicAuthentication.username = 'YOUR USERNAME'
BasicAuthentication.password = 'YOUR PASSWORD'

// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
var Oauth2_AuthorizationCode = defaultClient.authentications['Oauth2_AuthorizationCode'];
Oauth2_AuthorizationCode.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
var Oauth2_ClientCredentials = defaultClient.authentications['Oauth2_ClientCredentials'];
Oauth2_ClientCredentials.accessToken = "YOUR ACCESS TOKEN"

var api = new WorkflowApiForNeo.JobsApi()

var jobId = jobId_example; // {String} The ID of the job for which you check the status.
Typically, the ID has been retrieved from another API request that was processed asynchronously.
The ID is at most 36 characters long.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1JobsJobIdGet(jobId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1JobsJobIdGetExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BasicAuthentication
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new JobsApi();
            var jobId = jobId_example;  // String | The ID of the job for which you check the status.
Typically, the ID has been retrieved from another API request that was processed asynchronously.
The ID is at most 36 characters long.

            try
            {
                // Retrieve Job status
                Job result = apiInstance.v1JobsJobIdGet(jobId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling JobsApi.v1JobsJobIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuthentication
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\JobsApi();
$jobId = jobId_example; // String | The ID of the job for which you check the status.
Typically, the ID has been retrieved from another API request that was processed asynchronously.
The ID is at most 36 characters long.

try {
    $result = $api_instance->v1JobsJobIdGet($jobId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling JobsApi->v1JobsJobIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::JobsApi;

# Configure HTTP basic authorization: BasicAuthentication
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::JobsApi->new();
my $jobId = jobId_example; # String | The ID of the job for which you check the status.
Typically, the ID has been retrieved from another API request that was processed asynchronously.
The ID is at most 36 characters long.

eval { 
    my $result = $api_instance->v1JobsJobIdGet(jobId => $jobId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling JobsApi->v1JobsJobIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuthentication
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.JobsApi()
jobId = jobId_example # String | The ID of the job for which you check the status.
Typically, the ID has been retrieved from another API request that was processed asynchronously.
The ID is at most 36 characters long.

try: 
    # Retrieve Job status
    api_response = api_instance.v1JobsJobIdGet(jobId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling JobsApi->v1JobsJobIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
jobId*

Responses

Status: 200 - Returns the status of the job

{status=ERRONEOUS, details={instancesInitial=432, instancesLeft=89}, error={code=bpm.workflowruntime.scheduler.error, message=An unspecified error occurred. Contact support citing logId af07a8d9-f899-4ed8-abb2-7667bf2ae53d and provide steps to reproduce., logId=af07a8d9-f899-4ed8-abb2-7667bf2ae53d}}

Status: 401 - Unauthorized. You have not provided valid authentication credentials to access the resource.

{error=unauthorized, error_description=Full authentication is required to access this resource.}

Status: 404 - Job not found. You may have provided an incorrect job ID or the job may have already completed.

{error={code=bpm.workflowruntime.rest.job.not.found, message=Job not found, logId=dc68239e-3ad4-442a-8343-cc197f69d05f}}

Status: 429 - You have reached the usage limits that are configured for your tenant. You are performing too many requests or consume too many resources.

{error={code=bpm.workflowruntime.rate.limit.exceeded, message=Your tenant is performing too many requests.}}

Messages

/v1/messages

Sends a message to a set of workflow instances for consumption in intermediate message events. The message is identified by the name specified in the workflow model (request body parameter 'definitionId') and parameters identifying the workflow instances that should consume the message. The message is consumed by the workflow instances that match the following criteria: * The instance can be a specific match when using its workflow instance ID (request body parameter 'workflowInstanceId'). Or the instance is a generic match when using the ID of the workflow model together with the business key (request body parameters 'workflowDefinitionId' respectively 'businessKey'). You can either use the specific or generic match but not both in the same call. * The workflow instance is not in the SUSPENDED state. * The workflow instance currently waits at the intermediate message event referring to the specified message. The business key of a workflow instance matches if the business key specified in the request body is the same. Roles permitted to execute this operation: - Global roles: WorkflowMessageSender


/v1/messages

Usage

curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "https://sandbox.api.sap.com/workflow-service/rest/v1/messages"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MessagesApi;

import java.io.File;
import java.util.*;

public class MessagesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BasicAuthentication
        HttpBasicAuth BasicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuthentication");
        BasicAuthentication.setUsername("YOUR USERNAME");
        BasicAuthentication.setPassword("YOUR PASSWORD");

        // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
        OAuth Oauth2_AuthorizationCode = (OAuth) defaultClient.getAuthentication("Oauth2_AuthorizationCode");
        Oauth2_AuthorizationCode.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
        OAuth Oauth2_ClientCredentials = (OAuth) defaultClient.getAuthentication("Oauth2_ClientCredentials");
        Oauth2_ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");

        MessagesApi apiInstance = new MessagesApi();
        SendMessagePayload body = ; // SendMessagePayload | Specify the request body according to the given schema.
The length of the request body is limited to ensure optimal operation of the service.
        String xCSRFToken = xCSRFToken_example; // String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.
        try {
            array[ConsumingWorkflowInstance] result = apiInstance.v1MessagesPost(body, xCSRFToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessagesApi#v1MessagesPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MessagesApi;

public class MessagesApiExample {

    public static void main(String[] args) {
        MessagesApi apiInstance = new MessagesApi();
        SendMessagePayload body = ; // SendMessagePayload | Specify the request body according to the given schema.
The length of the request body is limited to ensure optimal operation of the service.
        String xCSRFToken = xCSRFToken_example; // String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.
        try {
            array[ConsumingWorkflowInstance] result = apiInstance.v1MessagesPost(body, xCSRFToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MessagesApi#v1MessagesPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuthentication)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_AuthorizationCode)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_ClientCredentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

SendMessagePayload *body = ; // Specify the request body according to the given schema.
The length of the request body is limited to ensure optimal operation of the service.
String *xCSRFToken = xCSRFToken_example; // The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.

MessagesApi *apiInstance = [[MessagesApi alloc] init];

// Send message
[apiInstance v1MessagesPostWith:body
    xCSRFToken:xCSRFToken
              completionHandler: ^(array[ConsumingWorkflowInstance] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkflowApiForNeo = require('workflow_api_for_neo');
var defaultClient = WorkflowApiForNeo.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuthentication
var BasicAuthentication = defaultClient.authentications['BasicAuthentication'];
BasicAuthentication.username = 'YOUR USERNAME'
BasicAuthentication.password = 'YOUR PASSWORD'

// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
var Oauth2_AuthorizationCode = defaultClient.authentications['Oauth2_AuthorizationCode'];
Oauth2_AuthorizationCode.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
var Oauth2_ClientCredentials = defaultClient.authentications['Oauth2_ClientCredentials'];
Oauth2_ClientCredentials.accessToken = "YOUR ACCESS TOKEN"

var api = new WorkflowApiForNeo.MessagesApi()

var body = ; // {SendMessagePayload} Specify the request body according to the given schema.
The length of the request body is limited to ensure optimal operation of the service.

var xCSRFToken = xCSRFToken_example; // {String} The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1MessagesPost(body, xCSRFToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1MessagesPostExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BasicAuthentication
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MessagesApi();
            var body = new SendMessagePayload(); // SendMessagePayload | Specify the request body according to the given schema.
The length of the request body is limited to ensure optimal operation of the service.
            var xCSRFToken = xCSRFToken_example;  // String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.

            try
            {
                // Send message
                array[ConsumingWorkflowInstance] result = apiInstance.v1MessagesPost(body, xCSRFToken);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MessagesApi.v1MessagesPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuthentication
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\MessagesApi();
$body = ; // SendMessagePayload | Specify the request body according to the given schema.
The length of the request body is limited to ensure optimal operation of the service.
$xCSRFToken = xCSRFToken_example; // String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.

try {
    $result = $api_instance->v1MessagesPost($body, $xCSRFToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MessagesApi->v1MessagesPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MessagesApi;

# Configure HTTP basic authorization: BasicAuthentication
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MessagesApi->new();
my $body = WWW::SwaggerClient::Object::SendMessagePayload->new(); # SendMessagePayload | Specify the request body according to the given schema.
The length of the request body is limited to ensure optimal operation of the service.
my $xCSRFToken = xCSRFToken_example; # String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.

eval { 
    my $result = $api_instance->v1MessagesPost(body => $body, xCSRFToken => $xCSRFToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MessagesApi->v1MessagesPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuthentication
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MessagesApi()
body =  # SendMessagePayload | Specify the request body according to the given schema.
The length of the request body is limited to ensure optimal operation of the service.
xCSRFToken = xCSRFToken_example # String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.

try: 
    # Send message
    api_response = api_instance.v1MessagesPost(body, xCSRFToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MessagesApi->v1MessagesPost: %s\n" % e)

Parameters

Header parameters
Name Description
X-CSRF-Token*
Body parameters
Name Description
body *

Specify the request body according to the given schema. The length of the request body is limited to ensure optimal operation of the service.

Responses

Status: 200 - Returns a list of workflow instance IDs that consumed the message.

[{id=c4f2-4066-0ba1-ee8393107bc2}, {id=fef2-5066-1ba1-fe8393107ef5}]

Status: 401 - Unauthorized. You have not provided valid authentication credentials to access the resource.

{error=unauthorized, error_description=Full authentication is required to access this resource.}

Status: 403 - Access forbidden. You have not the required permissions to access the resource.

{error={message=User does not have sufficient privileges.}}

Status: 409 - The operation could not be executed because of another activity in the background. Please try again later.

{error={message=The operation could not be executed because of another activity in the background. Please try again later., logId=04a14146-dea3-493f-892c-3cb1dea7b122}}

Status: 422 - The message was not consumed by the intermediate message event. Please see the messages API to verify that your message meets the requirements for successful consumption.

{error={code=bpm.workflowruntime.rest.message.no.match, message=No matching workflow instance found for message, logId=dc68239e-3ad4-442a-8343-cc197f69d05f}}

Status: 429 - You have reached the usage limits that are configured for your tenant. You are performing too many requests or consume too many resources.

{error={code=bpm.workflowruntime.rate.limit.exceeded, message=Your tenant is performing too many requests.}}

Status: 500 - Internal server error. The operation you requested led to an error during execution.

{error={code=bpm.workflowruntime.rest.internal.server.error, message=Internal server error, logId=f29a5719-3342-4a4a-8a3d-5ddd5253159e}}

Purge

/v1/purge

Completely erases all workflow definitions, all workflow instances, and all form definitions. Roles permitted to execute this operation: - Global roles: WorkflowTenantOperator


/v1/purge

Usage

curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "https://sandbox.api.sap.com/workflow-service/rest/v1/purge"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PurgeApi;

import java.io.File;
import java.util.*;

public class PurgeApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BasicAuthentication
        HttpBasicAuth BasicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuthentication");
        BasicAuthentication.setUsername("YOUR USERNAME");
        BasicAuthentication.setPassword("YOUR PASSWORD");

        // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
        OAuth Oauth2_AuthorizationCode = (OAuth) defaultClient.getAuthentication("Oauth2_AuthorizationCode");
        Oauth2_AuthorizationCode.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
        OAuth Oauth2_ClientCredentials = (OAuth) defaultClient.getAuthentication("Oauth2_ClientCredentials");
        Oauth2_ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");

        PurgeApi apiInstance = new PurgeApi();
        String xCSRFToken = xCSRFToken_example; // String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.
        try {
            apiInstance.v1PurgePost(xCSRFToken);
        } catch (ApiException e) {
            System.err.println("Exception when calling PurgeApi#v1PurgePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PurgeApi;

public class PurgeApiExample {

    public static void main(String[] args) {
        PurgeApi apiInstance = new PurgeApi();
        String xCSRFToken = xCSRFToken_example; // String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.
        try {
            apiInstance.v1PurgePost(xCSRFToken);
        } catch (ApiException e) {
            System.err.println("Exception when calling PurgeApi#v1PurgePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuthentication)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_AuthorizationCode)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_ClientCredentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *xCSRFToken = xCSRFToken_example; // The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.

PurgeApi *apiInstance = [[PurgeApi alloc] init];

// Purge instances and definitions
[apiInstance v1PurgePostWith:xCSRFToken
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkflowApiForNeo = require('workflow_api_for_neo');
var defaultClient = WorkflowApiForNeo.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuthentication
var BasicAuthentication = defaultClient.authentications['BasicAuthentication'];
BasicAuthentication.username = 'YOUR USERNAME'
BasicAuthentication.password = 'YOUR PASSWORD'

// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
var Oauth2_AuthorizationCode = defaultClient.authentications['Oauth2_AuthorizationCode'];
Oauth2_AuthorizationCode.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
var Oauth2_ClientCredentials = defaultClient.authentications['Oauth2_ClientCredentials'];
Oauth2_ClientCredentials.accessToken = "YOUR ACCESS TOKEN"

var api = new WorkflowApiForNeo.PurgeApi()

var xCSRFToken = xCSRFToken_example; // {String} The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.v1PurgePost(xCSRFToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1PurgePostExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BasicAuthentication
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PurgeApi();
            var xCSRFToken = xCSRFToken_example;  // String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.

            try
            {
                // Purge instances and definitions
                apiInstance.v1PurgePost(xCSRFToken);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PurgeApi.v1PurgePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuthentication
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\PurgeApi();
$xCSRFToken = xCSRFToken_example; // String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.

try {
    $api_instance->v1PurgePost($xCSRFToken);
} catch (Exception $e) {
    echo 'Exception when calling PurgeApi->v1PurgePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PurgeApi;

# Configure HTTP basic authorization: BasicAuthentication
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PurgeApi->new();
my $xCSRFToken = xCSRFToken_example; # String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.

eval { 
    $api_instance->v1PurgePost(xCSRFToken => $xCSRFToken);
};
if ($@) {
    warn "Exception when calling PurgeApi->v1PurgePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuthentication
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PurgeApi()
xCSRFToken = xCSRFToken_example # String | The XSRF token that is valid for the current session (see resource '/v1/xsrf-token'). If the call is authenticated using OAuth, the XSRF token is unavailable and must not be specified.

try: 
    # Purge instances and definitions
    api_instance.v1PurgePost(xCSRFToken)
except ApiException as e:
    print("Exception when calling PurgeApi->v1PurgePost: %s\n" % e)

Parameters

Header parameters
Name Description
X-CSRF-Token*

Responses

Status: 202 - The request is successful and the purge operation will be performed asynchronously. The response will include the header 'Location' that points to a dedicated resource. You can use this resource to track the status of the purge operation.

Name Type Format Description
Location String Relative URL that points to a job resource. Use this resource to track the status of the purge operation.

Status: 303 - A purge operation is already running. The response will include the header 'Location' that points to a job resource which you can use to track the status of the purge operation. Depending on your web client you may be automatically redirected to this resource and receive the status of the purge operation as the result of your request.

Name Type Format Description
Location String Relative URL that points to a job resource. Using this resource you can track the status of the purge operation.

Status: 401 - Unauthorized. You have not provided valid authentication credentials to access the resource.

{error=unauthorized, error_description=Full authentication is required to access this resource.}

Status: 403 - Access forbidden. You have not the required permissions to access the resource.

{error={message=User does not have sufficient privileges.}}

Status: 429 - You have reached the usage limits that are configured for your tenant. You are performing too many requests or consume too many resources.

{error={code=bpm.workflowruntime.rate.limit.exceeded, message=Your tenant is performing too many requests.}}

Status: 500 - Internal server error. The operation you requested led to an error during execution.

{error={code=bpm.workflowruntime.rest.internal.server.error, message=Internal server error, logId=f29a5719-3342-4a4a-8a3d-5ddd5253159e}}

TaskDefinitions

/v1/task-definitions

Retrieves task definitions by query parameters. A task definition is identified by the ID of the respective activity within a workflow definition (for example, usertask1) and the workflow definition ID. The workflow definition ID is version independent. That means, this API assumes that task definitions are semantically the same if they span several workflow versions and therefore have the same identifier. The latest workflow definition version is expected to contain the leading property values of the task definition. At the moment, filtering is limited to the $skip and $top parameters for paging through the available task definitions. The returned task definitions are sorted in descending order of their creation time. Roles permitted to execute this operation: - Global roles: WorkflowViewer, WorkflowAdmin


/v1/task-definitions

Usage

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "https://sandbox.api.sap.com/workflow-service/rest/v1/task-definitions?$skip=&$top=&$inlinecount=&$expand="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TaskDefinitionsApi;

import java.io.File;
import java.util.*;

public class TaskDefinitionsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BasicAuthentication
        HttpBasicAuth BasicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuthentication");
        BasicAuthentication.setUsername("YOUR USERNAME");
        BasicAuthentication.setPassword("YOUR PASSWORD");

        // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
        OAuth Oauth2_AuthorizationCode = (OAuth) defaultClient.getAuthentication("Oauth2_AuthorizationCode");
        Oauth2_AuthorizationCode.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
        OAuth Oauth2_ClientCredentials = (OAuth) defaultClient.getAuthentication("Oauth2_ClientCredentials");
        Oauth2_ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");

        TaskDefinitionsApi apiInstance = new TaskDefinitionsApi();
        String acceptLanguage = acceptLanguage_example; // String | Provide a preferred language. If a translation is available, relevant texts are returned in this language.
        Integer $skip = 56; // Integer | The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter.
        Integer $top = 56; // Integer | The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter.
        String $inlinecount = $inlinecount_example; // String | Specify whether the total count of the task definitions should be returned as a value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once.
        String $expand = $expand_example; // String | You can request custom task attributes to become part of the task output by specifying the value 'attributeDefinitions' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributeDefinitions' field is not included into the output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where the corresponding task definition exists.
        try {
            TaskDefinitionList result = apiInstance.v1TaskDefinitionsGet(acceptLanguage, $skip, $top, $inlinecount, $expand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TaskDefinitionsApi#v1TaskDefinitionsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TaskDefinitionsApi;

public class TaskDefinitionsApiExample {

    public static void main(String[] args) {
        TaskDefinitionsApi apiInstance = new TaskDefinitionsApi();
        String acceptLanguage = acceptLanguage_example; // String | Provide a preferred language. If a translation is available, relevant texts are returned in this language.
        Integer $skip = 56; // Integer | The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter.
        Integer $top = 56; // Integer | The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter.
        String $inlinecount = $inlinecount_example; // String | Specify whether the total count of the task definitions should be returned as a value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once.
        String $expand = $expand_example; // String | You can request custom task attributes to become part of the task output by specifying the value 'attributeDefinitions' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributeDefinitions' field is not included into the output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where the corresponding task definition exists.
        try {
            TaskDefinitionList result = apiInstance.v1TaskDefinitionsGet(acceptLanguage, $skip, $top, $inlinecount, $expand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TaskDefinitionsApi#v1TaskDefinitionsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuthentication)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_AuthorizationCode)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_ClientCredentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *acceptLanguage = acceptLanguage_example; // Provide a preferred language. If a translation is available, relevant texts are returned in this language. (optional)
Integer *$skip = 56; // The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter. (optional) (default to 0)
Integer *$top = 56; // The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter. (optional) (default to 100)
String *$inlinecount = $inlinecount_example; // Specify whether the total count of the task definitions should be returned as a value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once. (optional) (default to none)
String *$expand = $expand_example; // You can request custom task attributes to become part of the task output by specifying the value 'attributeDefinitions' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributeDefinitions' field is not included into the output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where the corresponding task definition exists. (optional)

TaskDefinitionsApi *apiInstance = [[TaskDefinitionsApi alloc] init];

// Retrieve definitions by query parameters
[apiInstance v1TaskDefinitionsGetWith:acceptLanguage
    $skip:$skip
    $top:$top
    $inlinecount:$inlinecount
    $expand:$expand
              completionHandler: ^(TaskDefinitionList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkflowApiForNeo = require('workflow_api_for_neo');
var defaultClient = WorkflowApiForNeo.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuthentication
var BasicAuthentication = defaultClient.authentications['BasicAuthentication'];
BasicAuthentication.username = 'YOUR USERNAME'
BasicAuthentication.password = 'YOUR PASSWORD'

// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
var Oauth2_AuthorizationCode = defaultClient.authentications['Oauth2_AuthorizationCode'];
Oauth2_AuthorizationCode.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
var Oauth2_ClientCredentials = defaultClient.authentications['Oauth2_ClientCredentials'];
Oauth2_ClientCredentials.accessToken = "YOUR ACCESS TOKEN"

var api = new WorkflowApiForNeo.TaskDefinitionsApi()

var opts = { 
  'acceptLanguage': acceptLanguage_example, // {String} Provide a preferred language. If a translation is available, relevant texts are returned in this language.
  '$skip': 56, // {Integer} The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter.
  '$top': 56, // {Integer} The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter.
  '$inlinecount': $inlinecount_example, // {String} Specify whether the total count of the task definitions should be returned as a value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once.
  '$expand': $expand_example // {String} You can request custom task attributes to become part of the task output by specifying the value 'attributeDefinitions' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributeDefinitions' field is not included into the output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where the corresponding task definition exists.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1TaskDefinitionsGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1TaskDefinitionsGetExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BasicAuthentication
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new TaskDefinitionsApi();
            var acceptLanguage = acceptLanguage_example;  // String | Provide a preferred language. If a translation is available, relevant texts are returned in this language. (optional) 
            var $skip = 56;  // Integer | The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter. (optional)  (default to 0)
            var $top = 56;  // Integer | The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter. (optional)  (default to 100)
            var $inlinecount = $inlinecount_example;  // String | Specify whether the total count of the task definitions should be returned as a value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once. (optional)  (default to none)
            var $expand = $expand_example;  // String | You can request custom task attributes to become part of the task output by specifying the value 'attributeDefinitions' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributeDefinitions' field is not included into the output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where the corresponding task definition exists. (optional) 

            try
            {
                // Retrieve definitions by query parameters
                TaskDefinitionList result = apiInstance.v1TaskDefinitionsGet(acceptLanguage, $skip, $top, $inlinecount, $expand);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TaskDefinitionsApi.v1TaskDefinitionsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuthentication
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\TaskDefinitionsApi();
$acceptLanguage = acceptLanguage_example; // String | Provide a preferred language. If a translation is available, relevant texts are returned in this language.
$$skip = 56; // Integer | The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter.
$$top = 56; // Integer | The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter.
$$inlinecount = $inlinecount_example; // String | Specify whether the total count of the task definitions should be returned as a value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once.
$$expand = $expand_example; // String | You can request custom task attributes to become part of the task output by specifying the value 'attributeDefinitions' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributeDefinitions' field is not included into the output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where the corresponding task definition exists.

try {
    $result = $api_instance->v1TaskDefinitionsGet($acceptLanguage, $$skip, $$top, $$inlinecount, $$expand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TaskDefinitionsApi->v1TaskDefinitionsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TaskDefinitionsApi;

# Configure HTTP basic authorization: BasicAuthentication
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::TaskDefinitionsApi->new();
my $acceptLanguage = acceptLanguage_example; # String | Provide a preferred language. If a translation is available, relevant texts are returned in this language.
my $$skip = 56; # Integer | The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter.
my $$top = 56; # Integer | The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter.
my $$inlinecount = $inlinecount_example; # String | Specify whether the total count of the task definitions should be returned as a value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once.
my $$expand = $expand_example; # String | You can request custom task attributes to become part of the task output by specifying the value 'attributeDefinitions' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributeDefinitions' field is not included into the output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where the corresponding task definition exists.

eval { 
    my $result = $api_instance->v1TaskDefinitionsGet(acceptLanguage => $acceptLanguage, $skip => $$skip, $top => $$top, $inlinecount => $$inlinecount, $expand => $$expand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TaskDefinitionsApi->v1TaskDefinitionsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuthentication
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.TaskDefinitionsApi()
acceptLanguage = acceptLanguage_example # String | Provide a preferred language. If a translation is available, relevant texts are returned in this language. (optional)
$skip = 56 # Integer | The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter. (optional) (default to 0)
$top = 56 # Integer | The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter. (optional) (default to 100)
$inlinecount = $inlinecount_example # String | Specify whether the total count of the task definitions should be returned as a value of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file.
To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once. (optional) (default to none)
$expand = $expand_example # String | You can request custom task attributes to become part of the task output by specifying the value 'attributeDefinitions' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributeDefinitions' field is not included into the output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where the corresponding task definition exists. (optional)

try: 
    # Retrieve definitions by query parameters
    api_response = api_instance.v1TaskDefinitionsGet(acceptLanguage=acceptLanguage, $skip=$skip, $top=$top, $inlinecount=$inlinecount, $expand=$expand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TaskDefinitionsApi->v1TaskDefinitionsGet: %s\n" % e)

Parameters

Header parameters
Name Description
Accept-Language
Query parameters
Name Description
$skip
$top
$inlinecount
$expand

Responses

Status: 200 - Returns a list of task definitions.

[{id=usertask1@myfirstworkflow, name=Approve Onboarding, createdAt=2017-03-08T17:26:51.643Z}, {id=usertask2@myfirstworkflow, name=Confirm Equipment of Onboardee, createdAt=2017-03-08T17:26:51.643Z}]

Status: 400 - Incorrect format or structure of the provided request body.

{error={code=bpm.workflowruntime.rest.content.format.invalid, message=Unable to parse the request content because it has an unexpected format or structure. The content has to be JSON and follow the documented data structure., logId=e329b2a4-cac7-44d7-b5c5-0494e6fbad5a}}

Status: 401 - Unauthorized. You have not provided valid authentication credentials to access the resource.

{error=unauthorized, error_description=Full authentication is required to access this resource.}

Status: 403 - Access forbidden. You have not the required permissions to access the resource.

{error={message=User does not have sufficient privileges.}}

Status: 429 - You have reached the usage limits that are configured for your tenant. You are performing too many requests or consume too many resources.

{error={code=bpm.workflowruntime.rate.limit.exceeded, message=Your tenant is performing too many requests.}}

Status: 500 - Internal server error. The operation you requested led to an error during execution.

{error={code=bpm.workflowruntime.rest.internal.server.error, message=Internal server error, logId=f29a5719-3342-4a4a-8a3d-5ddd5253159e}}

UserTaskInstances

/v1/task-instances

Retrieves user task instances by parameters. If no parameters are specified, all instances with status READY, RESERVED, CANCELED, or COMPLETED are returned. Parameters for different attributes of the instance are evaluated using the logical 'and' operator. If a parameter is specified multiple times, results are matched using the logical 'or' operator, unless noted otherwise. Empty parameters are treated as if they were not specified. By default, returned tasks are sorted by creation time in ascending order. Roles permitted to execute this operation: - Global roles: WorkflowViewer, WorkflowAdmin - Instance-specific roles: viewerUsers, viewerGroups, adminUsers, adminGroups [Prerequisite: You are assigned to the WorkflowParticipant global role.]


/v1/task-instances

Usage

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "https://sandbox.api.sap.com/workflow-service/rest/v1/task-instances?$skip=&$top=&$inlinecount=&$expand=&$orderby=&workflowInstanceId=&workflowDefinitionId=&processor=&id=&activityId=&description=&subject=&createdAt=&createdFrom=&createdUpTo=&claimedAt=&claimedFrom=&claimedUpTo=&completedAt=&completedFrom=&completedUpTo=&lastChangedAt=&lastChangedFrom=&lastChangedUpTo=&dueDate=&dueDateFrom=&dueDateUpTo=&priority=&status=&recipientUsers=&recipientGroups=&containsText=&attributes.ExampleCustomAttribute=&definitionId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserTaskInstancesApi;

import java.io.File;
import java.util.*;

public class UserTaskInstancesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BasicAuthentication
        HttpBasicAuth BasicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuthentication");
        BasicAuthentication.setUsername("YOUR USERNAME");
        BasicAuthentication.setPassword("YOUR PASSWORD");

        // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
        OAuth Oauth2_AuthorizationCode = (OAuth) defaultClient.getAuthentication("Oauth2_AuthorizationCode");
        Oauth2_AuthorizationCode.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
        OAuth Oauth2_ClientCredentials = (OAuth) defaultClient.getAuthentication("Oauth2_ClientCredentials");
        Oauth2_ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");

        UserTaskInstancesApi apiInstance = new UserTaskInstancesApi();
        String acceptLanguage = acceptLanguage_example; // String | Provide a preferred language. If a translation is available, relevant texts are returned in this language.
        Integer $skip = 56; // Integer | The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter.
        Integer $top = 56; // Integer | The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter.
        String $inlinecount = $inlinecount_example; // String | Specify whether the total count of the task instances, which match the search criteria, should be returned as a value
of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file. To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once.
        String $expand = $expand_example; // String | You can request custom task attributes to become part of the task output by specifying the value 'attributes' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributes' field is not included into task output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where these attributes are present.

        String $orderby = $orderby_example; // String | The attribute and direction by which tasks are sorted. The sort attribute and direction are separated by a space.
The parameter value is case-sensitive. You can only specify one ordering parameter, which contains attribute and direction.
To stabilize the order of tasks the implicit second ordering parameter 'createdAt asc' is applied.

 * claimedAt asc - Ascending, task claim time from the oldest to the most recent, tasks with status READY (not yet claimed) first.
 * claimedAt desc - Descending, from the most recently claimed tasks to the oldest ones, tasks with status READY (not yet claimed) last.
 * completedAt asc - Ascending, task completion or cancelation time from the oldest to the most recent, not yet COMPLETED tasks first.
 * completedAt desc - Descending, from the most recently COMPLETED or CANCELED tasks to the oldest ones, not yet COMPLETED tasks last.
 * createdAt asc - Ascending, task creation time from the oldest to the most recent.
 * createdAt desc - Descending, from the most recently created tasks to the oldest ones.
 * lastChangedAt asc - Ascending, task last change time from the oldest to the most recent.
 * lastChangedAt desc - Descending, from the most recently changed tasks to the oldest ones.
 * dueDate asc - Ascending, tasks due date from the oldest to the most distant in future ones, tasks without due date first.
 * dueDate desc - Descending, tasks due date from the most distant in future to the oldest ones, tasks without due date last.
 * subject asc - Ascending, from A to Z case-sensitive.
 * subject desc - Descending, from Z to A case-sensitive.
 * description asc - Ascending, from A to Z case-sensitive, tasks without description first.
 * description desc - Descending, from Z to A case-sensitive, tasks without description last.
 * activityId asc - Ascending, from A to Z case-sensitive.
 * activityId desc - Descending, from Z to A case-sensitive.
 * id asc - Ascending, from A to Z case-sensitive.
 * id desc - Descending, from Z to A case-sensitive.
 * processor asc - Ascending, from A to Z case-sensitive, tasks without processor first.
 * processor desc - Descending, from Z to A case-sensitive, tasks without processor last.
 * workflowDefinitionId asc - Ascending, from A to Z case-sensitive.
 * workflowDefinitionId desc - Descending, from Z to A case-sensitive.
 * workflowInstanceId asc - Ascending, from A to Z case-sensitive.
 * workflowInstanceId desc - Descending, from Z to A case-sensitive.
 * priority asc - Ascending, tasks priority from lowest to highest.
 * priority desc - Descending, tasks priority from highest to lowest.
        String workflowInstanceId = workflowInstanceId_example; // String | The workflow instance ID for which the user task instances are returned. The workflow instance ID is 36 characters long.
        String workflowDefinitionId = workflowDefinitionId_example; // String | The workflow definition ID for which the user task instances are returned.
        String processor = processor_example; // String | The processor of the user task instance.
        String id = id_example; // String | The unique ID of the user task instance. The user task instance ID is 36 characters long.
        String activityId = activityId_example; // String | The activityId of the user task instance. This field represents the ID of the user task definition.
        String description = description_example; // String | The description of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter.
        String subject = subject_example; // String | The subject of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter.
        String createdAt = createdAt_example; // String | Time when the user task instance has been created.
Evaluated using the logical 'or' operator with the values of the 'createdFrom' and 'createdUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String createdFrom = createdFrom_example; // String | The start time (inclusive) of the time range when the user task instance was created.
Must be less or equal to the value of the 'createdUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String createdUpTo = createdUpTo_example; // String | The end time (inclusive) of the time range when the user task instance was created.
Must be greater or equal to the value of the 'createdFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String claimedAt = claimedAt_example; // String | Time when the user task instance was claimed.
Evaluated using the logical 'or' operator with the values of the 'claimedFrom' and 'claimedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String claimedFrom = claimedFrom_example; // String | The start time (inclusive) of the time range when the user task instance was claimed.
Must be less or equal to the value of the 'claimedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String claimedUpTo = claimedUpTo_example; // String | The end time (inclusive) of the time range when the user task instance was claimed.
Must be greater or equal to the value of the 'claimedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String completedAt = completedAt_example; // String | Time when the user task instance was COMPLETED or CANCELED.
Evaluated using the logical 'or' operator with the values of the 'completedFrom' and 'completedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String completedFrom = completedFrom_example; // String | The start time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be less or equal to the value of the 'completedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String completedUpTo = completedUpTo_example; // String | The end time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be greater or equal to the value of the 'completedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String lastChangedAt = lastChangedAt_example; // String | Time when the user task instance has been changed for the last time.
Evaluated using the logical 'or' operator with the values of the 'lastChangedFrom' and 'lastChangedTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String lastChangedFrom = lastChangedFrom_example; // String | The start time (inclusive) of the time range when the user task instance was changed for the last time.
Must be less or equal to the value of the 'lastChangedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String lastChangedUpTo = lastChangedUpTo_example; // String | The end time (inclusive) of the time range when the user task instance was changed for the last time.
Must be greater or equal to the value of the 'lastChangedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String dueDate = dueDate_example; // String | The due date of the user task instance.
Evaluated using the logical 'or' operator with the values of the 'dueDateFrom' and 'dueDateUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String dueDateFrom = dueDateFrom_example; // String | The start time (inclusive) of the due date time range for the user task instance.
Must be less or equal to the value of the 'dueDateUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String dueDateUpTo = dueDateUpTo_example; // String | The end time (inclusive) of the due date time range for the user task instance.
Must be greater or equal to the 'dueDateFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String priority = priority_example; // String | The priority of the user task instance.
The values are case-insensitive.

        String status = status_example; // String | The status of the user task instance.
The values are case-insensitive.

        String recipientUsers = recipientUsers_example; // String | The users who must be among the recipient users of the user task instance. A user task instance has to match at least one of the recipient users specified.
Specify the users by repeating this parameter multiple times, with one user each.

        String recipientGroups = recipientGroups_example; // String | The groups which must be among the recipient groups of the user task instance. A user task instance has to match at least one of the recipient groups specified.
Specify the groups by repeating this parameter multiple times, with one user each.

        String containsText = containsText_example; // String | Text, which should be contained in at least one of the following fields of the user task instance:

 * subject
 * description
 * activityId
 * id
 * processor
 * workflowDefinitionId
 * workflowInstanceId

Performed filtering is case-insensitive. You must not use this parameter more than once.

        String attributes.ExampleCustomAttribute = attributes.ExampleCustomAttribute_example; // String | Example of a parameter that filters task instances by the value of the custom task attribute with the ID 'ExampleCustomAttribute'.
You can specify parameters for other attributes in an analogous way.
If you specify a parameter several times, the logical operators apply as outlined in the overall description of this API.
If custom task attributes with different IDs are present in the URL, only tasks which contain all of them with the values specified will be returned as a response to the request.
If a query by custom task attributes matches too many task definitions, you have to limit the query further. Refer, for example, to parameter 'definitionId'.

        String definitionId = definitionId_example; // String | The definition ID of the user task.
It consists of the ID of the task defined in the workflow definition (task definition ID) as well as the workflow definition ID delimited by an '@' sign.
For optimal performance, specify this parameter when searching for tasks by custom task attributes.
If the custom task attribute IDs from the query match more than 50 task definitions, you have to specify one or more task definition IDs when searching for tasks by custom task attributes.

        try {
            array[TaskInstance] result = apiInstance.v1TaskInstancesGet(acceptLanguage, $skip, $top, $inlinecount, $expand, $orderby, workflowInstanceId, workflowDefinitionId, processor, id, activityId, description, subject, createdAt, createdFrom, createdUpTo, claimedAt, claimedFrom, claimedUpTo, completedAt, completedFrom, completedUpTo, lastChangedAt, lastChangedFrom, lastChangedUpTo, dueDate, dueDateFrom, dueDateUpTo, priority, status, recipientUsers, recipientGroups, containsText, attributes.ExampleCustomAttribute, definitionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserTaskInstancesApi#v1TaskInstancesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserTaskInstancesApi;

public class UserTaskInstancesApiExample {

    public static void main(String[] args) {
        UserTaskInstancesApi apiInstance = new UserTaskInstancesApi();
        String acceptLanguage = acceptLanguage_example; // String | Provide a preferred language. If a translation is available, relevant texts are returned in this language.
        Integer $skip = 56; // Integer | The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter.
        Integer $top = 56; // Integer | The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter.
        String $inlinecount = $inlinecount_example; // String | Specify whether the total count of the task instances, which match the search criteria, should be returned as a value
of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file. To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once.
        String $expand = $expand_example; // String | You can request custom task attributes to become part of the task output by specifying the value 'attributes' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributes' field is not included into task output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where these attributes are present.

        String $orderby = $orderby_example; // String | The attribute and direction by which tasks are sorted. The sort attribute and direction are separated by a space.
The parameter value is case-sensitive. You can only specify one ordering parameter, which contains attribute and direction.
To stabilize the order of tasks the implicit second ordering parameter 'createdAt asc' is applied.

 * claimedAt asc - Ascending, task claim time from the oldest to the most recent, tasks with status READY (not yet claimed) first.
 * claimedAt desc - Descending, from the most recently claimed tasks to the oldest ones, tasks with status READY (not yet claimed) last.
 * completedAt asc - Ascending, task completion or cancelation time from the oldest to the most recent, not yet COMPLETED tasks first.
 * completedAt desc - Descending, from the most recently COMPLETED or CANCELED tasks to the oldest ones, not yet COMPLETED tasks last.
 * createdAt asc - Ascending, task creation time from the oldest to the most recent.
 * createdAt desc - Descending, from the most recently created tasks to the oldest ones.
 * lastChangedAt asc - Ascending, task last change time from the oldest to the most recent.
 * lastChangedAt desc - Descending, from the most recently changed tasks to the oldest ones.
 * dueDate asc - Ascending, tasks due date from the oldest to the most distant in future ones, tasks without due date first.
 * dueDate desc - Descending, tasks due date from the most distant in future to the oldest ones, tasks without due date last.
 * subject asc - Ascending, from A to Z case-sensitive.
 * subject desc - Descending, from Z to A case-sensitive.
 * description asc - Ascending, from A to Z case-sensitive, tasks without description first.
 * description desc - Descending, from Z to A case-sensitive, tasks without description last.
 * activityId asc - Ascending, from A to Z case-sensitive.
 * activityId desc - Descending, from Z to A case-sensitive.
 * id asc - Ascending, from A to Z case-sensitive.
 * id desc - Descending, from Z to A case-sensitive.
 * processor asc - Ascending, from A to Z case-sensitive, tasks without processor first.
 * processor desc - Descending, from Z to A case-sensitive, tasks without processor last.
 * workflowDefinitionId asc - Ascending, from A to Z case-sensitive.
 * workflowDefinitionId desc - Descending, from Z to A case-sensitive.
 * workflowInstanceId asc - Ascending, from A to Z case-sensitive.
 * workflowInstanceId desc - Descending, from Z to A case-sensitive.
 * priority asc - Ascending, tasks priority from lowest to highest.
 * priority desc - Descending, tasks priority from highest to lowest.
        String workflowInstanceId = workflowInstanceId_example; // String | The workflow instance ID for which the user task instances are returned. The workflow instance ID is 36 characters long.
        String workflowDefinitionId = workflowDefinitionId_example; // String | The workflow definition ID for which the user task instances are returned.
        String processor = processor_example; // String | The processor of the user task instance.
        String id = id_example; // String | The unique ID of the user task instance. The user task instance ID is 36 characters long.
        String activityId = activityId_example; // String | The activityId of the user task instance. This field represents the ID of the user task definition.
        String description = description_example; // String | The description of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter.
        String subject = subject_example; // String | The subject of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter.
        String createdAt = createdAt_example; // String | Time when the user task instance has been created.
Evaluated using the logical 'or' operator with the values of the 'createdFrom' and 'createdUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String createdFrom = createdFrom_example; // String | The start time (inclusive) of the time range when the user task instance was created.
Must be less or equal to the value of the 'createdUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String createdUpTo = createdUpTo_example; // String | The end time (inclusive) of the time range when the user task instance was created.
Must be greater or equal to the value of the 'createdFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String claimedAt = claimedAt_example; // String | Time when the user task instance was claimed.
Evaluated using the logical 'or' operator with the values of the 'claimedFrom' and 'claimedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String claimedFrom = claimedFrom_example; // String | The start time (inclusive) of the time range when the user task instance was claimed.
Must be less or equal to the value of the 'claimedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String claimedUpTo = claimedUpTo_example; // String | The end time (inclusive) of the time range when the user task instance was claimed.
Must be greater or equal to the value of the 'claimedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String completedAt = completedAt_example; // String | Time when the user task instance was COMPLETED or CANCELED.
Evaluated using the logical 'or' operator with the values of the 'completedFrom' and 'completedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String completedFrom = completedFrom_example; // String | The start time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be less or equal to the value of the 'completedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String completedUpTo = completedUpTo_example; // String | The end time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be greater or equal to the value of the 'completedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String lastChangedAt = lastChangedAt_example; // String | Time when the user task instance has been changed for the last time.
Evaluated using the logical 'or' operator with the values of the 'lastChangedFrom' and 'lastChangedTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String lastChangedFrom = lastChangedFrom_example; // String | The start time (inclusive) of the time range when the user task instance was changed for the last time.
Must be less or equal to the value of the 'lastChangedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String lastChangedUpTo = lastChangedUpTo_example; // String | The end time (inclusive) of the time range when the user task instance was changed for the last time.
Must be greater or equal to the value of the 'lastChangedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String dueDate = dueDate_example; // String | The due date of the user task instance.
Evaluated using the logical 'or' operator with the values of the 'dueDateFrom' and 'dueDateUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String dueDateFrom = dueDateFrom_example; // String | The start time (inclusive) of the due date time range for the user task instance.
Must be less or equal to the value of the 'dueDateUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String dueDateUpTo = dueDateUpTo_example; // String | The end time (inclusive) of the due date time range for the user task instance.
Must be greater or equal to the 'dueDateFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

        String priority = priority_example; // String | The priority of the user task instance.
The values are case-insensitive.

        String status = status_example; // String | The status of the user task instance.
The values are case-insensitive.

        String recipientUsers = recipientUsers_example; // String | The users who must be among the recipient users of the user task instance. A user task instance has to match at least one of the recipient users specified.
Specify the users by repeating this parameter multiple times, with one user each.

        String recipientGroups = recipientGroups_example; // String | The groups which must be among the recipient groups of the user task instance. A user task instance has to match at least one of the recipient groups specified.
Specify the groups by repeating this parameter multiple times, with one user each.

        String containsText = containsText_example; // String | Text, which should be contained in at least one of the following fields of the user task instance:

 * subject
 * description
 * activityId
 * id
 * processor
 * workflowDefinitionId
 * workflowInstanceId

Performed filtering is case-insensitive. You must not use this parameter more than once.

        String attributes.ExampleCustomAttribute = attributes.ExampleCustomAttribute_example; // String | Example of a parameter that filters task instances by the value of the custom task attribute with the ID 'ExampleCustomAttribute'.
You can specify parameters for other attributes in an analogous way.
If you specify a parameter several times, the logical operators apply as outlined in the overall description of this API.
If custom task attributes with different IDs are present in the URL, only tasks which contain all of them with the values specified will be returned as a response to the request.
If a query by custom task attributes matches too many task definitions, you have to limit the query further. Refer, for example, to parameter 'definitionId'.

        String definitionId = definitionId_example; // String | The definition ID of the user task.
It consists of the ID of the task defined in the workflow definition (task definition ID) as well as the workflow definition ID delimited by an '@' sign.
For optimal performance, specify this parameter when searching for tasks by custom task attributes.
If the custom task attribute IDs from the query match more than 50 task definitions, you have to specify one or more task definition IDs when searching for tasks by custom task attributes.

        try {
            array[TaskInstance] result = apiInstance.v1TaskInstancesGet(acceptLanguage, $skip, $top, $inlinecount, $expand, $orderby, workflowInstanceId, workflowDefinitionId, processor, id, activityId, description, subject, createdAt, createdFrom, createdUpTo, claimedAt, claimedFrom, claimedUpTo, completedAt, completedFrom, completedUpTo, lastChangedAt, lastChangedFrom, lastChangedUpTo, dueDate, dueDateFrom, dueDateUpTo, priority, status, recipientUsers, recipientGroups, containsText, attributes.ExampleCustomAttribute, definitionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserTaskInstancesApi#v1TaskInstancesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuthentication)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_AuthorizationCode)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_ClientCredentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *acceptLanguage = acceptLanguage_example; // Provide a preferred language. If a translation is available, relevant texts are returned in this language. (optional)
Integer *$skip = 56; // The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter. (optional) (default to 0)
Integer *$top = 56; // The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter. (optional) (default to 100)
String *$inlinecount = $inlinecount_example; // Specify whether the total count of the task instances, which match the search criteria, should be returned as a value
of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file. To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once. (optional) (default to none)
String *$expand = $expand_example; // You can request custom task attributes to become part of the task output by specifying the value 'attributes' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributes' field is not included into task output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where these attributes are present.
 (optional)
String *$orderby = $orderby_example; // The attribute and direction by which tasks are sorted. The sort attribute and direction are separated by a space.
The parameter value is case-sensitive. You can only specify one ordering parameter, which contains attribute and direction.
To stabilize the order of tasks the implicit second ordering parameter 'createdAt asc' is applied.

 * claimedAt asc - Ascending, task claim time from the oldest to the most recent, tasks with status READY (not yet claimed) first.
 * claimedAt desc - Descending, from the most recently claimed tasks to the oldest ones, tasks with status READY (not yet claimed) last.
 * completedAt asc - Ascending, task completion or cancelation time from the oldest to the most recent, not yet COMPLETED tasks first.
 * completedAt desc - Descending, from the most recently COMPLETED or CANCELED tasks to the oldest ones, not yet COMPLETED tasks last.
 * createdAt asc - Ascending, task creation time from the oldest to the most recent.
 * createdAt desc - Descending, from the most recently created tasks to the oldest ones.
 * lastChangedAt asc - Ascending, task last change time from the oldest to the most recent.
 * lastChangedAt desc - Descending, from the most recently changed tasks to the oldest ones.
 * dueDate asc - Ascending, tasks due date from the oldest to the most distant in future ones, tasks without due date first.
 * dueDate desc - Descending, tasks due date from the most distant in future to the oldest ones, tasks without due date last.
 * subject asc - Ascending, from A to Z case-sensitive.
 * subject desc - Descending, from Z to A case-sensitive.
 * description asc - Ascending, from A to Z case-sensitive, tasks without description first.
 * description desc - Descending, from Z to A case-sensitive, tasks without description last.
 * activityId asc - Ascending, from A to Z case-sensitive.
 * activityId desc - Descending, from Z to A case-sensitive.
 * id asc - Ascending, from A to Z case-sensitive.
 * id desc - Descending, from Z to A case-sensitive.
 * processor asc - Ascending, from A to Z case-sensitive, tasks without processor first.
 * processor desc - Descending, from Z to A case-sensitive, tasks without processor last.
 * workflowDefinitionId asc - Ascending, from A to Z case-sensitive.
 * workflowDefinitionId desc - Descending, from Z to A case-sensitive.
 * workflowInstanceId asc - Ascending, from A to Z case-sensitive.
 * workflowInstanceId desc - Descending, from Z to A case-sensitive.
 * priority asc - Ascending, tasks priority from lowest to highest.
 * priority desc - Descending, tasks priority from highest to lowest. (optional) (default to createdAt asc)
String *workflowInstanceId = workflowInstanceId_example; // The workflow instance ID for which the user task instances are returned. The workflow instance ID is 36 characters long. (optional)
String *workflowDefinitionId = workflowDefinitionId_example; // The workflow definition ID for which the user task instances are returned. (optional)
String *processor = processor_example; // The processor of the user task instance. (optional)
String *id = id_example; // The unique ID of the user task instance. The user task instance ID is 36 characters long. (optional)
String *activityId = activityId_example; // The activityId of the user task instance. This field represents the ID of the user task definition. (optional)
String *description = description_example; // The description of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter. (optional)
String *subject = subject_example; // The subject of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter. (optional)
String *createdAt = createdAt_example; // Time when the user task instance has been created.
Evaluated using the logical 'or' operator with the values of the 'createdFrom' and 'createdUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
String *createdFrom = createdFrom_example; // The start time (inclusive) of the time range when the user task instance was created.
Must be less or equal to the value of the 'createdUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
String *createdUpTo = createdUpTo_example; // The end time (inclusive) of the time range when the user task instance was created.
Must be greater or equal to the value of the 'createdFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
String *claimedAt = claimedAt_example; // Time when the user task instance was claimed.
Evaluated using the logical 'or' operator with the values of the 'claimedFrom' and 'claimedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
String *claimedFrom = claimedFrom_example; // The start time (inclusive) of the time range when the user task instance was claimed.
Must be less or equal to the value of the 'claimedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
String *claimedUpTo = claimedUpTo_example; // The end time (inclusive) of the time range when the user task instance was claimed.
Must be greater or equal to the value of the 'claimedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
String *completedAt = completedAt_example; // Time when the user task instance was COMPLETED or CANCELED.
Evaluated using the logical 'or' operator with the values of the 'completedFrom' and 'completedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
String *completedFrom = completedFrom_example; // The start time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be less or equal to the value of the 'completedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
String *completedUpTo = completedUpTo_example; // The end time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be greater or equal to the value of the 'completedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
String *lastChangedAt = lastChangedAt_example; // Time when the user task instance has been changed for the last time.
Evaluated using the logical 'or' operator with the values of the 'lastChangedFrom' and 'lastChangedTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
String *lastChangedFrom = lastChangedFrom_example; // The start time (inclusive) of the time range when the user task instance was changed for the last time.
Must be less or equal to the value of the 'lastChangedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
String *lastChangedUpTo = lastChangedUpTo_example; // The end time (inclusive) of the time range when the user task instance was changed for the last time.
Must be greater or equal to the value of the 'lastChangedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
String *dueDate = dueDate_example; // The due date of the user task instance.
Evaluated using the logical 'or' operator with the values of the 'dueDateFrom' and 'dueDateUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
String *dueDateFrom = dueDateFrom_example; // The start time (inclusive) of the due date time range for the user task instance.
Must be less or equal to the value of the 'dueDateUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
String *dueDateUpTo = dueDateUpTo_example; // The end time (inclusive) of the due date time range for the user task instance.
Must be greater or equal to the 'dueDateFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
String *priority = priority_example; // The priority of the user task instance.
The values are case-insensitive.
 (optional)
String *status = status_example; // The status of the user task instance.
The values are case-insensitive.
 (optional)
String *recipientUsers = recipientUsers_example; // The users who must be among the recipient users of the user task instance. A user task instance has to match at least one of the recipient users specified.
Specify the users by repeating this parameter multiple times, with one user each.
 (optional)
String *recipientGroups = recipientGroups_example; // The groups which must be among the recipient groups of the user task instance. A user task instance has to match at least one of the recipient groups specified.
Specify the groups by repeating this parameter multiple times, with one user each.
 (optional)
String *containsText = containsText_example; // Text, which should be contained in at least one of the following fields of the user task instance:

 * subject
 * description
 * activityId
 * id
 * processor
 * workflowDefinitionId
 * workflowInstanceId

Performed filtering is case-insensitive. You must not use this parameter more than once.
 (optional)
String *attributes.ExampleCustomAttribute = attributes.ExampleCustomAttribute_example; // Example of a parameter that filters task instances by the value of the custom task attribute with the ID 'ExampleCustomAttribute'.
You can specify parameters for other attributes in an analogous way.
If you specify a parameter several times, the logical operators apply as outlined in the overall description of this API.
If custom task attributes with different IDs are present in the URL, only tasks which contain all of them with the values specified will be returned as a response to the request.
If a query by custom task attributes matches too many task definitions, you have to limit the query further. Refer, for example, to parameter 'definitionId'.
 (optional)
String *definitionId = definitionId_example; // The definition ID of the user task.
It consists of the ID of the task defined in the workflow definition (task definition ID) as well as the workflow definition ID delimited by an '@' sign.
For optimal performance, specify this parameter when searching for tasks by custom task attributes.
If the custom task attribute IDs from the query match more than 50 task definitions, you have to specify one or more task definition IDs when searching for tasks by custom task attributes.
 (optional)

UserTaskInstancesApi *apiInstance = [[UserTaskInstancesApi alloc] init];

// Retrieve instances by query parameters
[apiInstance v1TaskInstancesGetWith:acceptLanguage
    $skip:$skip
    $top:$top
    $inlinecount:$inlinecount
    $expand:$expand
    $orderby:$orderby
    workflowInstanceId:workflowInstanceId
    workflowDefinitionId:workflowDefinitionId
    processor:processor
    id:id
    activityId:activityId
    description:description
    subject:subject
    createdAt:createdAt
    createdFrom:createdFrom
    createdUpTo:createdUpTo
    claimedAt:claimedAt
    claimedFrom:claimedFrom
    claimedUpTo:claimedUpTo
    completedAt:completedAt
    completedFrom:completedFrom
    completedUpTo:completedUpTo
    lastChangedAt:lastChangedAt
    lastChangedFrom:lastChangedFrom
    lastChangedUpTo:lastChangedUpTo
    dueDate:dueDate
    dueDateFrom:dueDateFrom
    dueDateUpTo:dueDateUpTo
    priority:priority
    status:status
    recipientUsers:recipientUsers
    recipientGroups:recipientGroups
    containsText:containsText
    attributes.ExampleCustomAttribute:attributes.ExampleCustomAttribute
    definitionId:definitionId
              completionHandler: ^(array[TaskInstance] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkflowApiForNeo = require('workflow_api_for_neo');
var defaultClient = WorkflowApiForNeo.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuthentication
var BasicAuthentication = defaultClient.authentications['BasicAuthentication'];
BasicAuthentication.username = 'YOUR USERNAME'
BasicAuthentication.password = 'YOUR PASSWORD'

// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
var Oauth2_AuthorizationCode = defaultClient.authentications['Oauth2_AuthorizationCode'];
Oauth2_AuthorizationCode.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
var Oauth2_ClientCredentials = defaultClient.authentications['Oauth2_ClientCredentials'];
Oauth2_ClientCredentials.accessToken = "YOUR ACCESS TOKEN"

var api = new WorkflowApiForNeo.UserTaskInstancesApi()

var opts = { 
  'acceptLanguage': acceptLanguage_example, // {String} Provide a preferred language. If a translation is available, relevant texts are returned in this language.
  '$skip': 56, // {Integer} The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter.
  '$top': 56, // {Integer} The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter.
  '$inlinecount': $inlinecount_example, // {String} Specify whether the total count of the task instances, which match the search criteria, should be returned as a value
of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file. To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once.
  '$expand': $expand_example, // {String} You can request custom task attributes to become part of the task output by specifying the value 'attributes' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributes' field is not included into task output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where these attributes are present.

  '$orderby': $orderby_example, // {String} The attribute and direction by which tasks are sorted. The sort attribute and direction are separated by a space.
The parameter value is case-sensitive. You can only specify one ordering parameter, which contains attribute and direction.
To stabilize the order of tasks the implicit second ordering parameter 'createdAt asc' is applied.

 * claimedAt asc - Ascending, task claim time from the oldest to the most recent, tasks with status READY (not yet claimed) first.
 * claimedAt desc - Descending, from the most recently claimed tasks to the oldest ones, tasks with status READY (not yet claimed) last.
 * completedAt asc - Ascending, task completion or cancelation time from the oldest to the most recent, not yet COMPLETED tasks first.
 * completedAt desc - Descending, from the most recently COMPLETED or CANCELED tasks to the oldest ones, not yet COMPLETED tasks last.
 * createdAt asc - Ascending, task creation time from the oldest to the most recent.
 * createdAt desc - Descending, from the most recently created tasks to the oldest ones.
 * lastChangedAt asc - Ascending, task last change time from the oldest to the most recent.
 * lastChangedAt desc - Descending, from the most recently changed tasks to the oldest ones.
 * dueDate asc - Ascending, tasks due date from the oldest to the most distant in future ones, tasks without due date first.
 * dueDate desc - Descending, tasks due date from the most distant in future to the oldest ones, tasks without due date last.
 * subject asc - Ascending, from A to Z case-sensitive.
 * subject desc - Descending, from Z to A case-sensitive.
 * description asc - Ascending, from A to Z case-sensitive, tasks without description first.
 * description desc - Descending, from Z to A case-sensitive, tasks without description last.
 * activityId asc - Ascending, from A to Z case-sensitive.
 * activityId desc - Descending, from Z to A case-sensitive.
 * id asc - Ascending, from A to Z case-sensitive.
 * id desc - Descending, from Z to A case-sensitive.
 * processor asc - Ascending, from A to Z case-sensitive, tasks without processor first.
 * processor desc - Descending, from Z to A case-sensitive, tasks without processor last.
 * workflowDefinitionId asc - Ascending, from A to Z case-sensitive.
 * workflowDefinitionId desc - Descending, from Z to A case-sensitive.
 * workflowInstanceId asc - Ascending, from A to Z case-sensitive.
 * workflowInstanceId desc - Descending, from Z to A case-sensitive.
 * priority asc - Ascending, tasks priority from lowest to highest.
 * priority desc - Descending, tasks priority from highest to lowest.
  'workflowInstanceId': workflowInstanceId_example, // {String} The workflow instance ID for which the user task instances are returned. The workflow instance ID is 36 characters long.
  'workflowDefinitionId': workflowDefinitionId_example, // {String} The workflow definition ID for which the user task instances are returned.
  'processor': processor_example, // {String} The processor of the user task instance.
  'id': id_example, // {String} The unique ID of the user task instance. The user task instance ID is 36 characters long.
  'activityId': activityId_example, // {String} The activityId of the user task instance. This field represents the ID of the user task definition.
  'description': description_example, // {String} The description of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter.
  'subject': subject_example, // {String} The subject of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter.
  'createdAt': createdAt_example, // {String} Time when the user task instance has been created.
Evaluated using the logical 'or' operator with the values of the 'createdFrom' and 'createdUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

  'createdFrom': createdFrom_example, // {String} The start time (inclusive) of the time range when the user task instance was created.
Must be less or equal to the value of the 'createdUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

  'createdUpTo': createdUpTo_example, // {String} The end time (inclusive) of the time range when the user task instance was created.
Must be greater or equal to the value of the 'createdFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

  'claimedAt': claimedAt_example, // {String} Time when the user task instance was claimed.
Evaluated using the logical 'or' operator with the values of the 'claimedFrom' and 'claimedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

  'claimedFrom': claimedFrom_example, // {String} The start time (inclusive) of the time range when the user task instance was claimed.
Must be less or equal to the value of the 'claimedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

  'claimedUpTo': claimedUpTo_example, // {String} The end time (inclusive) of the time range when the user task instance was claimed.
Must be greater or equal to the value of the 'claimedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

  'completedAt': completedAt_example, // {String} Time when the user task instance was COMPLETED or CANCELED.
Evaluated using the logical 'or' operator with the values of the 'completedFrom' and 'completedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

  'completedFrom': completedFrom_example, // {String} The start time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be less or equal to the value of the 'completedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

  'completedUpTo': completedUpTo_example, // {String} The end time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be greater or equal to the value of the 'completedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

  'lastChangedAt': lastChangedAt_example, // {String} Time when the user task instance has been changed for the last time.
Evaluated using the logical 'or' operator with the values of the 'lastChangedFrom' and 'lastChangedTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

  'lastChangedFrom': lastChangedFrom_example, // {String} The start time (inclusive) of the time range when the user task instance was changed for the last time.
Must be less or equal to the value of the 'lastChangedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

  'lastChangedUpTo': lastChangedUpTo_example, // {String} The end time (inclusive) of the time range when the user task instance was changed for the last time.
Must be greater or equal to the value of the 'lastChangedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

  'dueDate': dueDate_example, // {String} The due date of the user task instance.
Evaluated using the logical 'or' operator with the values of the 'dueDateFrom' and 'dueDateUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

  'dueDateFrom': dueDateFrom_example, // {String} The start time (inclusive) of the due date time range for the user task instance.
Must be less or equal to the value of the 'dueDateUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

  'dueDateUpTo': dueDateUpTo_example, // {String} The end time (inclusive) of the due date time range for the user task instance.
Must be greater or equal to the 'dueDateFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

  'priority': priority_example, // {String} The priority of the user task instance.
The values are case-insensitive.

  'status': status_example, // {String} The status of the user task instance.
The values are case-insensitive.

  'recipientUsers': recipientUsers_example, // {String} The users who must be among the recipient users of the user task instance. A user task instance has to match at least one of the recipient users specified.
Specify the users by repeating this parameter multiple times, with one user each.

  'recipientGroups': recipientGroups_example, // {String} The groups which must be among the recipient groups of the user task instance. A user task instance has to match at least one of the recipient groups specified.
Specify the groups by repeating this parameter multiple times, with one user each.

  'containsText': containsText_example, // {String} Text, which should be contained in at least one of the following fields of the user task instance:

 * subject
 * description
 * activityId
 * id
 * processor
 * workflowDefinitionId
 * workflowInstanceId

Performed filtering is case-insensitive. You must not use this parameter more than once.

  'attributes.ExampleCustomAttribute': attributes.ExampleCustomAttribute_example, // {String} Example of a parameter that filters task instances by the value of the custom task attribute with the ID 'ExampleCustomAttribute'.
You can specify parameters for other attributes in an analogous way.
If you specify a parameter several times, the logical operators apply as outlined in the overall description of this API.
If custom task attributes with different IDs are present in the URL, only tasks which contain all of them with the values specified will be returned as a response to the request.
If a query by custom task attributes matches too many task definitions, you have to limit the query further. Refer, for example, to parameter 'definitionId'.

  'definitionId': definitionId_example // {String} The definition ID of the user task.
It consists of the ID of the task defined in the workflow definition (task definition ID) as well as the workflow definition ID delimited by an '@' sign.
For optimal performance, specify this parameter when searching for tasks by custom task attributes.
If the custom task attribute IDs from the query match more than 50 task definitions, you have to specify one or more task definition IDs when searching for tasks by custom task attributes.

};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1TaskInstancesGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1TaskInstancesGetExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BasicAuthentication
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new UserTaskInstancesApi();
            var acceptLanguage = acceptLanguage_example;  // String | Provide a preferred language. If a translation is available, relevant texts are returned in this language. (optional) 
            var $skip = 56;  // Integer | The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter. (optional)  (default to 0)
            var $top = 56;  // Integer | The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter. (optional)  (default to 100)
            var $inlinecount = $inlinecount_example;  // String | Specify whether the total count of the task instances, which match the search criteria, should be returned as a value
of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file. To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once. (optional)  (default to none)
            var $expand = $expand_example;  // String | You can request custom task attributes to become part of the task output by specifying the value 'attributes' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributes' field is not included into task output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where these attributes are present.
 (optional) 
            var $orderby = $orderby_example;  // String | The attribute and direction by which tasks are sorted. The sort attribute and direction are separated by a space.
The parameter value is case-sensitive. You can only specify one ordering parameter, which contains attribute and direction.
To stabilize the order of tasks the implicit second ordering parameter 'createdAt asc' is applied.

 * claimedAt asc - Ascending, task claim time from the oldest to the most recent, tasks with status READY (not yet claimed) first.
 * claimedAt desc - Descending, from the most recently claimed tasks to the oldest ones, tasks with status READY (not yet claimed) last.
 * completedAt asc - Ascending, task completion or cancelation time from the oldest to the most recent, not yet COMPLETED tasks first.
 * completedAt desc - Descending, from the most recently COMPLETED or CANCELED tasks to the oldest ones, not yet COMPLETED tasks last.
 * createdAt asc - Ascending, task creation time from the oldest to the most recent.
 * createdAt desc - Descending, from the most recently created tasks to the oldest ones.
 * lastChangedAt asc - Ascending, task last change time from the oldest to the most recent.
 * lastChangedAt desc - Descending, from the most recently changed tasks to the oldest ones.
 * dueDate asc - Ascending, tasks due date from the oldest to the most distant in future ones, tasks without due date first.
 * dueDate desc - Descending, tasks due date from the most distant in future to the oldest ones, tasks without due date last.
 * subject asc - Ascending, from A to Z case-sensitive.
 * subject desc - Descending, from Z to A case-sensitive.
 * description asc - Ascending, from A to Z case-sensitive, tasks without description first.
 * description desc - Descending, from Z to A case-sensitive, tasks without description last.
 * activityId asc - Ascending, from A to Z case-sensitive.
 * activityId desc - Descending, from Z to A case-sensitive.
 * id asc - Ascending, from A to Z case-sensitive.
 * id desc - Descending, from Z to A case-sensitive.
 * processor asc - Ascending, from A to Z case-sensitive, tasks without processor first.
 * processor desc - Descending, from Z to A case-sensitive, tasks without processor last.
 * workflowDefinitionId asc - Ascending, from A to Z case-sensitive.
 * workflowDefinitionId desc - Descending, from Z to A case-sensitive.
 * workflowInstanceId asc - Ascending, from A to Z case-sensitive.
 * workflowInstanceId desc - Descending, from Z to A case-sensitive.
 * priority asc - Ascending, tasks priority from lowest to highest.
 * priority desc - Descending, tasks priority from highest to lowest. (optional)  (default to createdAt asc)
            var workflowInstanceId = workflowInstanceId_example;  // String | The workflow instance ID for which the user task instances are returned. The workflow instance ID is 36 characters long. (optional) 
            var workflowDefinitionId = workflowDefinitionId_example;  // String | The workflow definition ID for which the user task instances are returned. (optional) 
            var processor = processor_example;  // String | The processor of the user task instance. (optional) 
            var id = id_example;  // String | The unique ID of the user task instance. The user task instance ID is 36 characters long. (optional) 
            var activityId = activityId_example;  // String | The activityId of the user task instance. This field represents the ID of the user task definition. (optional) 
            var description = description_example;  // String | The description of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter. (optional) 
            var subject = subject_example;  // String | The subject of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter. (optional) 
            var createdAt = createdAt_example;  // String | Time when the user task instance has been created.
Evaluated using the logical 'or' operator with the values of the 'createdFrom' and 'createdUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional) 
            var createdFrom = createdFrom_example;  // String | The start time (inclusive) of the time range when the user task instance was created.
Must be less or equal to the value of the 'createdUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional) 
            var createdUpTo = createdUpTo_example;  // String | The end time (inclusive) of the time range when the user task instance was created.
Must be greater or equal to the value of the 'createdFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional) 
            var claimedAt = claimedAt_example;  // String | Time when the user task instance was claimed.
Evaluated using the logical 'or' operator with the values of the 'claimedFrom' and 'claimedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional) 
            var claimedFrom = claimedFrom_example;  // String | The start time (inclusive) of the time range when the user task instance was claimed.
Must be less or equal to the value of the 'claimedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional) 
            var claimedUpTo = claimedUpTo_example;  // String | The end time (inclusive) of the time range when the user task instance was claimed.
Must be greater or equal to the value of the 'claimedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional) 
            var completedAt = completedAt_example;  // String | Time when the user task instance was COMPLETED or CANCELED.
Evaluated using the logical 'or' operator with the values of the 'completedFrom' and 'completedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional) 
            var completedFrom = completedFrom_example;  // String | The start time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be less or equal to the value of the 'completedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional) 
            var completedUpTo = completedUpTo_example;  // String | The end time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be greater or equal to the value of the 'completedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional) 
            var lastChangedAt = lastChangedAt_example;  // String | Time when the user task instance has been changed for the last time.
Evaluated using the logical 'or' operator with the values of the 'lastChangedFrom' and 'lastChangedTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional) 
            var lastChangedFrom = lastChangedFrom_example;  // String | The start time (inclusive) of the time range when the user task instance was changed for the last time.
Must be less or equal to the value of the 'lastChangedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional) 
            var lastChangedUpTo = lastChangedUpTo_example;  // String | The end time (inclusive) of the time range when the user task instance was changed for the last time.
Must be greater or equal to the value of the 'lastChangedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional) 
            var dueDate = dueDate_example;  // String | The due date of the user task instance.
Evaluated using the logical 'or' operator with the values of the 'dueDateFrom' and 'dueDateUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional) 
            var dueDateFrom = dueDateFrom_example;  // String | The start time (inclusive) of the due date time range for the user task instance.
Must be less or equal to the value of the 'dueDateUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional) 
            var dueDateUpTo = dueDateUpTo_example;  // String | The end time (inclusive) of the due date time range for the user task instance.
Must be greater or equal to the 'dueDateFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional) 
            var priority = priority_example;  // String | The priority of the user task instance.
The values are case-insensitive.
 (optional) 
            var status = status_example;  // String | The status of the user task instance.
The values are case-insensitive.
 (optional) 
            var recipientUsers = recipientUsers_example;  // String | The users who must be among the recipient users of the user task instance. A user task instance has to match at least one of the recipient users specified.
Specify the users by repeating this parameter multiple times, with one user each.
 (optional) 
            var recipientGroups = recipientGroups_example;  // String | The groups which must be among the recipient groups of the user task instance. A user task instance has to match at least one of the recipient groups specified.
Specify the groups by repeating this parameter multiple times, with one user each.
 (optional) 
            var containsText = containsText_example;  // String | Text, which should be contained in at least one of the following fields of the user task instance:

 * subject
 * description
 * activityId
 * id
 * processor
 * workflowDefinitionId
 * workflowInstanceId

Performed filtering is case-insensitive. You must not use this parameter more than once.
 (optional) 
            var attributes.ExampleCustomAttribute = attributes.ExampleCustomAttribute_example;  // String | Example of a parameter that filters task instances by the value of the custom task attribute with the ID 'ExampleCustomAttribute'.
You can specify parameters for other attributes in an analogous way.
If you specify a parameter several times, the logical operators apply as outlined in the overall description of this API.
If custom task attributes with different IDs are present in the URL, only tasks which contain all of them with the values specified will be returned as a response to the request.
If a query by custom task attributes matches too many task definitions, you have to limit the query further. Refer, for example, to parameter 'definitionId'.
 (optional) 
            var definitionId = definitionId_example;  // String | The definition ID of the user task.
It consists of the ID of the task defined in the workflow definition (task definition ID) as well as the workflow definition ID delimited by an '@' sign.
For optimal performance, specify this parameter when searching for tasks by custom task attributes.
If the custom task attribute IDs from the query match more than 50 task definitions, you have to specify one or more task definition IDs when searching for tasks by custom task attributes.
 (optional) 

            try
            {
                // Retrieve instances by query parameters
                array[TaskInstance] result = apiInstance.v1TaskInstancesGet(acceptLanguage, $skip, $top, $inlinecount, $expand, $orderby, workflowInstanceId, workflowDefinitionId, processor, id, activityId, description, subject, createdAt, createdFrom, createdUpTo, claimedAt, claimedFrom, claimedUpTo, completedAt, completedFrom, completedUpTo, lastChangedAt, lastChangedFrom, lastChangedUpTo, dueDate, dueDateFrom, dueDateUpTo, priority, status, recipientUsers, recipientGroups, containsText, attributes.ExampleCustomAttribute, definitionId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserTaskInstancesApi.v1TaskInstancesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuthentication
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\UserTaskInstancesApi();
$acceptLanguage = acceptLanguage_example; // String | Provide a preferred language. If a translation is available, relevant texts are returned in this language.
$$skip = 56; // Integer | The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter.
$$top = 56; // Integer | The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter.
$$inlinecount = $inlinecount_example; // String | Specify whether the total count of the task instances, which match the search criteria, should be returned as a value
of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file. To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once.
$$expand = $expand_example; // String | You can request custom task attributes to become part of the task output by specifying the value 'attributes' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributes' field is not included into task output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where these attributes are present.

$$orderby = $orderby_example; // String | The attribute and direction by which tasks are sorted. The sort attribute and direction are separated by a space.
The parameter value is case-sensitive. You can only specify one ordering parameter, which contains attribute and direction.
To stabilize the order of tasks the implicit second ordering parameter 'createdAt asc' is applied.

 * claimedAt asc - Ascending, task claim time from the oldest to the most recent, tasks with status READY (not yet claimed) first.
 * claimedAt desc - Descending, from the most recently claimed tasks to the oldest ones, tasks with status READY (not yet claimed) last.
 * completedAt asc - Ascending, task completion or cancelation time from the oldest to the most recent, not yet COMPLETED tasks first.
 * completedAt desc - Descending, from the most recently COMPLETED or CANCELED tasks to the oldest ones, not yet COMPLETED tasks last.
 * createdAt asc - Ascending, task creation time from the oldest to the most recent.
 * createdAt desc - Descending, from the most recently created tasks to the oldest ones.
 * lastChangedAt asc - Ascending, task last change time from the oldest to the most recent.
 * lastChangedAt desc - Descending, from the most recently changed tasks to the oldest ones.
 * dueDate asc - Ascending, tasks due date from the oldest to the most distant in future ones, tasks without due date first.
 * dueDate desc - Descending, tasks due date from the most distant in future to the oldest ones, tasks without due date last.
 * subject asc - Ascending, from A to Z case-sensitive.
 * subject desc - Descending, from Z to A case-sensitive.
 * description asc - Ascending, from A to Z case-sensitive, tasks without description first.
 * description desc - Descending, from Z to A case-sensitive, tasks without description last.
 * activityId asc - Ascending, from A to Z case-sensitive.
 * activityId desc - Descending, from Z to A case-sensitive.
 * id asc - Ascending, from A to Z case-sensitive.
 * id desc - Descending, from Z to A case-sensitive.
 * processor asc - Ascending, from A to Z case-sensitive, tasks without processor first.
 * processor desc - Descending, from Z to A case-sensitive, tasks without processor last.
 * workflowDefinitionId asc - Ascending, from A to Z case-sensitive.
 * workflowDefinitionId desc - Descending, from Z to A case-sensitive.
 * workflowInstanceId asc - Ascending, from A to Z case-sensitive.
 * workflowInstanceId desc - Descending, from Z to A case-sensitive.
 * priority asc - Ascending, tasks priority from lowest to highest.
 * priority desc - Descending, tasks priority from highest to lowest.
$workflowInstanceId = workflowInstanceId_example; // String | The workflow instance ID for which the user task instances are returned. The workflow instance ID is 36 characters long.
$workflowDefinitionId = workflowDefinitionId_example; // String | The workflow definition ID for which the user task instances are returned.
$processor = processor_example; // String | The processor of the user task instance.
$id = id_example; // String | The unique ID of the user task instance. The user task instance ID is 36 characters long.
$activityId = activityId_example; // String | The activityId of the user task instance. This field represents the ID of the user task definition.
$description = description_example; // String | The description of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter.
$subject = subject_example; // String | The subject of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter.
$createdAt = createdAt_example; // String | Time when the user task instance has been created.
Evaluated using the logical 'or' operator with the values of the 'createdFrom' and 'createdUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

$createdFrom = createdFrom_example; // String | The start time (inclusive) of the time range when the user task instance was created.
Must be less or equal to the value of the 'createdUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

$createdUpTo = createdUpTo_example; // String | The end time (inclusive) of the time range when the user task instance was created.
Must be greater or equal to the value of the 'createdFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

$claimedAt = claimedAt_example; // String | Time when the user task instance was claimed.
Evaluated using the logical 'or' operator with the values of the 'claimedFrom' and 'claimedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

$claimedFrom = claimedFrom_example; // String | The start time (inclusive) of the time range when the user task instance was claimed.
Must be less or equal to the value of the 'claimedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

$claimedUpTo = claimedUpTo_example; // String | The end time (inclusive) of the time range when the user task instance was claimed.
Must be greater or equal to the value of the 'claimedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

$completedAt = completedAt_example; // String | Time when the user task instance was COMPLETED or CANCELED.
Evaluated using the logical 'or' operator with the values of the 'completedFrom' and 'completedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

$completedFrom = completedFrom_example; // String | The start time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be less or equal to the value of the 'completedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

$completedUpTo = completedUpTo_example; // String | The end time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be greater or equal to the value of the 'completedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

$lastChangedAt = lastChangedAt_example; // String | Time when the user task instance has been changed for the last time.
Evaluated using the logical 'or' operator with the values of the 'lastChangedFrom' and 'lastChangedTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

$lastChangedFrom = lastChangedFrom_example; // String | The start time (inclusive) of the time range when the user task instance was changed for the last time.
Must be less or equal to the value of the 'lastChangedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

$lastChangedUpTo = lastChangedUpTo_example; // String | The end time (inclusive) of the time range when the user task instance was changed for the last time.
Must be greater or equal to the value of the 'lastChangedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

$dueDate = dueDate_example; // String | The due date of the user task instance.
Evaluated using the logical 'or' operator with the values of the 'dueDateFrom' and 'dueDateUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

$dueDateFrom = dueDateFrom_example; // String | The start time (inclusive) of the due date time range for the user task instance.
Must be less or equal to the value of the 'dueDateUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

$dueDateUpTo = dueDateUpTo_example; // String | The end time (inclusive) of the due date time range for the user task instance.
Must be greater or equal to the 'dueDateFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

$priority = priority_example; // String | The priority of the user task instance.
The values are case-insensitive.

$status = status_example; // String | The status of the user task instance.
The values are case-insensitive.

$recipientUsers = recipientUsers_example; // String | The users who must be among the recipient users of the user task instance. A user task instance has to match at least one of the recipient users specified.
Specify the users by repeating this parameter multiple times, with one user each.

$recipientGroups = recipientGroups_example; // String | The groups which must be among the recipient groups of the user task instance. A user task instance has to match at least one of the recipient groups specified.
Specify the groups by repeating this parameter multiple times, with one user each.

$containsText = containsText_example; // String | Text, which should be contained in at least one of the following fields of the user task instance:

 * subject
 * description
 * activityId
 * id
 * processor
 * workflowDefinitionId
 * workflowInstanceId

Performed filtering is case-insensitive. You must not use this parameter more than once.

$attributes.ExampleCustomAttribute = attributes.ExampleCustomAttribute_example; // String | Example of a parameter that filters task instances by the value of the custom task attribute with the ID 'ExampleCustomAttribute'.
You can specify parameters for other attributes in an analogous way.
If you specify a parameter several times, the logical operators apply as outlined in the overall description of this API.
If custom task attributes with different IDs are present in the URL, only tasks which contain all of them with the values specified will be returned as a response to the request.
If a query by custom task attributes matches too many task definitions, you have to limit the query further. Refer, for example, to parameter 'definitionId'.

$definitionId = definitionId_example; // String | The definition ID of the user task.
It consists of the ID of the task defined in the workflow definition (task definition ID) as well as the workflow definition ID delimited by an '@' sign.
For optimal performance, specify this parameter when searching for tasks by custom task attributes.
If the custom task attribute IDs from the query match more than 50 task definitions, you have to specify one or more task definition IDs when searching for tasks by custom task attributes.


try {
    $result = $api_instance->v1TaskInstancesGet($acceptLanguage, $$skip, $$top, $$inlinecount, $$expand, $$orderby, $workflowInstanceId, $workflowDefinitionId, $processor, $id, $activityId, $description, $subject, $createdAt, $createdFrom, $createdUpTo, $claimedAt, $claimedFrom, $claimedUpTo, $completedAt, $completedFrom, $completedUpTo, $lastChangedAt, $lastChangedFrom, $lastChangedUpTo, $dueDate, $dueDateFrom, $dueDateUpTo, $priority, $status, $recipientUsers, $recipientGroups, $containsText, $attributes.ExampleCustomAttribute, $definitionId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserTaskInstancesApi->v1TaskInstancesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserTaskInstancesApi;

# Configure HTTP basic authorization: BasicAuthentication
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::UserTaskInstancesApi->new();
my $acceptLanguage = acceptLanguage_example; # String | Provide a preferred language. If a translation is available, relevant texts are returned in this language.
my $$skip = 56; # Integer | The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter.
my $$top = 56; # Integer | The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter.
my $$inlinecount = $inlinecount_example; # String | Specify whether the total count of the task instances, which match the search criteria, should be returned as a value
of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file. To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once.
my $$expand = $expand_example; # String | You can request custom task attributes to become part of the task output by specifying the value 'attributes' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributes' field is not included into task output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where these attributes are present.

my $$orderby = $orderby_example; # String | The attribute and direction by which tasks are sorted. The sort attribute and direction are separated by a space.
The parameter value is case-sensitive. You can only specify one ordering parameter, which contains attribute and direction.
To stabilize the order of tasks the implicit second ordering parameter 'createdAt asc' is applied.

 * claimedAt asc - Ascending, task claim time from the oldest to the most recent, tasks with status READY (not yet claimed) first.
 * claimedAt desc - Descending, from the most recently claimed tasks to the oldest ones, tasks with status READY (not yet claimed) last.
 * completedAt asc - Ascending, task completion or cancelation time from the oldest to the most recent, not yet COMPLETED tasks first.
 * completedAt desc - Descending, from the most recently COMPLETED or CANCELED tasks to the oldest ones, not yet COMPLETED tasks last.
 * createdAt asc - Ascending, task creation time from the oldest to the most recent.
 * createdAt desc - Descending, from the most recently created tasks to the oldest ones.
 * lastChangedAt asc - Ascending, task last change time from the oldest to the most recent.
 * lastChangedAt desc - Descending, from the most recently changed tasks to the oldest ones.
 * dueDate asc - Ascending, tasks due date from the oldest to the most distant in future ones, tasks without due date first.
 * dueDate desc - Descending, tasks due date from the most distant in future to the oldest ones, tasks without due date last.
 * subject asc - Ascending, from A to Z case-sensitive.
 * subject desc - Descending, from Z to A case-sensitive.
 * description asc - Ascending, from A to Z case-sensitive, tasks without description first.
 * description desc - Descending, from Z to A case-sensitive, tasks without description last.
 * activityId asc - Ascending, from A to Z case-sensitive.
 * activityId desc - Descending, from Z to A case-sensitive.
 * id asc - Ascending, from A to Z case-sensitive.
 * id desc - Descending, from Z to A case-sensitive.
 * processor asc - Ascending, from A to Z case-sensitive, tasks without processor first.
 * processor desc - Descending, from Z to A case-sensitive, tasks without processor last.
 * workflowDefinitionId asc - Ascending, from A to Z case-sensitive.
 * workflowDefinitionId desc - Descending, from Z to A case-sensitive.
 * workflowInstanceId asc - Ascending, from A to Z case-sensitive.
 * workflowInstanceId desc - Descending, from Z to A case-sensitive.
 * priority asc - Ascending, tasks priority from lowest to highest.
 * priority desc - Descending, tasks priority from highest to lowest.
my $workflowInstanceId = workflowInstanceId_example; # String | The workflow instance ID for which the user task instances are returned. The workflow instance ID is 36 characters long.
my $workflowDefinitionId = workflowDefinitionId_example; # String | The workflow definition ID for which the user task instances are returned.
my $processor = processor_example; # String | The processor of the user task instance.
my $id = id_example; # String | The unique ID of the user task instance. The user task instance ID is 36 characters long.
my $activityId = activityId_example; # String | The activityId of the user task instance. This field represents the ID of the user task definition.
my $description = description_example; # String | The description of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter.
my $subject = subject_example; # String | The subject of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter.
my $createdAt = createdAt_example; # String | Time when the user task instance has been created.
Evaluated using the logical 'or' operator with the values of the 'createdFrom' and 'createdUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

my $createdFrom = createdFrom_example; # String | The start time (inclusive) of the time range when the user task instance was created.
Must be less or equal to the value of the 'createdUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

my $createdUpTo = createdUpTo_example; # String | The end time (inclusive) of the time range when the user task instance was created.
Must be greater or equal to the value of the 'createdFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

my $claimedAt = claimedAt_example; # String | Time when the user task instance was claimed.
Evaluated using the logical 'or' operator with the values of the 'claimedFrom' and 'claimedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

my $claimedFrom = claimedFrom_example; # String | The start time (inclusive) of the time range when the user task instance was claimed.
Must be less or equal to the value of the 'claimedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

my $claimedUpTo = claimedUpTo_example; # String | The end time (inclusive) of the time range when the user task instance was claimed.
Must be greater or equal to the value of the 'claimedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

my $completedAt = completedAt_example; # String | Time when the user task instance was COMPLETED or CANCELED.
Evaluated using the logical 'or' operator with the values of the 'completedFrom' and 'completedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

my $completedFrom = completedFrom_example; # String | The start time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be less or equal to the value of the 'completedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

my $completedUpTo = completedUpTo_example; # String | The end time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be greater or equal to the value of the 'completedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

my $lastChangedAt = lastChangedAt_example; # String | Time when the user task instance has been changed for the last time.
Evaluated using the logical 'or' operator with the values of the 'lastChangedFrom' and 'lastChangedTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

my $lastChangedFrom = lastChangedFrom_example; # String | The start time (inclusive) of the time range when the user task instance was changed for the last time.
Must be less or equal to the value of the 'lastChangedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

my $lastChangedUpTo = lastChangedUpTo_example; # String | The end time (inclusive) of the time range when the user task instance was changed for the last time.
Must be greater or equal to the value of the 'lastChangedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

my $dueDate = dueDate_example; # String | The due date of the user task instance.
Evaluated using the logical 'or' operator with the values of the 'dueDateFrom' and 'dueDateUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

my $dueDateFrom = dueDateFrom_example; # String | The start time (inclusive) of the due date time range for the user task instance.
Must be less or equal to the value of the 'dueDateUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

my $dueDateUpTo = dueDateUpTo_example; # String | The end time (inclusive) of the due date time range for the user task instance.
Must be greater or equal to the 'dueDateFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS

my $priority = priority_example; # String | The priority of the user task instance.
The values are case-insensitive.

my $status = status_example; # String | The status of the user task instance.
The values are case-insensitive.

my $recipientUsers = recipientUsers_example; # String | The users who must be among the recipient users of the user task instance. A user task instance has to match at least one of the recipient users specified.
Specify the users by repeating this parameter multiple times, with one user each.

my $recipientGroups = recipientGroups_example; # String | The groups which must be among the recipient groups of the user task instance. A user task instance has to match at least one of the recipient groups specified.
Specify the groups by repeating this parameter multiple times, with one user each.

my $containsText = containsText_example; # String | Text, which should be contained in at least one of the following fields of the user task instance:

 * subject
 * description
 * activityId
 * id
 * processor
 * workflowDefinitionId
 * workflowInstanceId

Performed filtering is case-insensitive. You must not use this parameter more than once.

my $attributes.ExampleCustomAttribute = attributes.ExampleCustomAttribute_example; # String | Example of a parameter that filters task instances by the value of the custom task attribute with the ID 'ExampleCustomAttribute'.
You can specify parameters for other attributes in an analogous way.
If you specify a parameter several times, the logical operators apply as outlined in the overall description of this API.
If custom task attributes with different IDs are present in the URL, only tasks which contain all of them with the values specified will be returned as a response to the request.
If a query by custom task attributes matches too many task definitions, you have to limit the query further. Refer, for example, to parameter 'definitionId'.

my $definitionId = definitionId_example; # String | The definition ID of the user task.
It consists of the ID of the task defined in the workflow definition (task definition ID) as well as the workflow definition ID delimited by an '@' sign.
For optimal performance, specify this parameter when searching for tasks by custom task attributes.
If the custom task attribute IDs from the query match more than 50 task definitions, you have to specify one or more task definition IDs when searching for tasks by custom task attributes.


eval { 
    my $result = $api_instance->v1TaskInstancesGet(acceptLanguage => $acceptLanguage, $skip => $$skip, $top => $$top, $inlinecount => $$inlinecount, $expand => $$expand, $orderby => $$orderby, workflowInstanceId => $workflowInstanceId, workflowDefinitionId => $workflowDefinitionId, processor => $processor, id => $id, activityId => $activityId, description => $description, subject => $subject, createdAt => $createdAt, createdFrom => $createdFrom, createdUpTo => $createdUpTo, claimedAt => $claimedAt, claimedFrom => $claimedFrom, claimedUpTo => $claimedUpTo, completedAt => $completedAt, completedFrom => $completedFrom, completedUpTo => $completedUpTo, lastChangedAt => $lastChangedAt, lastChangedFrom => $lastChangedFrom, lastChangedUpTo => $lastChangedUpTo, dueDate => $dueDate, dueDateFrom => $dueDateFrom, dueDateUpTo => $dueDateUpTo, priority => $priority, status => $status, recipientUsers => $recipientUsers, recipientGroups => $recipientGroups, containsText => $containsText, attributes.ExampleCustomAttribute => $attributes.ExampleCustomAttribute, definitionId => $definitionId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserTaskInstancesApi->v1TaskInstancesGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuthentication
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.UserTaskInstancesApi()
acceptLanguage = acceptLanguage_example # String | Provide a preferred language. If a translation is available, relevant texts are returned in this language. (optional)
$skip = 56 # Integer | The number of records you want to skip from the beginning.
You can skip at most 4000 records. To indicate a result range that starts, for example, at 1001, combine the $skip with the $top parameter.
If not specified, no records are skipped. You can use this parameter only once.
Refer also to the $top parameter. (optional) (default to 0)
$top = 56 # Integer | The number of records you want to show.
You can get at most 1000 records per API call. To indicate a result range that starts, for example, at 1001, combine the $top with the $skip parameter.
If not specified, 100 records are returned. You can use this parameter only once.
Refer also to the $skip parameter. (optional) (default to 100)
$inlinecount = $inlinecount_example # String | Specify whether the total count of the task instances, which match the search criteria, should be returned as a value
of the X-Total-Count response header. Note that this header is not approved by default in the Neo HTML5 runtime and must be added to the 'headerWhitelist' attribute of the neo-app.json file. To enable the header, use the 'allpages' setting. To disable the header, use the 'none' setting.
The values are case-sensitive. You can use this parameter only once. (optional) (default to none)
$expand = $expand_example # String | You can request custom task attributes to become part of the task output by specifying the value 'attributes' for the '$expand' parameter.
Otherwise, if the '$expand' parameter is not specified, the 'attributes' field is not included into task output. Note that labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where these attributes are present.
 (optional)
$orderby = $orderby_example # String | The attribute and direction by which tasks are sorted. The sort attribute and direction are separated by a space.
The parameter value is case-sensitive. You can only specify one ordering parameter, which contains attribute and direction.
To stabilize the order of tasks the implicit second ordering parameter 'createdAt asc' is applied.

 * claimedAt asc - Ascending, task claim time from the oldest to the most recent, tasks with status READY (not yet claimed) first.
 * claimedAt desc - Descending, from the most recently claimed tasks to the oldest ones, tasks with status READY (not yet claimed) last.
 * completedAt asc - Ascending, task completion or cancelation time from the oldest to the most recent, not yet COMPLETED tasks first.
 * completedAt desc - Descending, from the most recently COMPLETED or CANCELED tasks to the oldest ones, not yet COMPLETED tasks last.
 * createdAt asc - Ascending, task creation time from the oldest to the most recent.
 * createdAt desc - Descending, from the most recently created tasks to the oldest ones.
 * lastChangedAt asc - Ascending, task last change time from the oldest to the most recent.
 * lastChangedAt desc - Descending, from the most recently changed tasks to the oldest ones.
 * dueDate asc - Ascending, tasks due date from the oldest to the most distant in future ones, tasks without due date first.
 * dueDate desc - Descending, tasks due date from the most distant in future to the oldest ones, tasks without due date last.
 * subject asc - Ascending, from A to Z case-sensitive.
 * subject desc - Descending, from Z to A case-sensitive.
 * description asc - Ascending, from A to Z case-sensitive, tasks without description first.
 * description desc - Descending, from Z to A case-sensitive, tasks without description last.
 * activityId asc - Ascending, from A to Z case-sensitive.
 * activityId desc - Descending, from Z to A case-sensitive.
 * id asc - Ascending, from A to Z case-sensitive.
 * id desc - Descending, from Z to A case-sensitive.
 * processor asc - Ascending, from A to Z case-sensitive, tasks without processor first.
 * processor desc - Descending, from Z to A case-sensitive, tasks without processor last.
 * workflowDefinitionId asc - Ascending, from A to Z case-sensitive.
 * workflowDefinitionId desc - Descending, from Z to A case-sensitive.
 * workflowInstanceId asc - Ascending, from A to Z case-sensitive.
 * workflowInstanceId desc - Descending, from Z to A case-sensitive.
 * priority asc - Ascending, tasks priority from lowest to highest.
 * priority desc - Descending, tasks priority from highest to lowest. (optional) (default to createdAt asc)
workflowInstanceId = workflowInstanceId_example # String | The workflow instance ID for which the user task instances are returned. The workflow instance ID is 36 characters long. (optional)
workflowDefinitionId = workflowDefinitionId_example # String | The workflow definition ID for which the user task instances are returned. (optional)
processor = processor_example # String | The processor of the user task instance. (optional)
id = id_example # String | The unique ID of the user task instance. The user task instance ID is 36 characters long. (optional)
activityId = activityId_example # String | The activityId of the user task instance. This field represents the ID of the user task definition. (optional)
description = description_example # String | The description of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter. (optional)
subject = subject_example # String | The subject of the user task instance in UTF-8 encoding. You must not specify texts that contain commas with this parameter. (optional)
createdAt = createdAt_example # String | Time when the user task instance has been created.
Evaluated using the logical 'or' operator with the values of the 'createdFrom' and 'createdUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
createdFrom = createdFrom_example # String | The start time (inclusive) of the time range when the user task instance was created.
Must be less or equal to the value of the 'createdUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
createdUpTo = createdUpTo_example # String | The end time (inclusive) of the time range when the user task instance was created.
Must be greater or equal to the value of the 'createdFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'createdAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
claimedAt = claimedAt_example # String | Time when the user task instance was claimed.
Evaluated using the logical 'or' operator with the values of the 'claimedFrom' and 'claimedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
claimedFrom = claimedFrom_example # String | The start time (inclusive) of the time range when the user task instance was claimed.
Must be less or equal to the value of the 'claimedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
claimedUpTo = claimedUpTo_example # String | The end time (inclusive) of the time range when the user task instance was claimed.
Must be greater or equal to the value of the 'claimedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'claimedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
completedAt = completedAt_example # String | Time when the user task instance was COMPLETED or CANCELED.
Evaluated using the logical 'or' operator with the values of the 'completedFrom' and 'completedUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
completedFrom = completedFrom_example # String | The start time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be less or equal to the value of the 'completedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
completedUpTo = completedUpTo_example # String | The end time (inclusive) of the time range when the user task instance was COMPLETED or CANCELED.
Must be greater or equal to the value of the 'completedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'completedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
lastChangedAt = lastChangedAt_example # String | Time when the user task instance has been changed for the last time.
Evaluated using the logical 'or' operator with the values of the 'lastChangedFrom' and 'lastChangedTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
lastChangedFrom = lastChangedFrom_example # String | The start time (inclusive) of the time range when the user task instance was changed for the last time.
Must be less or equal to the value of the 'lastChangedUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
lastChangedUpTo = lastChangedUpTo_example # String | The end time (inclusive) of the time range when the user task instance was changed for the last time.
Must be greater or equal to the value of the 'lastChangedFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'lastChangedAt' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
dueDate = dueDate_example # String | The due date of the user task instance.
Evaluated using the logical 'or' operator with the values of the 'dueDateFrom' and 'dueDateUpTo' parameters if they are specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
dueDateFrom = dueDateFrom_example # String | The start time (inclusive) of the due date time range for the user task instance.
Must be less or equal to the value of the 'dueDateUpTo' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
dueDateUpTo = dueDateUpTo_example # String | The end time (inclusive) of the due date time range for the user task instance.
Must be greater or equal to the 'dueDateFrom' parameter if the latter is specified.
Evaluated using the logical 'or' operator with the value of the 'dueDate' parameter if the latter is specified.

Supports two date formats:
1. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
2. yyyyMMddHHmmss.SSS
 (optional)
priority = priority_example # String | The priority of the user task instance.
The values are case-insensitive.
 (optional)
status = status_example # String | The status of the user task instance.
The values are case-insensitive.
 (optional)
recipientUsers = recipientUsers_example # String | The users who must be among the recipient users of the user task instance. A user task instance has to match at least one of the recipient users specified.
Specify the users by repeating this parameter multiple times, with one user each.
 (optional)
recipientGroups = recipientGroups_example # String | The groups which must be among the recipient groups of the user task instance. A user task instance has to match at least one of the recipient groups specified.
Specify the groups by repeating this parameter multiple times, with one user each.
 (optional)
containsText = containsText_example # String | Text, which should be contained in at least one of the following fields of the user task instance:

 * subject
 * description
 * activityId
 * id
 * processor
 * workflowDefinitionId
 * workflowInstanceId

Performed filtering is case-insensitive. You must not use this parameter more than once.
 (optional)
attributes.ExampleCustomAttribute = attributes.ExampleCustomAttribute_example # String | Example of a parameter that filters task instances by the value of the custom task attribute with the ID 'ExampleCustomAttribute'.
You can specify parameters for other attributes in an analogous way.
If you specify a parameter several times, the logical operators apply as outlined in the overall description of this API.
If custom task attributes with different IDs are present in the URL, only tasks which contain all of them with the values specified will be returned as a response to the request.
If a query by custom task attributes matches too many task definitions, you have to limit the query further. Refer, for example, to parameter 'definitionId'.
 (optional)
definitionId = definitionId_example # String | The definition ID of the user task.
It consists of the ID of the task defined in the workflow definition (task definition ID) as well as the workflow definition ID delimited by an '@' sign.
For optimal performance, specify this parameter when searching for tasks by custom task attributes.
If the custom task attribute IDs from the query match more than 50 task definitions, you have to specify one or more task definition IDs when searching for tasks by custom task attributes.
 (optional)

try: 
    # Retrieve instances by query parameters
    api_response = api_instance.v1TaskInstancesGet(acceptLanguage=acceptLanguage, $skip=$skip, $top=$top, $inlinecount=$inlinecount, $expand=$expand, $orderby=$orderby, workflowInstanceId=workflowInstanceId, workflowDefinitionId=workflowDefinitionId, processor=processor, id=id, activityId=activityId, description=description, subject=subject, createdAt=createdAt, createdFrom=createdFrom, createdUpTo=createdUpTo, claimedAt=claimedAt, claimedFrom=claimedFrom, claimedUpTo=claimedUpTo, completedAt=completedAt, completedFrom=completedFrom, completedUpTo=completedUpTo, lastChangedAt=lastChangedAt, lastChangedFrom=lastChangedFrom, lastChangedUpTo=lastChangedUpTo, dueDate=dueDate, dueDateFrom=dueDateFrom, dueDateUpTo=dueDateUpTo, priority=priority, status=status, recipientUsers=recipientUsers, recipientGroups=recipientGroups, containsText=containsText, attributes.ExampleCustomAttribute=attributes.ExampleCustomAttribute, definitionId=definitionId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserTaskInstancesApi->v1TaskInstancesGet: %s\n" % e)

Parameters

Header parameters
Name Description
Accept-Language
Query parameters
Name Description
$skip
$top
$inlinecount
$expand
$orderby
workflowInstanceId
workflowDefinitionId
processor
id
activityId
description
subject
createdAt
createdFrom
createdUpTo
claimedAt
claimedFrom
claimedUpTo
completedAt
completedFrom
completedUpTo
lastChangedAt
lastChangedFrom
lastChangedUpTo
dueDate
dueDateFrom
dueDateUpTo
priority
status
recipientUsers
recipientGroups
containsText
attributes.ExampleCustomAttribute
definitionId

Responses

Status: 200 - Returns a list of user task instances.

[{activityId=usertask1, claimedAt=2017-03-08T17:26:51.637Z, completedAt=2017-03-08T17:26:51.643Z, createdAt=2017-03-08T17:26:51.577Z, description=A very important task, id=1d8e6a7a-03f6-11e7-873d-00163e2ab1ae, priority=VERY_HIGH, dueDate=2017-03-09T19:48:30.281Z, processor=UserId1, recipientUsers=[], recipientGroups=[Admins, Managers], status=COMPLETED, subject=First Task, workflowDefinitionId=myfirstworkflow, workflowInstanceId=1d4f3e91-03f6-11e7-873d-00163e2ab1ae, applicationScope=own}, {activityId=usertask1, claimedAt=2017-03-08T17:26:51.637Z, completedAt=2017-03-08T17:26:51.643Z, createdAt=2017-03-08T17:26:51.577Z, description=A very important task, id=1d8e6a7a-03f6-11e7-873d-00163e2ab1ae, priority=VERY_HIGH, processor=UserId1, recipientUsers=[UserId1, UserId13], status=CANCELED, subject=First Task, workflowDefinitionId=myfirstworkflow, workflowInstanceId=1d4f3e91-03f6-11e7-873d-00163e2ab1ae, applicationScope=own}, {activityId=usertask2, createdAt=2017-03-08T17:26:51.675Z, description=An important task, id=a8a6c8ae-03f6-11e7-873d-00163e2ab1ae, priority=HIGH, dueDate=2017-03-10T12:00:21.382Z, recipientUsers=[UserId1], recipientGroups=[], status=READY, subject=Second Task, workflowDefinitionId=myfirstworkflow, workflowInstanceId=1d4f3e91-03f6-11e7-873d-00163e2ab1ae, definitionId=usertask1@myfirstworkflow, applicationScope=shared}, {activityId=usertask3, claimedAt=2017-03-09T07:26:51.675Z, createdAt=2017-03-08T17:26:51.675Z, description=A task that is already claimed, id=a8a6c8ae-13f6-11e7-873d-20163e2ab1ae, priority=MEDIUM, processor=UserId1, recipientUsers=[UserId1], recipientGroups=[Admins], status=RESERVED, subject=Second Task, workflowDefinitionId=myfirstworkflow, workflowInstanceId=1d4f3e91-03f6-11e7-873d-00163e2ab1ae, definitionId=usertask3@myfirstworkflow, applicationScope=shared}]

Status: 400 - Incorrect format or structure of the provided request body.

{error={code=bpm.workflowruntime.rest.content.format.invalid, message=Unable to parse the request content because it has an unexpected format or structure. The content has to be JSON and follow the documented data structure., logId=e329b2a4-cac7-44d7-b5c5-0494e6fbad5a}}

Status: 401 - Unauthorized. You have not provided valid authentication credentials to access the resource.

{error=unauthorized, error_description=Full authentication is required to access this resource.}

Status: 403 - Access forbidden. You have not the required permissions to access the resource.

{error={message=User does not have sufficient privileges.}}

Status: 404 - URL not found. Check whether the URL is correct and whether you refer to an existing task instance.

{error={code=bpm.workflowruntime.rest.task.not.found, message=Task not found, logId=d9abb62e-837b-465b-a77b-4821e21fc21d}}

Status: 429 - You have reached the usage limits that are configured for your tenant. You are performing too many requests or consume too many resources.

{error={code=bpm.workflowruntime.rate.limit.exceeded, message=Your tenant is performing too many requests.}}

Status: 500 - Internal server error. The operation you requested led to an error during execution.

{error={code=bpm.workflowruntime.rest.internal.server.error, message=Internal server error, logId=f29a5719-3342-4a4a-8a3d-5ddd5253159e}}

/v1/task-instances/{taskInstanceId}/attributes

Retrieves custom task attributes of a user task. Labels as well as the order of the custom task attributes in which they are returned, are taken from the latest versions of the workflow definitions where these attributes are present. Roles permitted to execute this operation: - Global roles: WorkflowViewer, WorkflowAdmin - Instance-specific roles: viewerUsers, viewerGroups, adminUsers, adminGroups [Prerequisite: You are assigned to the WorkflowParticipant global role.] - Task-specific roles: recipientUsers, recipientGroups [Prerequisite: You are assigned to the WorkflowParticipant global role.]


/v1/task-instances/{taskInstanceId}/attributes

Usage

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "https://sandbox.api.sap.com/workflow-service/rest/v1/task-instances/{taskInstanceId}/attributes"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserTaskInstancesApi;

import java.io.File;
import java.util.*;

public class UserTaskInstancesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BasicAuthentication
        HttpBasicAuth BasicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuthentication");
        BasicAuthentication.setUsername("YOUR USERNAME");
        BasicAuthentication.setPassword("YOUR PASSWORD");

        // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
        OAuth Oauth2_AuthorizationCode = (OAuth) defaultClient.getAuthentication("Oauth2_AuthorizationCode");
        Oauth2_AuthorizationCode.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
        OAuth Oauth2_ClientCredentials = (OAuth) defaultClient.getAuthentication("Oauth2_ClientCredentials");
        Oauth2_ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");

        UserTaskInstancesApi apiInstance = new UserTaskInstancesApi();
        String taskInstanceId = taskInstanceId_example; // String | The ID of the user task instance for which the custom task attributes should be retrieved. The ID is 36 characters long.
        String acceptLanguage = acceptLanguage_example; // String | Provide a preferred language. If a translation is available, relevant texts are returned in this language.
        try {
            array[CustomAttribute] result = apiInstance.v1TaskInstancesTaskInstanceIdAttributesGet(taskInstanceId, acceptLanguage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserTaskInstancesApi#v1TaskInstancesTaskInstanceIdAttributesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserTaskInstancesApi;

public class UserTaskInstancesApiExample {

    public static void main(String[] args) {
        UserTaskInstancesApi apiInstance = new UserTaskInstancesApi();
        String taskInstanceId = taskInstanceId_example; // String | The ID of the user task instance for which the custom task attributes should be retrieved. The ID is 36 characters long.
        String acceptLanguage = acceptLanguage_example; // String | Provide a preferred language. If a translation is available, relevant texts are returned in this language.
        try {
            array[CustomAttribute] result = apiInstance.v1TaskInstancesTaskInstanceIdAttributesGet(taskInstanceId, acceptLanguage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserTaskInstancesApi#v1TaskInstancesTaskInstanceIdAttributesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuthentication)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_AuthorizationCode)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_ClientCredentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *taskInstanceId = taskInstanceId_example; // The ID of the user task instance for which the custom task attributes should be retrieved. The ID is 36 characters long.
String *acceptLanguage = acceptLanguage_example; // Provide a preferred language. If a translation is available, relevant texts are returned in this language. (optional)

UserTaskInstancesApi *apiInstance = [[UserTaskInstancesApi alloc] init];

// Retrieve custom task attributes by task instance ID
[apiInstance v1TaskInstancesTaskInstanceIdAttributesGetWith:taskInstanceId
    acceptLanguage:acceptLanguage
              completionHandler: ^(array[CustomAttribute] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkflowApiForNeo = require('workflow_api_for_neo');
var defaultClient = WorkflowApiForNeo.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuthentication
var BasicAuthentication = defaultClient.authentications['BasicAuthentication'];
BasicAuthentication.username = 'YOUR USERNAME'
BasicAuthentication.password = 'YOUR PASSWORD'

// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
var Oauth2_AuthorizationCode = defaultClient.authentications['Oauth2_AuthorizationCode'];
Oauth2_AuthorizationCode.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
var Oauth2_ClientCredentials = defaultClient.authentications['Oauth2_ClientCredentials'];
Oauth2_ClientCredentials.accessToken = "YOUR ACCESS TOKEN"

var api = new WorkflowApiForNeo.UserTaskInstancesApi()

var taskInstanceId = taskInstanceId_example; // {String} The ID of the user task instance for which the custom task attributes should be retrieved. The ID is 36 characters long.

var opts = { 
  'acceptLanguage': acceptLanguage_example // {String} Provide a preferred language. If a translation is available, relevant texts are returned in this language.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1TaskInstancesTaskInstanceIdAttributesGet(taskInstanceId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1TaskInstancesTaskInstanceIdAttributesGetExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BasicAuthentication
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new UserTaskInstancesApi();
            var taskInstanceId = taskInstanceId_example;  // String | The ID of the user task instance for which the custom task attributes should be retrieved. The ID is 36 characters long.
            var acceptLanguage = acceptLanguage_example;  // String | Provide a preferred language. If a translation is available, relevant texts are returned in this language. (optional) 

            try
            {
                // Retrieve custom task attributes by task instance ID
                array[CustomAttribute] result = apiInstance.v1TaskInstancesTaskInstanceIdAttributesGet(taskInstanceId, acceptLanguage);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserTaskInstancesApi.v1TaskInstancesTaskInstanceIdAttributesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuthentication
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\UserTaskInstancesApi();
$taskInstanceId = taskInstanceId_example; // String | The ID of the user task instance for which the custom task attributes should be retrieved. The ID is 36 characters long.
$acceptLanguage = acceptLanguage_example; // String | Provide a preferred language. If a translation is available, relevant texts are returned in this language.

try {
    $result = $api_instance->v1TaskInstancesTaskInstanceIdAttributesGet($taskInstanceId, $acceptLanguage);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserTaskInstancesApi->v1TaskInstancesTaskInstanceIdAttributesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserTaskInstancesApi;

# Configure HTTP basic authorization: BasicAuthentication
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::UserTaskInstancesApi->new();
my $taskInstanceId = taskInstanceId_example; # String | The ID of the user task instance for which the custom task attributes should be retrieved. The ID is 36 characters long.
my $acceptLanguage = acceptLanguage_example; # String | Provide a preferred language. If a translation is available, relevant texts are returned in this language.

eval { 
    my $result = $api_instance->v1TaskInstancesTaskInstanceIdAttributesGet(taskInstanceId => $taskInstanceId, acceptLanguage => $acceptLanguage);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserTaskInstancesApi->v1TaskInstancesTaskInstanceIdAttributesGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuthentication
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.UserTaskInstancesApi()
taskInstanceId = taskInstanceId_example # String | The ID of the user task instance for which the custom task attributes should be retrieved. The ID is 36 characters long.
acceptLanguage = acceptLanguage_example # String | Provide a preferred language. If a translation is available, relevant texts are returned in this language. (optional)

try: 
    # Retrieve custom task attributes by task instance ID
    api_response = api_instance.v1TaskInstancesTaskInstanceIdAttributesGet(taskInstanceId, acceptLanguage=acceptLanguage)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserTaskInstancesApi->v1TaskInstancesTaskInstanceIdAttributesGet: %s\n" % e)

Parameters

Path parameters
Name Description
taskInstanceId*
Header parameters
Name Description
Accept-Language

Responses

Status: 200 - Returns the custom task attributes for the requested user task.

[{id=ExampleCustomAttribute, label=Example of custom attribute, value=PRO_247, type=string}, {id=Cur, label=Currency, value=EUR, type=string}]

Status: 401 - Unauthorized. You have not provided valid authentication credentials to access the resource.

{error=unauthorized, error_description=Full authentication is required to access this resource.}

Status: 403 - Access forbidden. You have not the required permissions to access the resource.

{error={message=User does not have sufficient privileges.}}

Status: 404 - URL not found. Check whether the URL is correct and whether you refer to an existing task instance.

{error={code=bpm.workflowruntime.rest.task.not.found, message=Task not found, logId=d9abb62e-837b-465b-a77b-4821e21fc21d}}

Status: 429 - You have reached the usage limits that are configured for your tenant. You are performing too many requests or consume too many resources.

{error={code=bpm.workflowruntime.rate.limit.exceeded, message=Your tenant is performing too many requests.}}

Status: 500 - Internal server error. The operation you requested led to an error during execution.

{error={code=bpm.workflowruntime.rest.internal.server.error, message=Internal server error, logId=f29a5719-3342-4a4a-8a3d-5ddd5253159e}}

/v1/task-instances/{taskInstanceId}/context

Retrieves the context of a user task. Roles permitted to execute this operation: - Global roles: WorkflowContextViewer, WorkflowContextAdmin - Instance-specific roles: contextViewerUsers, contextViewerGroups, contextAdminUsers, contextAdminGroups [Prerequisite: You are assigned to the WorkflowParticipant global role.] - Task-specific roles: recipientUsers, recipientGroups [Prerequisite: You are assigned to the WorkflowParticipant global role.]


/v1/task-instances/{taskInstanceId}/context

Usage

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "https://sandbox.api.sap.com/workflow-service/rest/v1/task-instances/{taskInstanceId}/context"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserTaskInstancesApi;

import java.io.File;
import java.util.*;

public class UserTaskInstancesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BasicAuthentication
        HttpBasicAuth BasicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuthentication");
        BasicAuthentication.setUsername("YOUR USERNAME");
        BasicAuthentication.setPassword("YOUR PASSWORD");

        // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
        OAuth Oauth2_AuthorizationCode = (OAuth) defaultClient.getAuthentication("Oauth2_AuthorizationCode");
        Oauth2_AuthorizationCode.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
        OAuth Oauth2_ClientCredentials = (OAuth) defaultClient.getAuthentication("Oauth2_ClientCredentials");
        Oauth2_ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");

        UserTaskInstancesApi apiInstance = new UserTaskInstancesApi();
        String taskInstanceId = taskInstanceId_example; // String | The ID of the user task for which the context should be retrieved. The ID is 36 characters long.
        try {
            Object result = apiInstance.v1TaskInstancesTaskInstanceIdContextGet(taskInstanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserTaskInstancesApi#v1TaskInstancesTaskInstanceIdContextGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserTaskInstancesApi;

public class UserTaskInstancesApiExample {

    public static void main(String[] args) {
        UserTaskInstancesApi apiInstance = new UserTaskInstancesApi();
        String taskInstanceId = taskInstanceId_example; // String | The ID of the user task for which the context should be retrieved. The ID is 36 characters long.
        try {
            Object result = apiInstance.v1TaskInstancesTaskInstanceIdContextGet(taskInstanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserTaskInstancesApi#v1TaskInstancesTaskInstanceIdContextGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuthentication)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_AuthorizationCode)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_ClientCredentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *taskInstanceId = taskInstanceId_example; // The ID of the user task for which the context should be retrieved. The ID is 36 characters long.

UserTaskInstancesApi *apiInstance = [[UserTaskInstancesApi alloc] init];

// Retrieve task context by ID
[apiInstance v1TaskInstancesTaskInstanceIdContextGetWith:taskInstanceId
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkflowApiForNeo = require('workflow_api_for_neo');
var defaultClient = WorkflowApiForNeo.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuthentication
var BasicAuthentication = defaultClient.authentications['BasicAuthentication'];
BasicAuthentication.username = 'YOUR USERNAME'
BasicAuthentication.password = 'YOUR PASSWORD'

// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
var Oauth2_AuthorizationCode = defaultClient.authentications['Oauth2_AuthorizationCode'];
Oauth2_AuthorizationCode.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
var Oauth2_ClientCredentials = defaultClient.authentications['Oauth2_ClientCredentials'];
Oauth2_ClientCredentials.accessToken = "YOUR ACCESS TOKEN"

var api = new WorkflowApiForNeo.UserTaskInstancesApi()

var taskInstanceId = taskInstanceId_example; // {String} The ID of the user task for which the context should be retrieved. The ID is 36 characters long.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1TaskInstancesTaskInstanceIdContextGet(taskInstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1TaskInstancesTaskInstanceIdContextGetExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BasicAuthentication
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new UserTaskInstancesApi();
            var taskInstanceId = taskInstanceId_example;  // String | The ID of the user task for which the context should be retrieved. The ID is 36 characters long.

            try
            {
                // Retrieve task context by ID
                Object result = apiInstance.v1TaskInstancesTaskInstanceIdContextGet(taskInstanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserTaskInstancesApi.v1TaskInstancesTaskInstanceIdContextGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuthentication
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\UserTaskInstancesApi();
$taskInstanceId = taskInstanceId_example; // String | The ID of the user task for which the context should be retrieved. The ID is 36 characters long.

try {
    $result = $api_instance->v1TaskInstancesTaskInstanceIdContextGet($taskInstanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserTaskInstancesApi->v1TaskInstancesTaskInstanceIdContextGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserTaskInstancesApi;

# Configure HTTP basic authorization: BasicAuthentication
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::UserTaskInstancesApi->new();
my $taskInstanceId = taskInstanceId_example; # String | The ID of the user task for which the context should be retrieved. The ID is 36 characters long.

eval { 
    my $result = $api_instance->v1TaskInstancesTaskInstanceIdContextGet(taskInstanceId => $taskInstanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserTaskInstancesApi->v1TaskInstancesTaskInstanceIdContextGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuthentication
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.UserTaskInstancesApi()
taskInstanceId = taskInstanceId_example # String | The ID of the user task for which the context should be retrieved. The ID is 36 characters long.

try: 
    # Retrieve task context by ID
    api_response = api_instance.v1TaskInstancesTaskInstanceIdContextGet(taskInstanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserTaskInstancesApi->v1TaskInstancesTaskInstanceIdContextGet: %s\n" % e)

Parameters

Path parameters
Name Description
taskInstanceId*

Responses

Status: 200 - Returns the context of the specified user task.

{firstname=John, lastname=Doe}

Status: 401 - Unauthorized. You have not provided valid authentication credentials to access the resource.

{error=unauthorized, error_description=Full authentication is required to access this resource.}

Status: 403 - Access forbidden. You have not the required permissions to access the resource.

{error={message=User does not have sufficient privileges.}}

Status: 404 - URL not found. Check whether the URL is correct and whether you refer to an existing task instance.

{error={code=bpm.workflowruntime.rest.task.not.found, message=Task not found, logId=d9abb62e-837b-465b-a77b-4821e21fc21d}}

Status: 429 - You have reached the usage limits that are configured for your tenant. You are performing too many requests or consume too many resources.

{error={code=bpm.workflowruntime.rate.limit.exceeded, message=Your tenant is performing too many requests.}}

Status: 500 - Internal server error. The operation you requested led to an error during execution.

{error={code=bpm.workflowruntime.rest.internal.server.error, message=Internal server error, logId=f29a5719-3342-4a4a-8a3d-5ddd5253159e}}

/v1/task-instances/{taskInstanceId}/form

Retrieves the form metadata of the given task instance. Roles permitted to execute this operation: - Global roles: WorkflowViewer, WorkflowAdmin - Instance-specific roles: viewerUsers, viewerGroups, adminUsers, adminGroups [Prerequisite: You are assigned to the WorkflowParticipant global role.]


/v1/task-instances/{taskInstanceId}/form

Usage

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "https://sandbox.api.sap.com/workflow-service/rest/v1/task-instances/{taskInstanceId}/form"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserTaskInstancesApi;

import java.io.File;
import java.util.*;

public class UserTaskInstancesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BasicAuthentication
        HttpBasicAuth BasicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuthentication");
        BasicAuthentication.setUsername("YOUR USERNAME");
        BasicAuthentication.setPassword("YOUR PASSWORD");

        // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
        OAuth Oauth2_AuthorizationCode = (OAuth) defaultClient.getAuthentication("Oauth2_AuthorizationCode");
        Oauth2_AuthorizationCode.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
        OAuth Oauth2_ClientCredentials = (OAuth) defaultClient.getAuthentication("Oauth2_ClientCredentials");
        Oauth2_ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");

        UserTaskInstancesApi apiInstance = new UserTaskInstancesApi();
        String taskInstanceId = taskInstanceId_example; // String | The ID of the user task instance for which the form metadata should be retrieved. The ID is 36 characters long.
        try {
            FormMetadata result = apiInstance.v1TaskInstancesTaskInstanceIdFormGet(taskInstanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserTaskInstancesApi#v1TaskInstancesTaskInstanceIdFormGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserTaskInstancesApi;

public class UserTaskInstancesApiExample {

    public static void main(String[] args) {
        UserTaskInstancesApi apiInstance = new UserTaskInstancesApi();
        String taskInstanceId = taskInstanceId_example; // String | The ID of the user task instance for which the form metadata should be retrieved. The ID is 36 characters long.
        try {
            FormMetadata result = apiInstance.v1TaskInstancesTaskInstanceIdFormGet(taskInstanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserTaskInstancesApi#v1TaskInstancesTaskInstanceIdFormGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuthentication)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_AuthorizationCode)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Configure OAuth2 access token for authorization: (authentication scheme: Oauth2_ClientCredentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

String *taskInstanceId = taskInstanceId_example; // The ID of the user task instance for which the form metadata should be retrieved. The ID is 36 characters long.

UserTaskInstancesApi *apiInstance = [[UserTaskInstancesApi alloc] init];

// Retrieve form metadata of the given task instance.
[apiInstance v1TaskInstancesTaskInstanceIdFormGetWith:taskInstanceId
              completionHandler: ^(FormMetadata output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var WorkflowApiForNeo = require('workflow_api_for_neo');
var defaultClient = WorkflowApiForNeo.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuthentication
var BasicAuthentication = defaultClient.authentications['BasicAuthentication'];
BasicAuthentication.username = 'YOUR USERNAME'
BasicAuthentication.password = 'YOUR PASSWORD'

// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
var Oauth2_AuthorizationCode = defaultClient.authentications['Oauth2_AuthorizationCode'];
Oauth2_AuthorizationCode.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
var Oauth2_ClientCredentials = defaultClient.authentications['Oauth2_ClientCredentials'];
Oauth2_ClientCredentials.accessToken = "YOUR ACCESS TOKEN"

var api = new WorkflowApiForNeo.UserTaskInstancesApi()

var taskInstanceId = taskInstanceId_example; // {String} The ID of the user task instance for which the form metadata should be retrieved. The ID is 36 characters long.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1TaskInstancesTaskInstanceIdFormGet(taskInstanceId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class v1TaskInstancesTaskInstanceIdFormGetExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BasicAuthentication
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new UserTaskInstancesApi();
            var taskInstanceId = taskInstanceId_example;  // String | The ID of the user task instance for which the form metadata should be retrieved. The ID is 36 characters long.

            try
            {
                // Retrieve form metadata of the given task instance.
                FormMetadata result = apiInstance.v1TaskInstancesTaskInstanceIdFormGet(taskInstanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserTaskInstancesApi.v1TaskInstancesTaskInstanceIdFormGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuthentication
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\Api\UserTaskInstancesApi();
$taskInstanceId = taskInstanceId_example; // String | The ID of the user task instance for which the form metadata should be retrieved. The ID is 36 characters long.

try {
    $result = $api_instance->v1TaskInstancesTaskInstanceIdFormGet($taskInstanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserTaskInstancesApi->v1TaskInstancesTaskInstanceIdFormGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserTaskInstancesApi;

# Configure HTTP basic authorization: BasicAuthentication
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::UserTaskInstancesApi->new();
my $taskInstanceId = taskInstanceId_example; # String | The ID of the user task instance for which the form metadata should be retrieved. The ID is 36 characters long.

eval { 
    my $result = $api_instance->v1TaskInstancesTaskInstanceIdFormGet(taskInstanceId => $taskInstanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserTaskInstancesApi->v1TaskInstancesTaskInstanceIdFormGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuthentication
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: Oauth2_AuthorizationCode
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: Oauth2_ClientCredentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.UserTaskInstancesApi()
taskInstanceId = taskInstanceId_example # String | The ID of the user task instance for which the form metadata should be retrieved. The ID is 36 characters long.

try: 
    # Retrieve form metadata of the given task instance.
    api_response = api_instance.v1TaskInstancesTaskInstanceIdFormGet(taskInstanceId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserTaskInstancesApi->v1TaskInstancesTaskInstanceIdFormGet: %s\n" % e)

Parameters

Path parameters
Name Description
taskInstanceId*