I am creating my own workitem list using the WCF K2 Service. I noticed when I call OpenWorkList I'm getting duplicate entries for one task, one being Open and the other being Allocated. I assume this is normal stuff behind the scenes. So I'm trying to filter the list by using the CriteriaFilter. I'd like only those that are Open and Available. I'm using the code below however I'm gett an Invalid cast .Net error. I don't see any examples out there for filtering on status. any ideas?
Criteria criteria = new Criteria()
{
Filter =
new[]{
new CriteriaFilter()
{
Field =
CriteriaField.WorklistItemStatus,
Comparison =
CriteriaComparison.Equal,
Value =
"Available"
}