Interface Item
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ItemImpl
public interface Item extends Serializable
Interface describing a representation of the <item> element of a Process Model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addParameter(Parameter parameter)
Add a Parameter to the collectionParameter
createParameter()
Create an object implementing ParameterString
getDescription(String role, String language)
Get description in specific language for the given roleContextualDesignations
getDescriptions()
Get all the descriptionsString
getFormula()
Get formula to use if item must be computedMap<String,String>
getKeyValuePairs()
Gets the parameters as a dictionary of keys to values.String
getLabel(String role, String language)
Get label in specific language for the given roleContextualDesignations
getLabels()
Get all the labelsString
getMapTo()
Get the full user field name, to which this item is mapString
getName()
Get the name of this itemParameter
getParameter(String strName)
Get the parameter specified by nameString
getType()
Get the type of this itemboolean
isComputed()
Get value of computed attributeboolean
isReadonly()
Get value of readOnly attributeIterator<Parameter>
iterateParameter()
Return an Iterator over the parameters collectionvoid
removeParameter(String strName)
Remove the parameter specified by its namevoid
setComputed(boolean computed)
Set value of computed attributevoid
setFormula(String formula)
Set formula to use if item must be computedvoid
setMapTo(String mapTo)
Set the full user field name, to which this item is mapvoid
setName(String name)
Set the name of this itemvoid
setReadonly(boolean readonly)
Set value of readOnly attributevoid
setType(String type)
Set the type of this item
-
-
-
Method Detail
-
getName
String getName()
Get the name of this item- Returns:
- item's name
-
setName
void setName(String name)
Set the name of this item- Parameters:
name
- item 's name
-
getDescription
String getDescription(String role, String language)
Get description in specific language for the given role- Parameters:
language
- description's languagerole
- role for which the description is- Returns:
- wanted description as a String object. If description is not found, search description with given role and default language, if not found again, return the default description in given language, if not found again, return the default description in default language, if not found again, return empty string.
-
getDescriptions
ContextualDesignations getDescriptions()
Get all the descriptions- Returns:
- an object containing the collection of the descriptions
-
getLabel
String getLabel(String role, String language)
Get label in specific language for the given role- Parameters:
language
- label's languagerole
- role for which the label is- Returns:
- wanted label as a String object. If label is not found, search label with given role and default language, if not found again, return the default label in given language, if not found again, return the default label in default language, if not found again, return empty string.
-
getLabels
ContextualDesignations getLabels()
Get all the labels- Returns:
- an object containing the collection of the labels
-
isComputed
boolean isComputed()
Get value of computed attribute- Returns:
- true if item must be computed
-
setComputed
void setComputed(boolean computed)
Set value of computed attribute- Parameters:
computed
- true if item must be computed
-
getFormula
String getFormula()
Get formula to use if item must be computed- Returns:
- formula of type 'action.Validation.actor'
-
setFormula
void setFormula(String formula)
Set formula to use if item must be computed- Parameters:
formula
- formula of type 'action.Validation.actor'
-
isReadonly
boolean isReadonly()
Get value of readOnly attribute- Returns:
- true if item must be readonly
-
setReadonly
void setReadonly(boolean readonly)
Set value of readOnly attribute- Parameters:
readonly
- true if item must be readonly
-
getType
String getType()
Get the type of this item- Returns:
- item's type (text for text field)
-
setType
void setType(String type)
Set the type of this item- Parameters:
type
- item 's type (text for text field)
-
getMapTo
String getMapTo()
Get the full user field name, to which this item is map- Returns:
- full user field name
-
setMapTo
void setMapTo(String mapTo)
Set the full user field name, to which this item is map- Parameters:
mapTo
- full user field name
-
getParameter
Parameter getParameter(String strName)
Get the parameter specified by name- Parameters:
strName
- the parameter name- Returns:
- the parameters
-
createParameter
Parameter createParameter()
Create an object implementing Parameter- Returns:
- a new parameter.
-
addParameter
void addParameter(Parameter parameter)
Add a Parameter to the collection- Parameters:
parameter
- the parameter to add in this item.
-
iterateParameter
Iterator<Parameter> iterateParameter()
Return an Iterator over the parameters collection- Returns:
- an iterator over the parameters of this item.
-
removeParameter
void removeParameter(String strName) throws WorkflowException
Remove the parameter specified by its name- Parameters:
strName
- the name of the parameter- Throws:
WorkflowException
- when the parameter cannot be found
-
-