Skip to main content


I’m trying to filter by a XML data field. When I setup the following filter I don’t get any results.



XML



<XmlDocument>
<Identifier Type="Type1">1234</Identifier>
</XmlDocument>


The XML Field name in my K2 process is named: "Associated Identifiers"

My code looks like the following




WorklistCriteria



 



c = new WorklistCriteria();



XElement



 



identifiersXML = new XElement("XmlDocument",
from i in
query.Identifiers
select new XElement("Identifier", new XAttribute("Type"
, i.IdentifierType.ToString()), i.Identifier));

c.AddFilterField(WCLogical.And, WCField.ProcessXml, "Associated Identifiers", WCCompare.Equal, identifiersXML.ToString());




Worklist



 



wFList = wFConn.OpenWorklist(c);

Any idea on why my filter won't bring back the correct values? Can I even filter on individual nodes within the XML?



Be the first to reply!

Reply