Returns a list of all processes that the specified user opened or owns.
Method
POST
URL
https://localhost/Flowtime/_vti_bin/Flowtime/UserInstancesService.svc/GetData
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
PageSize | integer | optional | Number of records returned on a page. |
PageNum | integer | optional | Number of the page to retrieve records for. |
ContextMenuId | string | optional | Name of menu for the item. |
IgnoreUserTime | string | optional | Engine time or user time. |
SortDirection | enum | optional | desc=1, asc=0 |
SortField | string | optional | Name of field by which to sort the returned processes. |
FilterExpression | object | optional | Expression by which to filter. |
WorkflowInstanceState | enum | required | open=0, closed=1 |
ViewType | enum | optional | creator=1, owner=2 |
Example Request
var request =
{"request":
{"PageSize":5,
"PageNum":1,
"ContextMenuId":"default",
"IgnoreUserTime":false,
"SortDirection":1,
"SortField":"InstanceId",
"FilterExpression":{},
"WorkflowInstanceState":0,
"ViewType":1
}
}
$.ajax({
type: "POST",
url: "http://server:port/_vti_bin/Flowtime/UserInstancesService.svc/GetData",
data: JSON.stringify(request),
dataType: "json",
contentType: "application/json; charset=utf-8",
headers: {
"uiculture": "en-GB",
"culture": "en-GB",
"X-SqXsrfToken": xsrf
},
success: function (data) {
alert(data)
},
error: function (error) {
console.log(error);
}
});Response Parameters
| Name | Type | Description |
|---|---|---|
CurrentRows | integer | Number of items returned. |
Items | array | List of items returned. Each item contains properties as defined in the config file, for example {WorkflowInstance:1 ,[etc.]}. |
TotalRows | integer | Number of total items in the system. |