Package org.imixs.workflow.office.util
Class WorkitemHelper
- java.lang.Object
-
- org.imixs.workflow.office.util.WorkitemHelper
-
public class WorkitemHelper extends Object
The WorkitemHelper provides methods to clone, compare and sort workitems.- Author:
- rsoika
-
-
Constructor Summary
Constructors Constructor Description WorkitemHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.imixs.workflow.ItemCollectionclone(org.imixs.workflow.ItemCollection aWorkitem)This method clones the given workItem with a minimum of attributes.static booleanmatches(org.imixs.workflow.ItemCollection workitem, String filter)This method tests if a given WorkItem matches a filter expression.
-
-
-
Method Detail
-
clone
public static org.imixs.workflow.ItemCollection clone(org.imixs.workflow.ItemCollection aWorkitem)
This method clones the given workItem with a minimum of attributes.- Parameters:
aWorkitem-- Returns:
-
matches
public static boolean matches(org.imixs.workflow.ItemCollection workitem, String filter)This method tests if a given WorkItem matches a filter expression. The expression is expected in a column separated list of reg expressions for Multiple properties. - e.g.:(txtWorkflowGroup:Invoice)($ProcessID:1...)- Parameters:
workitem- - workItem to be testedfilter- - combined regex to test different fields- Returns:
- - true if filter matches filter expression.
-
-