|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.workflow.engine.ProcessData
The ProcessData
represents data used by execution objects.
It supports methods to retrieve and set values, and query properties
(elements) of the object. It also contains a method to initialize the
process data based in the process data of a process object as well update
the process data of a process object. The order in which the data elements
occur in the process data is relevant.
This class represents a way to create attributes dynamically, without the need to model them beforehand.
Use the newProcessData
static factory method(s), not the
ProcessData
constructor, to construct instances of this
class. Instances must be constructed using the static factory(s), in
order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private WfVariable[] |
variables
|
private static boolean |
VERBOSE
|
Constructor Summary | |
ProcessData()
|
Method Summary | |
void |
checkDataMissing(String exec_obj_name)
Throws a DataMissingException variable if a doesn't have a value (is null); nothing happens otherwise. |
ProcessData |
copy()
Produces a copy of the ProcessData object. |
ClassInfo |
getClassInfo()
Returns the ClassInfo object for this class. |
String |
getConceptualClassname()
Deprecated. |
String[] |
getDisplayNames(Locale locale)
Returns a list of the displayNames in the process data object for the specified locale. |
String[] |
getNames()
Returns a list of the names in the process data object. |
Object[] |
getObjects()
Returns an array of objects containing the values of the ProcessData object. |
Object |
getValue(String name)
Returns the value corresponding to the variable whose name is passed as argument. |
Object |
getValueObject(String name)
|
WfVariable |
getVariable(String name)
|
Class |
getVariableClass(String name)
Returns the class of the variable given its name. |
WfVariable[] |
getVariableList()
Returns an array containing the variables of the ProcessData object. |
protected void |
initialize(ProcessDataInfo data_info)
Supports initialization, following construction of an instance. |
boolean |
isVariable(String name)
Returns true if the name passed as argument is the name of a property, false otherwise. |
static ProcessData |
newProcessData(ProcessDataInfo data_info)
Constructs a process data object from the ProcessDataInfo object passed as argument.. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
boolean |
readValues(ProcessData input,
WfVariableMap variable_map)
Initializes values in the process data object. |
protected boolean |
readVersion(ProcessData thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
reset(ProcessDataInfo data_info)
Resets the values to the object. |
void |
setValue(String name,
Object value)
Sets the value corresponding to the variable whose name is passed as argument. |
void |
setValues(Object[] valueArray)
Sets the values of the current object from the Object array passed as argument. |
void |
setVariables(WfVariable[] vars)
|
String |
toString()
Returns the conceptual (modeled) name for the class. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
boolean |
writeValues(ProcessData output,
WfVariableMap variable_map)
Updates values in the context of a process. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private WfVariable[] variables
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final boolean VERBOSE
Constructor Detail |
public ProcessData()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(ProcessData thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String toString()
public ClassInfo getClassInfo() throws WTIntrospectionException
getClassInfo
in interface NetFactor
WTIntrospectionException
public Object getValue(String name)
name
-
public void setValue(String name, Object value) throws InvalidDataException
name
- value
-
InvalidDataException
public String[] getNames()
public String[] getDisplayNames(Locale locale)
locale
-
public boolean readValues(ProcessData input, WfVariableMap variable_map) throws WTException
input
- variable_map
-
WTException
public boolean writeValues(ProcessData output, WfVariableMap variable_map) throws WTException
output
- variable_map
-
WTException
public boolean isVariable(String name)
name
-
public static ProcessData newProcessData(ProcessDataInfo data_info) throws WTException
data_info
-
WTException
protected void initialize(ProcessDataInfo data_info) throws WTException
data_info
-
WTException
public Object[] getObjects()
public Class getVariableClass(String name)
name
-
public void setValues(Object[] valueArray) throws InvalidDataException
valueArray
-
InvalidDataException
public WfVariable[] getVariableList()
public void reset(ProcessDataInfo data_info) throws InvalidVariableInfoException
data_info
-
InvalidVariableInfoException
public ProcessData copy() throws WTException
WTException
public void checkDataMissing(String exec_obj_name) throws DataMissingException
exec_obj_name
-
DataMissingException
public WfVariable getVariable(String name)
public Object getValueObject(String name)
public void setVariables(WfVariable[] vars)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |