Class LazyProcessInstanceDataRecord
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.datarecord.AbstractProcessInstanceDataRecord
-
- org.silverpeas.core.workflow.engine.datarecord.LazyProcessInstanceDataRecord
-
- All Implemented Interfaces:
Serializable
,DataRecord
public class LazyProcessInstanceDataRecord extends AbstractProcessInstanceDataRecord
A ProcessInstanceDataRecord groups in a single DataRecord all the data items of a ProcessInstance. The instance : instance instance.title instance.The model : model model.label model.peas-label The folder : The forms : form. form. .title form. . The actions : action. action. .label action. .date action. .actor The users : participant. - See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.workflow.engine.datarecord.AbstractProcessInstanceDataRecord
fields, instance, template
-
-
Constructor Summary
Constructors Constructor Description LazyProcessInstanceDataRecord(ProcessInstance instance, String role, String lang)
Builds the data record representation of a process instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Field
getField(int fieldIndex)
Returns the field at the index position in the record.Field
getField(String fieldName)
Returns the named field.String[]
getFieldNames()
String
getId()
Returns the data record id.protected ProcessInstanceTemplate
getTemplate(String role, String lang)
-
Methods inherited from class org.silverpeas.core.workflow.engine.datarecord.AbstractProcessInstanceDataRecord
getField, getLanguage, getResourceReference, getValues, isNew, setId, setLanguage
-
-
-
-
Constructor Detail
-
LazyProcessInstanceDataRecord
public LazyProcessInstanceDataRecord(ProcessInstance instance, String role, String lang) throws WorkflowException
Builds the data record representation of a process instance.- Throws:
WorkflowException
-
-
Method Detail
-
getTemplate
protected ProcessInstanceTemplate getTemplate(String role, String lang)
- Specified by:
getTemplate
in classAbstractProcessInstanceDataRecord
-
getId
public String getId()
Returns the data record id.- Specified by:
getId
in interfaceDataRecord
- Overrides:
getId
in classAbstractProcessInstanceDataRecord
-
getField
public Field getField(String fieldName) throws FormException
Returns the named field.- Specified by:
getField
in interfaceDataRecord
- Overrides:
getField
in classAbstractProcessInstanceDataRecord
- Throws:
FormException
- when the fieldName is unknown.
-
getField
public Field getField(int fieldIndex)
Returns the field at the index position in the record.- Specified by:
getField
in interfaceDataRecord
- Overrides:
getField
in classAbstractProcessInstanceDataRecord
-
getFieldNames
public String[] getFieldNames()
- Specified by:
getFieldNames
in interfaceDataRecord
- Overrides:
getFieldNames
in classAbstractProcessInstanceDataRecord
-
-