getWorkListItemsForGlobalData

Lists all work items associated with the specified case.

Required System Actions

readGlobalData

Usage

BPMWorklistService.getWorkListItemsForGlobalData(startPosition,numberOfItems,globalDataRef,wlSvcModel,callback)

Parameters

Parameter Type Description
startPosition String Position in the work item list (zero-based) from which to start the results list.
numberOfItems String Number of items from the work view to include in the results list.
globalDataRef String Case reference for which associated work items are to be returned.
wlSvcModel WorklistServiceModel object Data model to be used by the service request. The response populates wlSvcModel.templateData.workItems with the work items associated with the specified globalDataRef.
Note: wlSvcModeltemplateData.workItems is an array of type GetWorkListItemsForGlobalDataResponseType.
callback Function Callback function to handle success or failure results from the request.

Sample Usage

// Create a model with required properties
var model ={};
model.templateData = {};
var globalDataRef = "BDS-1-com.example.claimbom.Policy-3-0";  //case reference
var startPosition = "0"; // start index
var numberOfItems = "20"; // number of items to return
 
//Actual Service call
BPMWorklistService.getWorkListItemsForGlobalData(startPosition, numberOfItems, globalDataRef, model, {
     onSuccess: function (model) {
     console.log("Workitems for caseRef "+ globalDataRef+" are "+ model.templateData.workItems); //Service call assigns the work items to model.templateData.workItems
     }
});