public interface AbstractActivity extends PluginDataContainer, UserAttributeContainer
AbstractActivity unifies the similarities of activities (used
in the process model), activity templates (intermediate objects for
transferring the necessary information from the activity model to the process
model), activity template definitions (the corresponding objects in the
activity model) and activity instances (the objects that are finally
executed). This allows for easier implementation of checks based on these
objects. However, the semantic of the attributes may slightly differ
especially for the ActivityTemplateDefintion since all other
activity objects stem from such an activity template definition. Refer to the
documentation of the corresponding interface for further information.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getActivityName()
Gets the name of this abstract activity.
|
java.util.Map<ActivityConstants.LocallyOverrideableActivityAttribute,ActivityConstants.ActivityModelEntityType> |
getAttributeOrigins()
Gets the origins, that is the activity model entity types, a specific
attribute of an activity stems from.
|
ClassLoaderUsage |
getClassLoaderUsage()
Gets what classloader to use for execution of this activity.
|
java.util.List<java.lang.String> |
getClassPath()
Gets the classpath to be used when instantiating the
implementation class for this abstract
activity as well as all classes needed to execute all of its methods. |
ActivityConfiguration |
getConfiguration()
Gets the configuration of this abstract activity.
|
java.lang.String |
getConfigurationName()
Gets the name of the configuration set (in the activity model) or the
configuration namespace (for the global and local runtime configurations)
or null if this abstract activity does not have a configuration
set/namespace.
|
java.lang.String |
getDescription()
Gets a description for this abstract activity for usage in the process
model.
|
java.lang.String |
getExecutableComponentName()
Gets the system-wide unique name of the
ExecutableComponentDescription this abstract activity is based
upon. |
ExecutionControlProperties |
getExecutionControlProperties()
Gets the interactions that the executable component of this abstract
activity supports for controlling its execution, that is whether the
component responds to signals from the outside to suspend, reset or close
the component.
|
java.lang.String |
getGUIContextID()
Gets the ID of the GUI context the executable component of this abstract
activity needs, for instance, an SWT or an AWT context.
|
java.util.UUID |
getIconID()
Gets the ID of the icon to use for process steps and worklist items of the
underlying executable component.
|
java.util.UUID |
getID()
Gets the (world-wide) unique ID of the
ActivityTemplateDefinition this abstract activity is based
upon. |
java.lang.String |
getImplementationClass()
Gets the name of the class implementing
ExecutableComponent
which is called when the process node is executed for which this abstract
activity is for. |
java.lang.String |
getOperationName()
Gets the name of the operation (unique with respect to the
ExecutableComponentDescription) this abstract activity belongs
to. |
Parameter |
getParameter(java.lang.String name,
ActivityConstants.AccessType accessType)
Gets the parameter object linked to the passed parameter name.
|
java.util.Set<? extends Parameter> |
getParameters(ActivityConstants.AccessType accessType)
Gets the parameters of the designated access type of the operation of this
abstract activity.
|
java.util.Map<ActivityConstants.ActivityModelEntityType,java.util.List<java.lang.String>> |
getSeparatedClassPaths()
Gets the classpath separated by the activity model entity type a part of
the classpath stems from.
|
byte[] |
getSystemComponent()
Gets the signature in case the executable component of this abstract
activity is privileged component and may access system services.
|
boolean |
supportsViewOnly()
Gets whether the operation of this abstract activity supports a view only
mode.
|
getPluginData, getPluginDatas, getSupportedPluginsgetUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValuejava.util.UUID getID()
ActivityTemplateDefinition this abstract activity is based
upon. This changes with every revision and thus allows to identify a
revision since the
normal revision does not suffice to identify an
ActivityTemplateDefinition since two different activity models
usually go through the very same revisions but with different changes.ActivityTemplateDefinition this abstract activity is
based upon.java.lang.String getExecutableComponentName()
ExecutableComponentDescription this abstract activity is based
upon.ExecutableComponentDescription this abstract activity
is based upon which also identifies the configurations that apply
at runtimejava.lang.String getOperationName()
ExecutableComponentDescription) this abstract activity belongs
to. This name is used in configurations that apply at runtime for
operation-specific configurations. Therefore one may have configuration
values for executable components as well as operations.ExecutableComponentDescription) this abstract activity
is based upon.java.lang.String getConfigurationName()
java.lang.String getActivityName()
java.lang.String getDescription()
java.lang.String getImplementationClass()
ExecutableComponent
which is called when the process node is executed for which this abstract
activity is for. The classpath needs to be set
appropriately. null may be exceptionally
returned.ExecutableComponent
which is called when the process node is executed for which this
abstract activity is for. This may exceptionally be
null for activities that are only to be executed with
the runtime service.java.util.List<java.lang.String> getClassPath()
implementation class for this abstract
activity as well as all classes needed to execute all of its methods.
This is only relevant for ClassLoaderUsage.NON_SHARED and
ClassLoaderUsage.SHARE_ACTIVITY_INSTANCES.
ClassLoaderUsage getClassLoaderUsage()
getClassPath() will
be ignored. That is, the activity may not have additional classpaths; all
classes need to be available in the platform classloader.byte[] getSystemComponent()
java.lang.String getGUIContextID()
GUIConstants.NULL_CONTEXT
if no GUI context is required.ExecutionControlProperties getExecutionControlProperties()
boolean supportsViewOnly()
SessionContext.isViewOnly()java.util.UUID getIconID()
ActivityConfiguration getConfiguration()
java.util.Set<? extends Parameter> getParameters(ActivityConstants.AccessType accessType)
AccessType.accessType - The access type of the parameters to be retrieved (only
values in ActivityConstants.AccessType.activityRelatedValues() are allowed).Parameter getParameter(java.lang.String name, ActivityConstants.AccessType accessType)
name - The name of the parameter.accessType - The access type of the parameter. Only values in
ActivityConstants.AccessType.activityRelatedValues() are allowed!null in case no
parameter of the designated name exists for the designated access
type.java.util.Map<ActivityConstants.LocallyOverrideableActivityAttribute,ActivityConstants.ActivityModelEntityType> getAttributeOrigins()
java.util.Map<ActivityConstants.ActivityModelEntityType,java.util.List<java.lang.String>> getSeparatedClassPaths()
ActivityTemplateDefinitions have a higher
priority than the ones from Operations or
ExecutableComponentDescriptions (even if overridden locally).