This article refers to legacy products, components or features. Therefore, the content in this article is offered "as is" and will no longer be updated. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.
When using a SourceCode.Workflow.Management.Criteria.WorklistCriteriaFilter in WorkflowManagementServer.GetWorklistItems(), the first Worklist item of the collection is not returned.
Error Scenario Steps
|Note: The steps below describe one scenario under which this error may occur. They are simplified and not all steps are shown or described.|
- In the K2 Designer for Visual Studio, design and deploy a K2 Process with a Client event
- Design a custom .NET application that accesses the client worklist through the K2 API
- Use the SourceCode.Workflow.Management.Criteria.WorklistCriteriaFilter in a WorkflowManagementServer.GetWorklistItems() statement. For example:
WorklistCriteriaFilter wlc = new WorklistCriteriaFilter();
wlc.AddRegularFilter(WorklistFields.Status, Comparison.Equals, 0);
k2WLItems = wfms.GetWorklistItems(wlc);
- Start 10 process instances so that there are 10 Worklist items shown in K2 Workspace
- Run the custom .NET application
- Only 9 of the 10 Worklist items are returned
The following error message relates to this issue:
- No error message. The first Worklist item of the collection is not returned (as seen by comparing the number of Worklist items returned in K2 Workspace versus the number returned by the filter).
This Hotfix is contained within the latest K2 blackpearl 0807 Update. Install the update package to resolve the error.
The latest K2 blackpearl 0807 Update is available as an independent installation package which can be found here: https://portal.k2.com/downloads/bp/default.aspx