Class WorkflowUtil


  • public class WorkflowUtil
    extends Object
    Author:
    silveryocha
    • Field Detail

      • PROCESS_XML_FILE_NAME

        public static final String PROCESS_XML_FILE_NAME
        The name of the parameter holding the process file name in a workflow application descriptor.
        See Also:
        Constant Field Values
    • Method Detail

      • getFieldComparable

        public static Comparable getFieldComparable​(Item[] items,
                                                    FieldTemplate fieldTemplate,
                                                    Field field,
                                                    String language)
        Gets the comparable of the field value from given context.
        Parameters:
        items - the items of a form.
        fieldTemplate - the field templates of a form.
        field - the aimed field.
        language - the language the formatting rules must take in charge.
        Returns:
        the comparable of the field.
      • formatFieldValueAsString

        public static String formatFieldValueAsString​(Item[] items,
                                                      FieldTemplate fieldTemplate,
                                                      Field field,
                                                      String language)
        Formats the field value as string from given context.
        Parameters:
        items - the items of a form.
        fieldTemplate - the field templates of a form.
        field - the aimed field.
        language - the language the formatting rules must take in charge.
        Returns:
        the formatted value.
      • getItemByName

        public static Item getItemByName​(Item[] items,
                                         String itemName)
        Gets form given array the item which has the given name.
        Parameters:
        items - the items array.
        itemName - the item name to get.
        Returns:
        Item instance if any corresponding, null otherwise.