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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.imixs.workflow.ItemCollection
    clone(org.imixs.workflow.ItemCollection aWorkitem)
    This method clones the given workItem with a minimum of attributes.
    static boolean
    matches(org.imixs.workflow.ItemCollection workitem, String filter)
    This method tests if a given WorkItem matches a filter expression.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WorkitemHelper

      public WorkitemHelper()
  • Method Details

    • 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 tested
      filter - - combined regex to test different fields
      Returns:
      - true if filter matches filter expression.