Genpact Cora Knowledge Center

Support

POST /ProcessesService.svc/GetData

Returns list of workflows to which the user has permission.

Method

POST

URL

https://localhost/Flowtime/_vti_bin/Flowtime/ProcessesService.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.
IgnoreUserTimebooleanoptionalEngine time or user time.
SortDirection0,1optionalSort by desc or asc.
SortFieldstringoptionalName of field by which to sort the returned instances.
CategoryIdguidoptionalFilter the list to display spaces in a certain category.

Example Request

var request = {"request":
{"PageSize":20,
"PageNum":1,
"ContextMenuId":"default",
"IgnoreUserTime":false,
"SortDirection":0,
"SortField":"WorkflowTemplateName",
"CategoryId":"00000000-0000-0000-0000-000000000000"}}

$.ajax({
type: 'POST',
url: "/_vti_bin/Flowtime/ProcessesService.svc/GetData",
contentType: "application/json; charset=utf-8",
dataType: "json",
data: JSON.stringify(request),
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.