Genpact Cora Knowledge Center

Support

POST /UserInstancesService.svc/GetData

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

NameTypeRequiredDescription
PageSizeintegeroptionalNumber of records returned on a page.
PageNumintegeroptionalNumber of the page to retrieve records for.
ContextMenuIdstringoptionalName of menu for the item.
IgnoreUserTimestringoptionalEngine time or user time.
SortDirectionenumoptionaldesc=1, asc=0 
SortFieldstringoptionalName of field by which to sort the returned processes.
FilterExpressionobjectoptionalExpression by which to filter.
WorkflowInstanceStateenumrequiredopen=0, closed=1
ViewTypeenumoptionalcreator=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

NameTypeDescription
CurrentRowsintegerNumber of items returned.
ItemsarrayList of items returned. Each item contains properties as defined in the config file, for example {WorkflowInstance:1 ,[etc.]}.
TotalRowsintegerNumber of total items in the system.