| org.obe.spi.service.ProcessRepository
All known Subclasses: org.obe.server.j2ee.repository.EJBProcessRepository, org.obe.engine.persistence.memory.BasicProcessRepository,
ProcessRepository | public interface ProcessRepository extends WorkflowService(Code) | | Provides persistence for packages and process definitions. Methods return
either the parsed, in-memory form as required to support the run-time, or
WAPI value objects as required to support the client API.
TODO: in the future, it may be desirable to support the WAPI2 process
modeling APIs, although there may be no reason for this to be a remote API.
TODO: Think about implementing a WebDAV interface to the process repository.
author: Adrian Price |
findPackages | XPDLPackage[] findPackages(WMFilter filter, boolean countFlag) throws RepositoryException(Code) | | Retrieves a set of packages.
Parameters: filter - A package filter specification. Parameters: countFlag - Flag to return just a count of the matching packages. An array of matching packages. |
findWorkflowProcess | WorkflowProcess findWorkflowProcess(String processDefinitionId) throws RepositoryException(Code) | | Retrieves a process definition in executable form.
Parameters: processDefinitionId - The process definition ID. The requested process definition. |
findWorkflowProcesses | WorkflowProcess[] findWorkflowProcesses(String name, boolean validOnly) throws RepositoryException(Code) | | Retrieves process definitions in executable form. The method returns all
process definitions with the specified name. If the
validOnly flag is true the method returns only
versions of the specified workflow which could be instantiated at the
current time, according to their state, status, and validFrom and validTo
dates.
Parameters: name - The process definition name. Must not be null To find all workflows, callProcessRepository.findWorkflowProcesses(WMFilter,boolean). Parameters: validOnly - true to return only workflows which areavailable for instantiation at the current time. The process definition(s) matching the specified name. See Also: ProcessRepository.findWorkflowProcesses(WMFilter,boolean) |
purge | void purge() throws RepositoryException(Code) | | Purges all data from the process repository. WARNING! All packages
and process definitions will be permanently deleted.
|
updateProcessDefinitionState | void updateProcessDefinitionState(String processDefinitionId, int newState) throws RepositoryException(Code) | | Changes the process definition state.
Parameters: processDefinitionId - The process definition id Parameters: newState - The new process definition state throws: RepositoryException - Workflow client exception |
|
|