Interface InstanceDataContainer
- All Superinterfaces:
AutoCloseable,Cloneable,Closeable,DataContainer,InputDataContainer,PluginDataContainer,Serializable,TypedCloneable<DataContainer>,UserAttributeContainer
An instance data container extends a normal
DataContainer and
allows to conveniently set the input parameters and retrieve the output
parameters of a process instance. Input parameters which are not set have an
value of Null. Output parameters may be Null so check before reading the
values.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longGenerated ID for serialisation. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetBoolean(String parameterName, boolean value) Sets the BOOLEAN value of the designated instance input parameter.voidSets the DATE value of the designated instance input parameter.voidSets the FLOAT value of the designated instance input parameter.voidsetInteger(String parameterName, long value) Sets the INTEGER value of the designated instance input parameter.voidSets the value of the designated instance input parameter to NULL, which means the value is undefined.voidSets the string value of the designated instance input parameter.voidSets the value of the designated instance input parameter of the process instance and the corresponding metadata which is the writing node and its current iteration.voidSets the URI value of the designated instance input parameter.Methods inherited from interface de.aristaflow.adept2.model.datamanagement.DataContainer
clone, getInstanceID, getLastSavepoint, getNodeID, getNodeIteration, getSavepoints, getUnsavedIgnoredParameters, getUnsavedSavepoints, getUnsavedSessionState, getUnsavedTypes, getUnsavedValues, ignoredValue, ignoreValue, isReadOnly, restoreSessionState, savedSavepoints, setSavepoint, storeBoolean, storeDate, storedBoolean, storedDate, storedFloat, storedInteger, storedString, storedUDT, storedURI, storeFloat, storeInteger, storeSessionState, storeString, storeUDT, storeURIMethods inherited from interface de.aristaflow.adept2.model.datamanagement.InputDataContainer
isNull, retrieveBoolean, retrieveDate, retrieveFloat, retrieveInteger, retrieveString, retrieveUDT, retrieveURIMethods inherited from interface de.aristaflow.adept2.model.common.PluginDataContainer
getPluginData, getPluginDatas, getSupportedPluginsMethods inherited from interface de.aristaflow.adept2.model.common.UserAttributeContainer
getUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValue
-
Field Details
-
serialVersionUID
static final long serialVersionUIDGenerated ID for serialisation.- See Also:
-
-
Method Details
-
setNull
Sets the value of the designated instance input parameter to NULL, which means the value is undefined.- Parameters:
parameterName- The name of the instance input parameter to be set to null.- Throws:
NoSuchParameterException- If the instance input parameter of the designated name does not exist, aNoSuchParameterExceptionwill be thrown.
-
setInteger
void setInteger(String parameterName, long value) throws InvalidDataTypeException, NoSuchParameterException Sets the INTEGER value of the designated instance input parameter.- Parameters:
parameterName- The name of the instance input parameter to be set.value- The value as Java-typelongof the instance input parameter of ADEPT2-type INTEGER.- Throws:
InvalidDataTypeException- If the designated instance input parameter is not of type INTEGER, anInvalidDataTypeExceptionwill be raised.NoSuchParameterException- If the instance input parameter of the designated name does not exist, aNoSuchParameterExceptionwill be thrown.- See Also:
-
setFloat
void setFloat(String parameterName, double value) throws InvalidDataTypeException, NoSuchParameterException Sets the FLOAT value of the designated instance input parameter.- Parameters:
parameterName- The name of the instance input parameter to be set.value- The value as Java-typedoubleof the instance input parameter of ADEPT2-type FLOAT.- Throws:
InvalidDataTypeException- If the designated instance input parameter is not of type FLOAT, anInvalidDataTypeExceptionwill be raised.NoSuchParameterException- If the parameter of the designated name does not exist, aNoSuchParameterExceptionwill be thrown.- See Also:
-
setBoolean
void setBoolean(String parameterName, boolean value) throws InvalidDataTypeException, NoSuchParameterException Sets the BOOLEAN value of the designated instance input parameter.- Parameters:
parameterName- The name of the instance input parameter to be set.value- The value as Java-typebooleanof the instance input parameter of ADEPT2-type BOOLEAN.- Throws:
InvalidDataTypeException- If the designated instance input parameter is not of type BOOLEAN, anInvalidDataTypeExceptionwill be raised.NoSuchParameterException- If the instance input parameter of the designated name does not exist, aNoSuchParameterExceptionwill be thrown.- See Also:
-
setString
void setString(String parameterName, String value) throws InvalidDataTypeException, NoSuchParameterException Sets the string value of the designated instance input parameter.- Parameters:
parameterName- The name of the instance input parameter to be set.value- The value as Java-typeStringof the instance input parameter of ADEPT2-type STRING.- Throws:
InvalidDataTypeException- If the designated instance input parameter is not of type STRING, anInvalidDataTypeExceptionwill be raised.NoSuchParameterException- If the instance input parameter of the designated name does not exist, aNoSuchParameterExceptionwill be thrown.- See Also:
-
setDate
void setDate(String parameterName, Date value) throws InvalidDataTypeException, NoSuchParameterException Sets the DATE value of the designated instance input parameter.- Parameters:
parameterName- The name of the instance input parameter to be set.value- The value as Java-typejava.util.Dateof the instance input parameter of ADEPT2-type DATE.- Throws:
InvalidDataTypeException- If the designated instance input parameter is not of type DATE, anInvalidDataTypeExceptionwill be raised.NoSuchParameterException- If the instance input parameter of the designated name does not exist, aNoSuchParameterExceptionwill be thrown.- See Also:
-
setURI
void setURI(String parameterName, URI value) throws InvalidDataTypeException, NoSuchParameterException Sets the URI value of the designated instance input parameter.- Parameters:
parameterName- The name of the instance input parameter to be set.value- The value as Java-typejava.net.URIof the instance input parameter of ADEPT2-type URI.- Throws:
InvalidDataTypeException- If the designated parameter is not of type URI, anInvalidDataTypeExceptionwill be raised.NoSuchParameterException- If the parameter of the designated name does not exist, aNoSuchParameterExceptionwill be thrown.- See Also:
-
setUDT
void setUDT(String parameterName, UDTValue value) throws InvalidDataTypeException, NoSuchParameterException Sets the value of the designated instance input parameter of the process instance and the corresponding metadata which is the writing node and its current iteration.- Parameters:
parameterName- The name of the instance input parameter to be read.value- The value of the instance input parameter of ADEPT2-type USERDEFINED. The caller is responsible for closing.- Throws:
InvalidDataTypeException- If the designated instance input parameter is not of type USERDEFINED, anInvalidDataTypeExceptionwill be raised.NoSuchParameterException- If the instance input parameter of the designated name does not exist, aNoSuchParameterExceptionwill be thrown.- See Also:
-