Class ProcessInstanceRowTemplate
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.datarecord.ProcessInstanceRowTemplate
-
- All Implemented Interfaces:
Serializable
,RecordTemplate
,ProcessInstanceTemplate
public class ProcessInstanceRowTemplate extends Object implements ProcessInstanceTemplate
ProcessInstanceRowTemplate.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProcessInstanceRowTemplate(ProcessModel processModel, String role, String lang)
Builds the record template of the process instance rows.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Field[]
buildFieldsArray()
Builds a Field[] with the correct size().boolean
checkDataRecord(DataRecord record)
Returns true if the data record is built on this template.DataRecord
getEmptyRecord()
Throws an illegal call exception, since an empty DataRecord can't be built from this template.int
getFieldIndex(String fieldName)
Returns the Field index of the named field.String[]
getFieldNames()
Returns all the field names of the DataRecord built on this template.FieldTemplate
getFieldTemplate(int fieldIndex)
Returns the FieldTemplate at the given positionFieldTemplate
getFieldTemplate(String fieldName)
Returns the FieldTemplate of the named field.FieldTemplate[]
getFieldTemplates()
Returns all the field templates.
-
-
-
Constructor Detail
-
ProcessInstanceRowTemplate
public ProcessInstanceRowTemplate(ProcessModel processModel, String role, String lang)
Builds the record template of the process instance rows.
-
-
Method Detail
-
getFieldNames
public String[] getFieldNames()
Returns all the field names of the DataRecord built on this template.- Specified by:
getFieldNames
in interfaceRecordTemplate
-
getFieldTemplates
public FieldTemplate[] getFieldTemplates() throws FormException
Returns all the field templates.- Specified by:
getFieldTemplates
in interfaceRecordTemplate
- Throws:
FormException
-
getFieldTemplate
public FieldTemplate getFieldTemplate(String fieldName) throws FormException
Returns the FieldTemplate of the named field.- Specified by:
getFieldTemplate
in interfaceRecordTemplate
- Throws:
FormException
- if the field name is unknown.
-
getFieldTemplate
public FieldTemplate getFieldTemplate(int fieldIndex) throws FormException
Returns the FieldTemplate at the given position- Specified by:
getFieldTemplate
in interfaceProcessInstanceTemplate
- Throws:
FormException
-
getFieldIndex
public int getFieldIndex(String fieldName) throws FormException
Returns the Field index of the named field.- Specified by:
getFieldIndex
in interfaceRecordTemplate
- Throws:
FormException
- if the field name is unknown.
-
getEmptyRecord
public DataRecord getEmptyRecord() throws FormException
Throws an illegal call exception, since an empty DataRecord can't be built from this template.- Specified by:
getEmptyRecord
in interfaceRecordTemplate
- Throws:
FormException
-
checkDataRecord
public boolean checkDataRecord(DataRecord record)
Returns true if the data record is built on this template.- Specified by:
checkDataRecord
in interfaceRecordTemplate
-
buildFieldsArray
public Field[] buildFieldsArray()
Builds a Field[] with the correct size().- Specified by:
buildFieldsArray
in interfaceProcessInstanceTemplate
-
-