|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Field Summary | |
static java.lang.String |
SERVICE_NAME
|
Method Summary | |
void |
createPackage(XPDLPackage pkg)
Creates a package using the supplied content. |
void |
deletePackage(java.lang.String packageId)
Permanently deletes the specified package. |
XPDLPackage |
findPackage(java.lang.String packageId)
Retrieves the specified package. |
XPDLPackage[] |
findPackages(WMFilter filter,
boolean countFlag)
Retrieves a set of packages. |
int |
findProcessDefinitionState(java.lang.String processDefinitionId)
Returns the state of a process definition. |
WorkflowProcess |
findWorkflowProcess(java.lang.String processDefinitionId)
Retrieves a process definition in executable form. |
WorkflowProcess[] |
findWorkflowProcesses(java.lang.String name,
boolean validOnly)
Retrieves process definitions in executable form. |
WorkflowProcess[] |
findWorkflowProcesses(WMFilter filter,
boolean countFlag)
Retrieves a list of process definitions in executable form. |
void |
purge()
Purges all data from the process repository. |
void |
updatePackage(XPDLPackage pkg)
Sets the content of the specified package. |
void |
updateProcessDefinitionState(java.lang.String processDefinitionId,
int newState)
Changes the process definition state. |
Methods inherited from interface org.obe.spi.WorkflowService |
exit, getServiceManager, getServiceName, init |
Field Detail |
public static final java.lang.String SERVICE_NAME
Method Detail |
public void purge() throws RepositoryException
RepositoryException
public void createPackage(XPDLPackage pkg) throws RepositoryException
pkg
- The pre-parsed package object.
RepositoryException
public void deletePackage(java.lang.String packageId) throws RepositoryException
packageId
- The package ID.
RepositoryException
public XPDLPackage[] findPackages(WMFilter filter, boolean countFlag) throws RepositoryException
filter
- A package filter specification.countFlag
- Flag to return just a count of the matching packages.
RepositoryException
public XPDLPackage findPackage(java.lang.String packageId) throws RepositoryException
packageId
- The ID of the package to retrieve.
RepositoryException
public void updatePackage(XPDLPackage pkg) throws RepositoryException
pkg
- The package to write.
RepositoryException
public WorkflowProcess findWorkflowProcess(java.lang.String processDefinitionId) throws RepositoryException
processDefinitionId
- The process definition ID.
RepositoryException
public WorkflowProcess[] findWorkflowProcesses(java.lang.String name, boolean validOnly) throws RepositoryException
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.
name
- The process definition name. Must not be null
To find all workflows, call
findWorkflowProcesses(WMFilter, boolean)
.validOnly
- true
to return only workflows which are
available for instantiation at the current time.
RepositoryException
findWorkflowProcesses(WMFilter, boolean)
public WorkflowProcess[] findWorkflowProcesses(WMFilter filter, boolean countFlag) throws RepositoryException
filter
- A process definition filter specification.
RepositoryException
findWorkflowProcesses(String, boolean)
public int findProcessDefinitionState(java.lang.String processDefinitionId) throws RepositoryException
processDefinitionId
- The process definition id
WMProcessDefinitionState
RepositoryException
public void updateProcessDefinitionState(java.lang.String processDefinitionId, int newState) throws RepositoryException
processDefinitionId
- The process definition idnewState
- The new process definition state
RepositoryException
- Workflow client exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |