public interface InputDataContainer extends java.io.Serializable, UserAttributeContainer, PluginDataContainer
ProcessAwareAccess but with
less information. When using DataContainer only the name of the corresponding
parameter and a session token is necessary since all other information
(instance, data element, agent,...) is already provided when retrieving the
container. Implementations of this interface may not store an Instance internally since a process instance must be accessible by other components. Instead, all needed information has to be encapsulated in the container. The instance may be provided, for instance, in the constructor, but the reference to it has to be released afterwards.
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID
Generated ID for serialisation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNull(SessionToken session,
java.lang.String parameterName)
Returns whether the value of the designated input parameter is NULL which
means the data element has not been written or has been consumed yet or has
been explicitly set to NULL by a previous application.
|
boolean |
retrieveBoolean(SessionToken session,
java.lang.String parameterName)
Retrieves the boolean value of the designated input parameter of type
BOOLEAN.
|
java.util.Date |
retrieveDate(SessionToken session,
java.lang.String parameterName)
Retrieves the date value of the designated input parameter of
type DATE.
|
double |
retrieveFloat(SessionToken session,
java.lang.String parameterName)
Retrieves the double value of the designated input parameter of type FLOAT.
|
long |
retrieveInteger(SessionToken session,
java.lang.String parameterName)
Retrieves the long value of the designated input parameter of type INTEGER.
|
java.lang.String |
retrieveString(SessionToken session,
java.lang.String parameterName)
Retrieves the string value of the designated input parameter of type
STRING.
|
UDTValue |
retrieveUDT(SessionToken session,
java.lang.String parameterName)
Retrieves (the proxy of) the value of the designated input parameter of
user-defined type (UDT).
|
java.net.URI |
retrieveURI(SessionToken session,
java.lang.String parameterName)
Retrieves the URI value of the designated input parameter of type URI.
|
getUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValuegetPluginData, getPluginDatas, getSupportedPluginsstatic final long serialVersionUID
boolean isNull(SessionToken session,
java.lang.String parameterName)
throws NoSuchParameterException
session - The session which is used to check for access rights on this
method and to retrieve the accessing agent and the corresponding
organisational position.parameterName - The name of the input parameter to check for NULL.true if the value of the designated input parameter
is NULL and therefore has not been written or has been consumed
yet.NoSuchParameterException - If the input parameter of the designated
name does not exist, a NoSuchParameterException
will be thrown.long retrieveInteger(SessionToken session,
java.lang.String parameterName)
throws InvalidDataTypeException,
NoSuchParameterException
session - The session which is used to check for access rights on this
method and to retrieve the accessing agent and the corresponding
organisational position.parameterName - The name of the input parameter to be read.long.InvalidDataTypeException - If the designated input parameter is not
of type INTEGER, an InvalidDataTypeException will
be raised.NoSuchParameterException - If the input parameter of the designated
name does not exist, a NoSuchParameterException
will be thrown.ProcessConstants.AdeptDataType.INTEGERdouble retrieveFloat(SessionToken session,
java.lang.String parameterName)
throws InvalidDataTypeException,
NoSuchParameterException
session - The session which is used to check for access rights on this
method and to retrieve the accessing agent and the corresponding
organisational position.parameterName - The name of the input parameter to be read.double.InvalidDataTypeException - If the designated input parameter is not
of type FLOAT, an InvalidDataTypeException will be
raised.NoSuchParameterException - If the input parameter of the designated
name does not exist, a NoSuchParameterException
will be thrown.ProcessConstants.AdeptDataType.FLOATboolean retrieveBoolean(SessionToken session,
java.lang.String parameterName)
throws InvalidDataTypeException,
NoSuchParameterException
session - The session which is used to check for access rights on this
method and to retrieve the accessing agent and the corresponding
organisational position.parameterName - The name of the input parameter to be read.boolean.InvalidDataTypeException - If the designated input parameter is not
of type BOOLEAN, an InvalidDataTypeException will
be raised.NoSuchParameterException - If the input parameter of the designated
name does not exist, a NoSuchParameterException
will be thrown.ProcessConstants.AdeptDataType.BOOLEANjava.lang.String retrieveString(SessionToken session,
java.lang.String parameterName)
throws InvalidDataTypeException,
NoSuchParameterException
session - The session which is used to check for access rights on this
method and to retrieve the accessing agent and the corresponding
organisational position.parameterName - The name of the input parameter to be read.String.InvalidDataTypeException - If the designated input parameter is not
of type STRING, an InvalidDataTypeException will
be raised.NoSuchParameterException - If the input parameter of the designated
name does not exist, a NoSuchParameterException
will be thrown.ProcessConstants.AdeptDataType.STRINGjava.util.Date retrieveDate(SessionToken session,
java.lang.String parameterName)
throws InvalidDataTypeException,
NoSuchParameterException
session - The session which is used to check for access rights on this
method and to retrieve the accessing agent and the corresponding
organisational position.parameterName - The name of the input parameter to be read.java.util.Date.InvalidDataTypeException - If the designated input parameter is not
of type DATE, an InvalidDataTypeException will be
raised.NoSuchParameterException - If the input parameter of the designated
name does not exist, a NoSuchParameterException will
be thrown.ProcessConstants.AdeptDataType.DATEjava.net.URI retrieveURI(SessionToken session,
java.lang.String parameterName)
throws InvalidDataTypeException,
NoSuchParameterException
session - The session which is used to check for access rights on this
method and to retrieve the accessing agent and the corresponding
organisational position.parameterName - The name of the input parameter to be read.java.net.URI.InvalidDataTypeException - If the designated input parameter is not
of type URI, an InvalidDataTypeException will be
raised.NoSuchParameterException - If the input parameter of the designated
name does not exist, a NoSuchParameterException
will be thrown.ProcessConstants.AdeptDataType.URIUDTValue retrieveUDT(SessionToken session, java.lang.String parameterName) throws InvalidDataTypeException, NoSuchParameterException
session - The session which is used to check for access rights on this
method and to retrieve the accessing agent and the corresponding
organisational position.parameterName - The name of the input parameter to be read.UDTValue.InvalidDataTypeException - If the designated input parameter is not
of type USERDEFINED, an InvalidDataTypeException
will be raised.NoSuchParameterException - If the input parameter of the designated
name does not exist, a NoSuchParameterException
will be thrown.ProcessConstants.AdeptDataType.USERDEFINED