Class WorkflowUtil
- java.lang.Object
-
- org.silverpeas.core.workflow.util.WorkflowUtil
-
public class WorkflowUtil extends Object
- Author:
- silveryocha
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROCESS_XML_FILE_NAME
The name of the parameter holding the process file name in a workflow application descriptor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
formatFieldValueAsString(Item[] items, FieldTemplate fieldTemplate, Field field, String language)
Formats the field value as string from given context.static Comparable
getFieldComparable(Item[] items, FieldTemplate fieldTemplate, Field field, String language)
Gets the comparable of the field value from given context.static Item
getItemByName(Item[] items, String itemName)
Gets form given array the item which has the given name.
-
-
-
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.
-
-