Class ProcessInstanceDataRecord
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.datarecord.AbstractProcessInstanceDataRecord
-
- org.silverpeas.core.workflow.engine.datarecord.ProcessInstanceDataRecord
-
- All Implemented Interfaces:
Serializable
,DataRecord
public class ProcessInstanceDataRecord 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 ProcessInstanceDataRecord(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(String fieldName)
Returns the named field.Field
getField(String fieldName, int occurrence)
String[]
getFieldNames()
String
getId()
Returns the data record id.ResourceReference
getResourceReference()
protected ProcessInstanceTemplate
getTemplate(String role, String lang)
-
Methods inherited from class org.silverpeas.core.workflow.engine.datarecord.AbstractProcessInstanceDataRecord
getField, getLanguage, getValues, isNew, setId, setLanguage
-
-
-
-
Constructor Detail
-
ProcessInstanceDataRecord
public ProcessInstanceDataRecord(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) throws WorkflowException
- Specified by:
getTemplate
in classAbstractProcessInstanceDataRecord
- Throws:
WorkflowException
-
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(String fieldName, int occurrence)
- Specified by:
getField
in interfaceDataRecord
- Overrides:
getField
in classAbstractProcessInstanceDataRecord
-
getFieldNames
public String[] getFieldNames()
- Specified by:
getFieldNames
in interfaceDataRecord
- Overrides:
getFieldNames
in classAbstractProcessInstanceDataRecord
-
getResourceReference
public ResourceReference getResourceReference()
- Specified by:
getResourceReference
in interfaceDataRecord
- Overrides:
getResourceReference
in classAbstractProcessInstanceDataRecord
-
-