Skip to main content

I'm attempting to do a query to return processes running under the latest version by passing in a partial name. Below is part of a function called getprocessbyname that is intended to return the first procID matching a partial name that is the default process.


Commented out is the default which as tru, 1, or "1" will still return a SQL column not found isDefault.


Even with default commented out though (cause I can just loop and pick the right one) The query returns no matches even though the partial name is verified. In addition searching within the workspace does not seem to return proper contains or like results.


ProcessCriteriaFilter filter = new ProcessCriteriaFilter();
filter.AddRegularFilter(ProcessFields.ProcessFullName, Comparison.Like, name);
filter.AddRegularFilter(ProcessFields.Default, Comparison.Equals, true);
Processes os = workflowServer.GetProcesses(filter);

Any Ideas?

Be the first to reply!

Reply