/**
* Sends an AJAX Request go retrieve all assigned workflows
*/
Extras.getAllWorkflows = function(scriptToCall) {
if(typeof scriptToCall !== "string") {
scriptToCall = (tab == "assigned"? webscript : tasksDoneAPI);
}
Alfresco.util.Ajax.request(
{
url: Alfresco.constants.PROXY_URI + scriptToCall,
method: Alfresco.util.Ajax.GET,
responseContentType: Alfresco.util.Ajax.JSON,
successCallback:
{
fn: function(responce){
var workflows = responce.json.data;
YAHOO.util.Dom.get("list-items").innerHTML="";
workflows.sort(function(a,b){
return Extras.dateFromISO8601(b.workflowInstance.startDate) - Extras.dateFromISO8601(a.workflowInstance.startDate);
});
workflowsData = filteredData = workflows;
Extras.showAllWorkflows();
},
scope: this
},
failureCallback:
{
fn: function(responce){
alert(JSON.stringify(responce));
},
scope: this
}
});
};
The above code gives us all workflow tasks.. Due to large number of workflow tasks , this code is not loading onto the dashlet ,and the web-browser itself is hanging. any changes to be done so that loading happens efficeintly and fast... can we limit the result to 500 or any efficeint loading procedure .....any solution would be better.
The completed task produces a list which is scrollable.. due to large number .it is not loading .... can the results be limited to 50 and output page wise ??