Class WorkitemHelper


  • public class WorkitemHelper
    extends Object
    The WorkitemHelper provides methods to clone, compare and sort workitems.
    Author:
    rsoika
    • Constructor Detail

      • WorkitemHelper

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