public interface ActivityTemplateDefinition extends AbstractActivityTemplateDefinition
ActivityTemplateDefinitions are located below
Operations, that is, they override the attributes of operations.
Usually they are just a specific configuration of the corresponding parent
entity/Operation. For instance, an operation for a generic
wrapper calling arbitrary Java methods, may have several
ActivityTemplateDefinitions which represent a specific
Java-method each. This allows for very simple usage of these Java methods in
a process. ActivityTemplateDefinitions are the leafs of the activity
model branches, that is, they do not have child entities in the activity
model. However, they do have offspring (the ActivityTemplates)
that are based on the activity template definition and that may inherit or
override the very same attributes. ActivityTemplates are not
part of an activity model branch but rather a container for the merged
attributes of the entities of an activity model branch. getOwnClassPath()).
ActivityTemplateDefinitions provide an additional
ID relative to the operation, that uniquely identifies an
activity template (and therefore a complete activity model branch) including
its revision. This allows for version branches, that is, changing
ActivityTemplateDefinitions in two different activity models
that both originally stem from the same activity model branch and therefore
having the same names.
To allow for common configurations, activity templates may be based on
ConfigurationSets. In this case, they also belong to an
Operation but they inherit the configurations (configuration
description, normal and test configuration), the parameter templates and the
staff assignment rule from the configuration set before inheriting from the
corresponding operation. Therefore requesting the inheritance state of these
attributes refers to a configuration set if present (
getConfiguration() returns a valid configuration set).
Configuration sets provide configurations either for all of its activity
template definitions, for specific executable component descriptions or for
specific operations. However, since these are merged, an activity template
definition overrides all of them. The documentation of the corresponding
methods of this class does not reflect this directly but refers only to one
of these configurations.
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getClassPath()
Gets the classpath to be used when instantiating the
implementation class for this activity
template definition as well as all classes needed to execute all of its
methods. |
InheritedActivityConfiguration |
getConfiguration()
Gets the configuration of this activity template description that
corresponds to the configuration
description of this activity template.
|
InheritedConfigurationDescription |
getConfigurationDescription()
Gets the configuration description for this activity template.
|
ConfigurationSet |
getConfigurationSet()
Gets the configuration set of this activity template definition or
null in case this activity template definition does not have a
configuration set. |
Operation |
getOperation()
Gets the operation of this activity template definition.
|
java.util.List<java.lang.String> |
getOwnClassPath()
Gets the part of the
classpath that is added by
this activity template definition to the one of the
parent attribute. |
InheritedCollection<java.lang.String,ActivityModelParameter> |
getParameters(ActivityConstants.AccessType accessType)
Gets the parameters of the designated access type of the operation of this
activity template definition.
|
InheritedCollection<java.lang.String,ParameterTemplate> |
getParameterTemplates()
Gets parameter templates that are defined for the operation of this
activity template definition or that are removed from the ones of the
parent entity.
|
StorageActivityTemplateDefinition |
getStorageATD()
Gets the object that allows to easily store the data of this
ActivityTemplateDefinition. |
InheritedActivityConfiguration |
getTestConfiguration()
Gets the test configuration of this activity template definition that
corresponds to the
configuration
description of this activity template definition. |
void |
setClassPath(java.util.List<java.lang.String> classPath)
Sets the classpath to be used when instantiating and executing the
implementation class for the executable
component of this activity template definition. |
void |
setConfiguration(InheritedActivityConfiguration configuration)
Sets the configuration of this activity template definition to the
designated one.
|
void |
setConfigurationDescription(InheritedConfigurationDescription description)
Sets the configuration description for this activity template definition.
|
void |
setParameters(ActivityConstants.AccessType accessType,
InheritedCollection<java.lang.String,ActivityModelParameter> parameters)
Sets all the parameters of the designated access type of the operation of
this activity template definition.
|
void |
setParameterTemplates(InheritedCollection<java.lang.String,ParameterTemplate> parameterTemplates)
Sets parameter templates that are defined for this activity template
definition and its offspring.
|
void |
setTestConfiguration(InheritedActivityConfiguration testConfiguration)
Sets the test configuration of the operation of this activity template
definition to the designated one.
|
areExecutionControlPropertiesInherited, getClassLoaderUsage, getDescription, getDeveloperDescription, getExecutionControlProperties, getGUIContextID, getIconID, getID, getImplementationClass, getLicenceInformation, getName, getParameterChangePolicy, getRevision, getStaffAssignmentRule, getState, getSystemComponent, isClassLoaderUsageInherited, isDescriptionInherited, isDeveloperDescriptionInherited, isGUIContextIDInherited, isIconIDInherited, isImplementationClassInherited, isLicenceInformationInherited, isParameterChangePolicyInherited, isStaffAssignmentRuleInherited, isSupportsTestExecutionInherited, isSupportsViewOnlyInherited, isSystemComponentInherited, removeOwnClassLoaderUsage, removeOwnDescription, removeOwnDeveloperDescription, removeOwnExecutionControlProperties, removeOwnGUIContextID, removeOwnIconID, removeOwnImplementationClass, removeOwnLicenceInformation, removeOwnParameterChangePolicy, removeOwnStaffAssignmentRule, removeOwnSupportsTestExecution, removeOwnSupportsViewOnly, removeOwnSystemComponent, setClassLoaderUsage, setDescription, setDeveloperDescription, setExecutionControlProperties, setGUIContextID, setIconID, setID, setImplementationClass, setLicenceInformation, setName, setParameterChangePolicy, setStaffAssignmentRule, setSupportsTestExecution, setSupportsViewOnly, setSystemComponent, supportsTestExecution, supportsViewOnlygetPluginData, getPluginDatas, getSupportedPluginsgetUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValueOperation getOperation()
ConfigurationSet getConfigurationSet()
null in case this activity template definition does not have a
configuration set.null.java.util.List<java.lang.String> getClassPath()
implementation class for this activity
template definition as well as all classes needed to execute all of its
methods. java.util.List<java.lang.String> getOwnClassPath()
classpath that is added by
this activity template definition to the one of the
parent attribute. In case this activity
template definition does not supplement the classpath this will be an empty
list.InheritedConfigurationDescription getConfigurationDescription()
This configuration description is merged with the configuration description of the corresponding operation or the configuration description of the corresponding configuration set.
InheritedActivityConfiguration getConfiguration()
This configuration is merged with the configuration of the corresponding operation or the configuration of the corresponding configuration set.
InheritedActivityConfiguration getTestConfiguration()
configuration
description of this activity template definition. These configuration
values only apply when the operation is executed in test mode, that is the
operation is provided this configuration instead of the
normal configuration. This test configuration
is merged with the normal configuration. Note that the test configuration
allows to override fixed values of the normal configuration.InheritedCollection<java.lang.String,ActivityModelParameter> getParameters(ActivityConstants.AccessType accessType)
The parameters need not be based on parameter templates of this activity template definition or its parent entities.
accessType - The access type of the parameters to be retrieved (only
values in ActivityConstants.AccessType.activityRelatedValues() are allowed).InheritedCollection<java.lang.String,ParameterTemplate> getParameterTemplates()
This collection of parameter templates is merged with the collection of parameter templates of the corresponding operation.
StorageActivityTemplateDefinition getStorageATD()
ActivityTemplateDefinition. This provides the data without
merging it before, that is, these are only the differences with respect to
the parent entities.
The returned object is for storing only! You should not rely on it to retrieve unmerged attribute values! If you need these, you will have to use appropriate tool methods or "unmerge" them yourself.
ActivityTemplateDefinition
by just providing the differences with respect to the parent
entities. That is no attribute value is merged with the
corresponding parent attribute.void setClassPath(java.util.List<java.lang.String> classPath)
implementation class for the executable
component of this activity template definition. code
manager are supported.
This attribute supplements the parent
attribute, that is the classpath of this entity prepends the classpath of
the parent entity. The designated classpath may already be merged,
implementations have to separate the inherited part if necessary.
classPath - A list of entries for the classpath to search for classes
used at runtime. The order is important: Prior entries are used
first. This classpath (the first part that differs from the
inherited classpath) prepends the classpath of the parent entity.void setConfigurationDescription(InheritedConfigurationDescription description)
null to remove it from
this activity template definition and inherit the configuration description
of the parent entity without any changes.
The designated configuration description is merged with the configuration description of the corresponding operation or the configuration description of the corresponding configuration set.
description - The description for all configuration values of this
activity template definition, that is, the name of the
configuration entries, their type and whether they are mandatory.
Use null to remove the configuration description from
this activity template definition, that is, it will be inherited
from the parent entity again.void setConfiguration(InheritedActivityConfiguration configuration)
The configuration has to be set as a whole; to add or modify single values,
retrieve the complete configuration, add or modify the value and provide
the complete configuration again to this method. Use null to
remove the configuration from this activity template definition, that is,
it will be inherited from the parent entity again.
The designated configuration is merged with the configuration of the corresponding operation or the configuration of the corresponding configuration set.
configuration - The configuration values set for this activity
template definition based on the configuration description. This
does not necessarily contain all values since they can still be
set when modelling. Use null to remove the
configuration from this activity template definition, that is, it
will be inherited from the parent entity again.void setTestConfiguration(InheritedActivityConfiguration testConfiguration)
configuration description of this
activity template definition, that
is the values have to have appropriate configuration entries. normal configuration. This test
configuration is merged with the normal configuration. Note that the test
configuration allows to override fixed values of the normal configuration.
The values may also be retrieved from process
parameters or the process configuration (determined when modelling).
The configuration has to be set as a whole; to add or modify single values,
retrieve the complete configuration, add or modify the value and provide
the complete configuration again to this method. Use null to
remove the test configuration from this activity template definition, that
is, it will be inherited from the parent entity again.
testConfiguration - The configuration values set for the test mode of
the operation of this activity template definition based on the
configuration description. This does not necessarily contain all
values since they can still be set when modelling or taken from
the normal configuration. Use null to remove the test
configuration from this activity template definition, that is, it
will be inherited from the parent entity again.void setParameters(ActivityConstants.AccessType accessType, InheritedCollection<java.lang.String,ActivityModelParameter> parameters)
parameter
change policy of this activity template definition, its collection of
parameters may be fix, changed and/or added; removal is not allowed.
However, the parameter change policy of this activity template definition
does not apply to this activity template definition but to its offspring. null for removing all parameter
templates of this activity template definition, that is, the parameters
will be inherited from the parent entity again. The parameters need not be based on parameter templates of this activity template definition or its parent entities.
The designated collection of parameters is merged with the collection of parameters of the corresponding operation.
accessType - The access type of the parameters to be retrieved (only
values in ActivityConstants.AccessType.activityRelatedValues() are allowed).parameters - The parameters of the operation of this activity template
definition for the designated access type. If the operation does
not have parameters of the designated type provide
null. This removes overriding parameters and inherits
them from the parent entity again.void setParameterTemplates(InheritedCollection<java.lang.String,ParameterTemplate> parameterTemplates)
When setting the parameter templates the whole collection has to be set; to
add or modify single parameter templates retrieve the complete templates
from this activity template definition, add or modify the template and
provide the collection of templates again to this method. Use
null for removing all parameter templates of this activity
template definition, that is, the parameter templates will be inherited
from the parent entity again.
It will not be allowed to set parameter templates for this activity
template definition if the parameter change policy of this activity
template definition does not allow to add or change real parameters (
ParameterChangePolicy.ADD_VIRTUAL or
ParameterChangePolicy.FIXED); only null will be
accepted. It will not make sense to set parameter templates if the
offspring entities are not allowed to add or change parameters.
The designated collection of parameter templates is merged with the collection of parameter templates of the corresponding operation.
parameterTemplates - A collection containing all parameter templates
that are defined for this activity template definition.