Interface ChangeableActivityConfiguration
-
- All Superinterfaces:
ActivityConfiguration
,ChangeableConfiguration
,Configuration
,Serializable
public interface ChangeableActivityConfiguration extends ChangeableConfiguration, ActivityConfiguration
This interface unifies aChangeableConfiguration
and anActivityConfiguration
and allows to change the attributes of theActivityConfiguration
, that is whether a configuration value stems from an input parameter or the corresponding process configuration.- Author:
- Ulrich Kreher
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.aristaflow.adept2.model.common.Configuration
Configuration.ConfigurationIDs
-
-
Field Summary
Fields Modifier and Type Field Description static long
serialVersionUID
Generated ID for serialisation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
remove(String entryName)
Removes the value for the entry with the designated name from this configuration.void
setFromInputParameter(String entryName, String inputParameterName)
Sets the name of the input parameter, the configuration value for the designated entry is taken from at runtime.void
setFromProcessConfiguration(String entryName, String configurationEntry)
Sets the name of the entry of the process configuration, the value for this configuration and the designated entry provided from at runtime.-
Methods inherited from interface de.aristaflow.adept2.model.common.ActivityConfiguration
fromInputParameter, fromProcessConfiguration, getAllEntries
-
Methods inherited from interface de.aristaflow.adept2.model.common.ChangeableConfiguration
setBoolean, setDate, setFloat, setInteger, setString, setUDT, setURI
-
Methods inherited from interface de.aristaflow.adept2.model.common.Configuration
getBoolean, getConfigurationID, getDate, getFloat, getInteger, getString, getUDT, getURI, isFixed
-
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
Generated ID for serialisation.- See Also:
- Constant Field Values
-
-
Method Detail
-
setFromInputParameter
void setFromInputParameter(String entryName, String inputParameterName)
Sets the name of the input parameter, the configuration value for the designated entry is taken from at runtime. This input parameter has to exist and has to have the right type in the corresponding activity. Neither the name of the entry nor the name of the input parameter may benull
.- Parameters:
entryName
- The name of the entry for which to set the name of the input parameter that provides the configuration value at runtime. This must not benull
.inputParameterName
- The name of the input parameter, the designated configuration value is retrieved of. This must not benull
.
-
setFromProcessConfiguration
void setFromProcessConfiguration(String entryName, String configurationEntry)
Sets the name of the entry of the process configuration, the value for this configuration and the designated entry provided from at runtime. The entry in the process configuration has to exist in the process model and has to have the right type in the corresponding process configuration. Neither the name of the activity configuration entry nor the name of the process configuration entry may benull
.- Parameters:
entryName
- The name of the entry for which to set the entry name of the process configuration that provides the configuration value at runtime. This must not benull
.configurationEntry
- The name of the entry of the process configuration, the designated configuration value is retrieved of. This must not benull
.
-
remove
void remove(String entryName)
Removes the value for the entry with the designated name from this configuration. Calling this method will have no effects if the value of the designated entry does not exist. This also removes retrieving the designated configuration value from an input parameter or the process configuration if appropriate.- Specified by:
remove
in interfaceChangeableConfiguration
- Parameters:
entryName
- The name of the configuration entry to remove from this configuration. This must neither be null nor the empty string.
-
-