public interface ExecutionManager extends ConfigurableService
The designated sessions allow for checking access rights on a coarse level, for instance, to prevent controlling instances at all.
CONF_RUNTIME_CONF_PREFIX| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.util.UUID,java.util.UUID> |
archiveInstance(SessionToken session,
java.util.UUID instanceID)
Archives the designated instance which removes the instance data completely
from the underlying services which includes the
InstanceManager, the
DataManager and the
ExecutionHistory. |
SerialisablePair<java.util.Collection<java.util.UUID>,java.util.Map<java.util.UUID,java.util.UUID>> |
archiveTemplate(SessionToken session,
java.util.UUID templateID)
Archives the designated template which removes the template and the
instance data completely from the underlying services which includes the
TemplateManager, the
InstanceManager, the
DataManager and the
ExecutionHistory. |
ActivityExecutionControl |
getActivityExecutionControl()
Gets a reference to a controller for all execution-related states of
activities, which includes suspending, resetting and aborting.
|
ActivityStarting |
getActivityStarting()
Gets a reference to a controller for all start-related states of
activities, which includes starting, resuming and (de-)selecting.
|
ActivityTermination |
getActivityTermination()
Gets a reference to a controller for all termination-related states of
activities, which includes finishing, suspending and aborting.
|
java.net.URI[] |
getDataManager(SessionToken session,
java.util.UUID instanceID)
Gets the data manager that is associated with this execution manager for
the designated process instance.
|
InstanceChanging |
getInstanceChanging()
Gets a reference to the management of instance changes, that is,
retrieving, committing and aborting the changing of instances.
|
InstanceControl |
getInstanceControl()
Gets a reference to the management of instances, that is, controlling the
state of an instance (start, suspend, resume, commit, abort,...) and
starting new instances.
|
java.net.URI[] |
getProcessManager(SessionToken session,
java.util.UUID instanceID)
Gets the process manager that is associated with this execution manager for
the designated process instance
|
java.net.URI[] |
getProcessManagerLogId(SessionToken session,
java.util.UUID instLogId)
Gets the process manager that is associated with this execution manager for the designated
process instance.
|
WorklistInteraction |
getWorklistInteraction()
Gets a reference to the management of worklist managers that need to
be informed by this execution manager.
|
getChangeableConfigurationKeys, getConfiguration, setConfigurationValuegetLocalUris, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, init, ping, preShutdown, shutdown, startInstanceControl getInstanceControl()
InstanceChanging getInstanceChanging()
ActivityStarting getActivityStarting()
ActivityTermination getActivityTermination()
ActivityExecutionControl getActivityExecutionControl()
WorklistInteraction getWorklistInteraction()
java.net.URI[] getDataManager(SessionToken session, java.util.UUID instanceID) throws ServiceNotKnownException
session - The session which is used to access the data manager for the
designated instance. This is just used as a coarse check for the
necessary access rights.instanceID - The instance for which to retrieve the corresponding
process manager.ServiceNotKnownException - If the data manager for the designated
instance can not be retrieved, a
ServiceNotKnownException will be thrown.java.net.URI[] getProcessManager(SessionToken session, java.util.UUID instanceID) throws ServiceNotKnownException
session - The session which is used to access the process manager for
the designated instance. This is just used as a coarse check for
the necessary access rights.instanceID - The instance for which to retrieve the corresponding
process manager.ServiceNotKnownException - If the process manager for the designated
instance can not be retrieved, a
ServiceNotKnownException will be thrown.java.net.URI[] getProcessManagerLogId(SessionToken session, java.util.UUID instLogId) throws ServiceNotKnownException
session - The session which is used to access the process manager for the designated
instance. This is just used as a coarse check for the necessary access rights.instLogId - The (internal) log ID of the instance for which to retrieve the corresponding
process manager.ServiceNotKnownException - If the process manager for the designated instance can not be
retrieved, a ServiceNotKnownException will be thrown.SerialisablePair<java.util.Collection<java.util.UUID>,java.util.Map<java.util.UUID,java.util.UUID>> archiveTemplate(SessionToken session, java.util.UUID templateID) throws InvalidTemplateStateException, InvalidInstanceStateException, DataConsistencyException
TemplateManager, the
InstanceManager, the
DataManager and the
ExecutionHistory. The
archived template data includes all templates and embedded templates as
well as the template status. Additionally all instances of the designated
template as well as the corresponding sub-instances, the instance status,
the data, execution and change history as well as the instance-specific
(modified) templates will be archived. IE_FINISHED or IE_ABORTED,Use this method carefully! Archiving one template will also archive a lot of dependent data. When archiving distributed template hierarchies (parent or child templates are handled by different template managers), one has to take care of the consistency manually.
session - The session which is used to check for access rights on this
method.templateID - The ID of the template which to remove from this template
manager.InvalidTemplateStateException - If one of the templates to be removed
is instantiable for top-level or subprocess usage, an
InvalidTemplateStateException will be thrown.InvalidInstanceStateException - If one of the instances of the
designated template is not IE_FINISHED or
IE_ABORTED, an
InvalidInstanceStateException will be thrown.DataConsistencyException - If removing the template leads to
inconsistencies, that is, the prerequisites are not fulfilled, a
DataConsistencyException will be thrown.java.util.Map<java.util.UUID,java.util.UUID> archiveInstance(SessionToken session, java.util.UUID instanceID) throws InvalidInstanceStateException, DataConsistencyException
InstanceManager, the
DataManager and the
ExecutionHistory. The
archived instance data includes all instances and sub-instances, the
instance status, the data, execution and change history as well as the
instance-specific (modified) templates. IE_FINISHED or IE_ABORTED,Use this method carefully! When archiving instances one has to take care of the consistency manually, especially for instance hierarchies which are distributed on several execution managers.
session - The session which is used to check for access rights on this
method.instanceID - The ID of the instance which to remove from this
execution manager.InvalidInstanceStateException - If the designated instance is not
IE_FINISHED or IE_ABORTED, an
InvalidInstanceStateException will be thrown.DataConsistencyException - If removing the instance leads to
inconsistencies, that is, the prerequisites are not fulfilled, a
DataConsistencyException will be thrown.