public interface AbstractActivityModelParameter extends UserAttributeContainer, PluginDataContainer
ActivityModelParameter
used with inheritance (in the GUI) as well as for storage.| Modifier and Type | Method and Description |
|---|---|
ProcessConstants.AdeptDataType |
getDataType()
Returns the ADEPT2 data type of the parameter.
|
java.lang.String |
getDefaultValue()
Gets the string representation of the default value for this (optional,
non-virtual input) parameter.
|
java.lang.String |
getDescription()
Returns the description of the parameter for the end user.
|
java.lang.String |
getDeveloperDescription()
Gets a description of this activity model parameter for the developer/the
administrator.
|
java.util.UUID |
getIdentifierID()
Returns the ID of the identifier which describes the type of the
parameter in detail, or the constant
ProcessConstants.UNIVERSAL_IDENTIFIER_ID. |
java.lang.String |
getName()
Returns the name of the parameter.
|
java.lang.String |
getUDTName()
Returns the name of the user-defined type, if the parameter
is of type user-defined (cf
getDataType()). |
boolean |
isDataTypeInherited()
Gets whether this activity model parameter inherits the data type from
its parent (which depends on the entity this parameter is retrieved from).
|
boolean |
isDefaultValueInherited()
Gets whether this activity model parameter inherits the default value from
its parent (which depends on the entity this parameter is retrieved from).
|
boolean |
isDescriptionInherited()
Gets whether this activity model parameter inherits the description from
its parent (which depends on the entity this parameter is retrieved from).
|
boolean |
isDeveloperDescriptionInherited()
Gets whether this activity model parameter inherits the developer
description from its parent (which depends on the entity this parameter is
retrieved from).
|
boolean |
isFailure()
Gets whether this (optional, non-virtual output) parameter represents a
failure parameter.
|
boolean |
isFailureInherited()
Gets whether this activity model parameter inherits the failure flag from
its parent (which depends on the entity this parameter is retrieved from).
|
boolean |
isIdentifierIDInherited()
Gets whether this activity model parameter inherits the identifier ID from
its parent (which depends on the entity this parameter is retrieved from).
|
boolean |
isOptional()
Returns true, if the parameter is optional.
|
boolean |
isOptionalInherited()
Gets whether this activity model parameter inherits the optional flag from
its parent (which depends on the entity this parameter is retrieved from).
|
boolean |
isVirtual()
Returns true, if the parameter is virtual.
|
boolean |
isVirtualInherited()
Gets whether this activity model parameter inherits the virtual flag from
its parent (which depends on the entity this parameter is retrieved from).
|
void |
removeOwnDataType()
Removes the data type of this activity model parameter and inherits the
value from its parent again (if this exists).
|
void |
removeOwnDefaultValue()
Removes the default value of this activity model parameter and inherits the
value from its parent again (if this exists).
|
void |
removeOwnDescription()
Removes the description of this activity model parameter and inherits the
value from its parent again (if this exists).
|
void |
removeOwnDeveloperDescription()
Removes the developer description of this activity model parameter and
inherits the value from its parent again (if this exists).
|
void |
removeOwnFailure()
Removes the failure flag of this activity model parameter and inherits the
value from its parent again (if this exists).
|
void |
removeOwnIdentifierID()
Removes the identifier ID of this activity model parameter and inherits the
value from its parent again (if this exists).
|
void |
removeOwnOptional()
Removes the optional flag of this activity model parameter and inherits the
value from its parent again (if this exists).
|
void |
removeOwnVirtual()
Removes the virtual flag of this activity model parameter and inherits the
value from its parent again (if this exists).
|
void |
setDataType(ProcessConstants.AdeptDataType dataType,
java.lang.String udtName)
Sets the data type of this activity model parameter and the user-defined
type name.
|
void |
setDefaultValue(java.lang.String value)
Sets the string representation of the default value for this activity model
parameter.
|
void |
setDescription(java.lang.String description)
Sets a description for this activity model parameter for usage in the
process model.
|
void |
setDeveloperDescription(java.lang.String developerDescription)
Sets a description of this activity model parameter for the developer/the
administrator.
|
void |
setFailure(boolean failure)
Sets whether the parameter is a failure parameter.
|
void |
setIdentifierID(java.util.UUID identifierID)
Sets the ID of the identifier which describes the type of the parameter in
detail.
|
void |
setName(java.lang.String name)
Sets the name of this activity model parameter.
|
void |
setOptional(boolean optional)
Sets whether the parameter is optional and therefore may be null at
runtime.
|
void |
setVirtual(boolean virtual)
Sets whether the parameter is virtual.
|
getUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValuegetPluginData, getPluginDatas, getSupportedPluginsjava.lang.String getName()
The name of a parameter is unique within its data access scope (e.g. READ).
Uses:
java.lang.String getDescription()
Uses:
java.lang.String getDeveloperDescription()
This attribute overrides the corresponding attribute from the parent activity model parameter (which depends on the entity this parameter is retrieved from).
ProcessConstants.AdeptDataType getDataType()
Uses:
java.lang.String getDefaultValue()
data type of this parameter.java.lang.String getUDTName()
getDataType()).
This value might be used to further describe the data type,
but will be interpreted by the corresponding runtime only.
If the parameter is not user-defined, the method will return null.
Uses:
UDTValue and
ProcessConstants.AdeptDataType.USERDEFINED.java.util.UUID getIdentifierID()
ProcessConstants.UNIVERSAL_IDENTIFIER_ID.
Uses:
The data type long allows to change the name of the
identifier. When importing/exporting the ID has to be mapped to the
corresponding name since the ID may be already in use by another identifier
on the target system. See
Identifier for further
detail.
See the class description for further information.
boolean isOptional()
In case the parameter is an input parameter, the activity does not
require the data of this parameter, but may use the data if it is
available.
In case of an output parameter, the activity might return the value, but is
not required to do so. If there is no data returned, the attached data
element will not be written.
Uses:
See the class description for further information.
boolean isVirtual()
Uses:
See the class description for further information.
boolean isFailure()
ActivityInstance.ActivityInstance provided to the
execution environment, the activity should not fail but provide the
necessary failure information as normal output value.void setName(java.lang.String name)
Operation and the access type of
this parameter (IN or OUT). The name is used as identification of the
parameter at runtime, comparable to the name of a parameter of a Java
method.
This must neither be null nor the empty string. The designated name must not exist for the executable component description.
name - The name of this activity model parameter (unique with respect
to the Operation and the access type of this
parameter). This must neither be null nor the empty string.void setDescription(java.lang.String description)
This attribute overrides the corresponding parent attribute (if this exists).
description - A description for this activity model parameter for
usage in the process model that may be displayed in applications
like forms. Use the empty string to unset the description.void setDeveloperDescription(java.lang.String developerDescription)
This attribute overrides the corresponding
parent attribute (if this exists).
developerDescription - A description of this activity model parameter
for the developer/the administrator. This
description is not propagated to the process and is only part of
the activity model. Use the empty string to unset the developer
description for this entity.void setDataType(ProcessConstants.AdeptDataType dataType, java.lang.String udtName)
default value will be dropped since its
string representation will not match to the new data type. AdeptDataType.USERDEFINED.
This attribute may not override the parent one. Therefore if this parameter
has a parent and one tries to set the data type, an
IllegalStateException will be thrown. Whether this
parameter has a parent needs to be determined outside of this object.
dataType - The data type of this activity model parameter. This must
not be null.udtName - The user-defined type name if this activity model parameter
is of data type ProcessConstants.AdeptDataType.USERDEFINED.java.lang.IllegalStateException - If this parameter has a parent and
therefore the data type may not be changed, an
IllegalStateException will be thrown.void setDefaultValue(java.lang.String value)
data type of this parameter. If the designated
string does not conform to the data type, an
IllegalArgumentException will be thrown. non-virtual input parameter.
This attribute overrides the corresponding parent attribute (if this exists).
value - The string representation of the default value for the data
type of this activity model parameter. Use null for
no default value. However null is not allowed for
overwriting parameters, that is setting the default value to
null in child entities is not allowed.void setIdentifierID(java.util.UUID identifierID)
ProcessConstants.UNIVERSAL_IDENTIFIER_ID
for an unknown identifier. Setting the identifier of a parameter may
require changing its default value.
This attribute may not override the parent one. Therefore if this parameter
has a parent and one tries to set the attribute, an
IllegalStateException will be thrown. Whether this
parameter has a parent needs to be determined outside of this object.
identifierID - the ID of the identifier which describes the type of
the parameter in detail;
ProcessConstants.UNIVERSAL_IDENTIFIER_ID
for an unknown identifier.java.lang.IllegalStateException - If this parameter has a parent and
therefore the identifier may not be changed, an
IllegalStateException will be thrown.void setOptional(boolean optional)
This attribute overrides the corresponding parent attribute (if this exists). Overriding may apply both ways, that
is, an optional parameter may become mandatory (non-optional), but also
vice versa. However, setting a mandatory parameter to optional, requires
setting a default value.
optional - Whether the parameter is optional and therefore may be null
at runtime. Changing the parent attribute to optional requires
setting a default value!void setVirtual(boolean virtual)
This attribute may not override the parent one. Therefore if this parameter
has a parent and one tries to set the attribute, an
IllegalStateException will be thrown. Whether this
parameter has a parent needs to be determined outside of this object.
virtual - Whether the parameter is virtual and therefore is not
provided at runtime but rather represents a data flow outside of
the system.java.lang.IllegalStateException - If this parameter has a parent and
therefore the virtual attribute may not be changed, an
IllegalStateException will be thrown.void setFailure(boolean failure)
This attribute may not override the parent one. Therefore if this parameter
has a parent and one tries to set the attribute, an
IllegalStateException will be thrown. Whether this
parameter has a parent needs to be determined outside of this object.
failure - Whether the parameter is a failure parameter and represents
an exception that may either be an output parameter or fail the
activity at runtime.java.lang.IllegalStateException - If this parameter has a parent and
therefore the failure attribute may not be changed, an
IllegalStateException will be thrown.boolean isDescriptionInherited()
getDescription().void removeOwnDescription()
boolean isDeveloperDescriptionInherited()
getDeveloperDescription().void removeOwnDeveloperDescription()
boolean isDataTypeInherited()
getDataType().void removeOwnDataType()
boolean isDefaultValueInherited()
getDefaultValue().void removeOwnDefaultValue()
boolean isIdentifierIDInherited()
getIdentifierID().void removeOwnIdentifierID()
boolean isOptionalInherited()
isOptional().void removeOwnOptional()
boolean isVirtualInherited()
isVirtual().void removeOwnVirtual()
boolean isFailureInherited()
isFailure().void removeOwnFailure()