public interface ProcessRepository extends ADEPT2Service
Process templates are classified by process types (for instance, a process type "customer order"). Every process type consists of a tree of process templates. The tree structure represents the relation between different process templates. For every process template a change history as well as a structural representation of the changes is stored, which is needed for schema evolution.
Since the complete evolution of a process type is maintained, the change histories/structural changes do not need to be complete. Instead, they contain only the differences to the corresponding parent template. For the root template of a process type the complete history is stored, hence the implicit "parent" of the root template is the null template (a template with just a start and an end node).
Besides the template itself and the change history metadata is maintained. The template includes the unique (with respect to a process repository) ID, the name, the creator of the template and the creation time. This data is provided in retrieval methods which do not load a complete template since it suffices for finding and selecting a process template.
| Modifier and Type | Method and Description |
|---|---|
ProcessType |
createProcessType(SessionToken session,
java.lang.String newProcessType)
Creates a new process type with the designated name, stores the liable user
and creates the root template, which is just a copy of the implicit null
template.
|
java.util.Set<TemplateProxy> |
findUsageOfActivityTemplate(SessionToken session,
java.util.UUID activityTemplateVersionID)
Finds all process templates which use the designated activity template in a
process step.
|
RemoteIterator<java.util.List<TemplateProxy>> |
findUsageOfActivityTemplateIterator(SessionToken session,
java.util.UUID activityTemplateVersionID)
The same as
findUsageOfActivityTemplate(SessionToken, UUID) but
with partial retrieval of the template proxies. |
java.util.Set<TemplateProxy> |
findUsageOfProcessTemplate(SessionToken session,
java.util.UUID processTemplateID)
Finds all process templates which reference the designated process template
as subprocess.
|
RemoteIterator<java.util.List<TemplateProxy>> |
findUsageOfProcessTemplateIterator(SessionToken session,
java.util.UUID processTemplateID)
The same as
findUsageOfProcessTemplate(SessionToken, UUID) but
with partial retrieval of the template proxies. |
java.util.Set<ProcessType> |
getAllProcessTypes(SessionToken session)
Gets all process types in this repository.
|
RemoteIterator<java.util.List<ProcessType>> |
getAllProcessTypesIterator(SessionToken session)
The same as
getAllProcessTypes(SessionToken) but with partial
retrieval of the process types. |
DataTypeManager |
getDataTypeManager()
Gets a reference to the management functions of user-defined data types
which is provided by a separate state manager.
|
ProcessTemplateManager |
getTemplateManager()
Gets a reference to the management functions of process templates and types
(creation and retrieval) which is provided by a separate template manager.
|
java.lang.String |
getUniqueRepositoryName()
Gets the unique name to identify this process repository.
|
getLocalUris, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, init, ping, preShutdown, shutdown, startjava.util.Set<ProcessType> getAllProcessTypes(SessionToken session)
session - The session which is used to check for access rights on this
method.RemoteIterator<java.util.List<ProcessType>> getAllProcessTypesIterator(SessionToken session)
getAllProcessTypes(SessionToken) but with partial
retrieval of the process types.session - The session which is used to check for access rights on this
method.ProcessType createProcessType(SessionToken session, java.lang.String newProcessType) throws InvalidLicenceException
session - The session which is used to check for access rights on this
method and to retrieve the creating agent and the corresponding
organisational position.newProcessType - The name of the process type to be created. The name
has to be unique (relative to the process repository).InvalidLicenceException - If the current licence does not allow to
create the designated process type, an
InvalidLicenceException will be thrown.java.lang.IllegalArgumentException - If the name of the new process type
already exists, an IllegalArgumentException will be
raised.java.util.Set<TemplateProxy> findUsageOfProcessTemplate(SessionToken session, java.util.UUID processTemplateID)
session - The session which is used to check for access rights on this
method.processTemplateID - The ID of the process template which is referenced
as a subprocess.RemoteIterator<java.util.List<TemplateProxy>> findUsageOfProcessTemplateIterator(SessionToken session, java.util.UUID processTemplateID)
findUsageOfProcessTemplate(SessionToken, UUID) but
with partial retrieval of the template proxies.session - The session which is used to check for access rights on this
method.processTemplateID - The ID of the process template which is referenced
as a subprocess.java.util.Set<TemplateProxy> findUsageOfActivityTemplate(SessionToken session, java.util.UUID activityTemplateVersionID)
session - The session which is used to check for access rights on this
method.activityTemplateVersionID - The ID of the activity template which usage is of
interest.RemoteIterator<java.util.List<TemplateProxy>> findUsageOfActivityTemplateIterator(SessionToken session, java.util.UUID activityTemplateVersionID)
findUsageOfActivityTemplate(SessionToken, UUID) but
with partial retrieval of the template proxies.session - The session which is used to check for access rights on this
method.activityTemplateVersionID - The ID of the activity template which
usage is of interest.java.lang.String getUniqueRepositoryName()
ProcessTemplateManager getTemplateManager()
DataTypeManager getDataTypeManager()