public interface ProcessHome
extends javax.ejb.EJBLocalHome
Finder Name | Finder Description | Returns |
---|---|---|
findByPrimaryKey | one | |
findAllProcesses | Returns all the processes in the system | many |
findByDisplayName | Returns the process(es) with the given name | many |
findById | Returns the process with the given id | one |
countOfAllCompletedProcesses | Returns the count of the completed processes in the system | count |
countOfAllProcesses | Returns the count of processes in the system | count |
countOfProcessesByStatus | Returns the count of processes with the given status | count |
findProcessByPreviousProjectId | Return the process whose previousProjectId collection contains pProjectId | one |
findProcessByProjectId | Return the process whose projectId is specified in pProjectId | one |
findProcessesByStatus | Returns the processes which match the given status | many |
findProcessesByStatusAndActivity | Returns the processes which match the given status and activity | many |
findProcessesByStatusAndActivityForRangge | Returns a range of processes which match the given status and activity | many |
findProcessesByStatusSort | Returns the processes which match the given status, sorted by the properties in the pSortProperties argument | many |
Modifier and Type | Method and Description |
---|---|
int |
countOfAllCompletedProcesses()
Returns the count of the completed processes in the system
|
int |
countOfAllProcesses()
Returns the count of processes in the system
|
int |
countOfProcessesByStatus(java.lang.String pStatus)
Returns the count of processes with the given status
|
Process |
create()
Returns a new instance.
|
Process |
create(java.lang.String pId)
Returns a new instance with the repository id set to the given id.
|
Process |
createProcess(java.lang.String pProcessName,
java.lang.String pWorkflowName)
Creates a new persistent process by supplying a processName and workflowName
|
Process |
createProcessForImport(java.lang.String pProcessName,
java.lang.String pWorkflowName)
Used by import tools for specialized process creation
|
Process |
createProcessForImport(java.lang.String pProcessName,
java.lang.String pWorkflowName,
boolean pAutoDeploy)
Deprecated.
use createProcessForImport(String pProcessName, String pWorkflowName) instead
|
Process |
createProcessForImport(java.lang.String pProcessName,
java.lang.String pWorkflowName,
java.lang.String pActivityId)
Used by import tools for specialized process creation
|
void |
deployProcessForImport(java.lang.String pWorkspaceId,
java.lang.String pUsername,
java.lang.String pComment,
java.lang.String[] pTargets)
Used by import tools for process deployment
|
java.util.Collection |
findAllProcesses(int pStartIndex,
int pCount)
Returns all the processes in the system
|
java.util.Collection |
findByDisplayName(java.lang.String pDisplayName)
Returns the process(es) with the given name
|
Process |
findById(java.lang.String pId)
Returns the process with the given id
|
Process |
findByPrimaryKey(java.lang.String primaryKey)
Returns the instance with the given primary key, throws
ObjectNotFoundException if the instance is not found. |
Process |
findProcessByPreviousProjectId(java.lang.String pProjectId)
Return the process whose previousProjectId collection contains pProjectId
|
Process |
findProcessByProjectId(java.lang.String pProjectId)
Return the process whose projectId is specified in pProjectId
|
java.util.Collection |
findProcessesByStatus(java.lang.String pStatus,
int pStartIndex,
int pCount)
Returns the processes which match the given status
|
java.util.Collection |
findProcessesByStatusAndActivity(java.lang.String pStatus,
java.lang.String pActivity)
Returns the processes which match the given status and activity
|
java.util.Collection |
findProcessesByStatusAndActivityForRangge(java.lang.String pStatus,
java.lang.String pActivity,
int pStartIndex,
int pCount)
Returns a range of processes which match the given status and activity
|
java.util.Collection |
findProcessesByStatusSort(java.lang.String pStatus,
int pStartIndex,
int pCount,
java.lang.String pSortProperties)
Returns the processes which match the given status, sorted by the properties in the pSortProperties argument
|
Process |
initializeProcess(Process pBeanProcess,
java.lang.String pWorkflowName)
This method creates a process.
|
Process |
initializeProcess(Process pBeanProcess,
java.lang.String pWorkflowName,
java.lang.String pSegmentName)
This method creates a process.
|
Process |
initializeProcessWithGlobalWorkflow(Process pBeanProcess,
java.lang.String pWorkflowName)
Same as initializeProcess() except that it does not require a valid session to be bound to create the process
|
Process |
wrapRepositoryItem(RepositoryItem pRepositoryItem) |
java.util.Collection |
wrapRepositoryItems(java.util.Collection pRepositoryItems) |
Process create() throws javax.ejb.CreateException, javax.ejb.EJBException
EPubHomes
factory was obtained. If the instance is backed by a persistent implementation, it may not actually be persisted until Process.writeInstance()
is called on the instance (and the transaction is committed, if the implementation is transaction-aware).javax.ejb.CreateException
javax.ejb.EJBException
Process create(java.lang.String pId) throws javax.ejb.CreateException, javax.ejb.EJBException
EPubHomes
factory was obtained. If the instance is backed by a persistent implementation, it may not actually be persisted until Process.writeInstance()
is called on the instance (and the transaction is committed, if the implementation is transaction-aware).javax.ejb.CreateException
javax.ejb.EJBException
Process findByPrimaryKey(java.lang.String primaryKey) throws javax.ejb.FinderException, javax.ejb.EJBException
ObjectNotFoundException
if the instance is not found.javax.ejb.FinderException
javax.ejb.EJBException
java.util.Collection findAllProcesses(int pStartIndex, int pCount) throws javax.ejb.FinderException, javax.ejb.EJBException
pStartIndex
- The starting index within the result set to return the items frompCount
- The number of items within the result set to return starting at pStartIndexCollection
of Process
instances matching the criteria. The Collection.iterator()
method can be used to retrieve the instances in order. If no instances match the criteria, then an empty Collection is returned. A null value is never returned.javax.ejb.FinderException
javax.ejb.EJBException
java.util.Collection findByDisplayName(java.lang.String pDisplayName) throws javax.ejb.FinderException, javax.ejb.EJBException
pDisplayName
- The displayName of the process(es) to returnCollection
of Process
instances matching the criteria. The Collection.iterator()
method can be used to retrieve the instances in order. If no instances match the criteria, then an empty Collection is returned. A null value is never returned.javax.ejb.FinderException
javax.ejb.EJBException
Process findById(java.lang.String pId) throws javax.ejb.FinderException, javax.ejb.EJBException
pId
- The id of the process to returnObjectNotFoundException
if no such instance is found.javax.ejb.FinderException
javax.ejb.EJBException
int countOfAllCompletedProcesses() throws javax.ejb.FinderException, javax.ejb.EJBException
javax.ejb.FinderException
javax.ejb.EJBException
int countOfAllProcesses() throws javax.ejb.FinderException, javax.ejb.EJBException
javax.ejb.FinderException
javax.ejb.EJBException
int countOfProcessesByStatus(java.lang.String pStatus) throws javax.ejb.FinderException, javax.ejb.EJBException
pStatus
- The status of the processes which should be countedjavax.ejb.FinderException
javax.ejb.EJBException
Process findProcessByPreviousProjectId(java.lang.String pProjectId) throws javax.ejb.FinderException, javax.ejb.EJBException
pProjectId
- The previous project id to return the process forObjectNotFoundException
if no such instance is found.javax.ejb.FinderException
javax.ejb.EJBException
Process findProcessByProjectId(java.lang.String pProjectId) throws javax.ejb.FinderException, javax.ejb.EJBException
pProjectId
- The project id to return the process forObjectNotFoundException
if no such instance is found.javax.ejb.FinderException
javax.ejb.EJBException
java.util.Collection findProcessesByStatus(java.lang.String pStatus, int pStartIndex, int pCount) throws javax.ejb.FinderException, javax.ejb.EJBException
pStatus
- The status of the processes which should be returnedpStartIndex
- The starting index within the result set to return the items frompCount
- The number of items within the result set to return starting at pStartIndexCollection
of Process
instances matching the criteria. The Collection.iterator()
method can be used to retrieve the instances in order. If no instances match the criteria, then an empty Collection is returned. A null value is never returned.javax.ejb.FinderException
javax.ejb.EJBException
java.util.Collection findProcessesByStatusAndActivity(java.lang.String pStatus, java.lang.String pActivity) throws javax.ejb.FinderException, javax.ejb.EJBException
pStatus
- The status of the processes which should be returnedpActivity
- The type of activity for this processes (i.e. the workflow) which should be returnedCollection
of Process
instances matching the criteria. The Collection.iterator()
method can be used to retrieve the instances in order. If no instances match the criteria, then an empty Collection is returned. A null value is never returned.javax.ejb.FinderException
javax.ejb.EJBException
java.util.Collection findProcessesByStatusAndActivityForRangge(java.lang.String pStatus, java.lang.String pActivity, int pStartIndex, int pCount) throws javax.ejb.FinderException, javax.ejb.EJBException
pStatus
- The status of the processes which should be returnedpActivity
- The type of activity for this processes (i.e. the workflow) which should be returnedpStartIndex
- The starting index within the result set to return the items frompCount
- The number of items within the result set to return starting at pStartIndexCollection
of Process
instances matching the criteria. The Collection.iterator()
method can be used to retrieve the instances in order. If no instances match the criteria, then an empty Collection is returned. A null value is never returned.javax.ejb.FinderException
javax.ejb.EJBException
java.util.Collection findProcessesByStatusSort(java.lang.String pStatus, int pStartIndex, int pCount, java.lang.String pSortProperties) throws javax.ejb.FinderException, javax.ejb.EJBException
pStatus
- The status of the processes which should be returnedpStartIndex
- The starting index within the result set to return the items frompCount
- The number of items within the result set to return starting at pStartIndexpSortProperties
- The properties to sort the results by. Separate multiple properties with a comma (,).Collection
of Process
instances matching the criteria. The Collection.iterator()
method can be used to retrieve the instances in order. If no instances match the criteria, then an empty Collection is returned. A null value is never returned.javax.ejb.FinderException
javax.ejb.EJBException
java.util.Collection wrapRepositoryItems(java.util.Collection pRepositoryItems)
Process wrapRepositoryItem(RepositoryItem pRepositoryItem)
Process createProcess(java.lang.String pProcessName, java.lang.String pWorkflowName) throws ActionException, WorkflowException, javax.ejb.CreateException, TransactionDemarcationException, javax.ejb.EJBException
pProcessName
- The name for the new processpWorkflowName
- The name of the workflow to be used by this processActionException
- If an error occurs in the workflow when the process is createdWorkflowException
- If a workflow error occurs while creating the processjavax.ejb.CreateException
- If the process could not be createdTransactionDemarcationException
- If a transaction error occursjavax.ejb.EJBException
- A system-level error occurredProcess createProcessForImport(java.lang.String pProcessName, java.lang.String pWorkflowName) throws ActionException, WorkflowException, javax.ejb.CreateException, TransactionDemarcationException, javax.ejb.EJBException
pProcessName
- The name of the process to createpWorkflowName
- The name of the workflow to use for the created processActionException
- if an error occurs in the workflow when the process is createdWorkflowException
- if a workflow error occurs while creating the processjavax.ejb.CreateException
- if the process could not be createdTransactionDemarcationException
- if a transaction error occursjavax.ejb.EJBException
- A system-level error occurredProcess createProcessForImport(java.lang.String pProcessName, java.lang.String pWorkflowName, java.lang.String pActivityId) throws ActionException, WorkflowException, javax.ejb.CreateException, TransactionDemarcationException, javax.ejb.EJBException
pProcessName
- The name of the process to createpWorkflowName
- The name of the workflow to use for the created processpActivityId
- The ID of the activity to use for the created processActionException
- if an error occurs in the workflow when the process is createdWorkflowException
- if a workflow error occurs while creating the processjavax.ejb.CreateException
- if the process could not be createdTransactionDemarcationException
- if a transaction error occursjavax.ejb.EJBException
- A system-level error occurredProcess createProcessForImport(java.lang.String pProcessName, java.lang.String pWorkflowName, boolean pAutoDeploy) throws ActionException, WorkflowException, javax.ejb.CreateException, TransactionDemarcationException, javax.ejb.EJBException
pProcessName
- The name of the process to createpWorkflowName
- The name of the workflow to use for the created processpAutoDeploy
- Determines whether or not the process assets should be deployed after the importActionException
- if an error occurs in the workflow when the process is createdWorkflowException
- if a workflow error occurs while creating the processjavax.ejb.CreateException
- if the process could not be createdTransactionDemarcationException
- if a transaction error occursjavax.ejb.EJBException
- A system-level error occurredvoid deployProcessForImport(java.lang.String pWorkspaceId, java.lang.String pUsername, java.lang.String pComment, java.lang.String[] pTargets) throws javax.ejb.FinderException, javax.jms.JMSException, WorkflowException, VersionException, atg.workflow.process.action.VersionConflictException, atg.epub.project.AssetLockException, LockManagerException, PublishingException, TransactionDemarcationException, javax.ejb.EJBException
pWorkspaceId
- The workspace id of the project to deploypUsername
- A username to use for checkin identitypComment
- An optional checkin commentpTargets
- The names of the targets to deploy tojavax.ejb.FinderException
- If the process to deploy cannot be foundjavax.jms.JMSException
- If a messaging exception occursWorkflowException
- If a workflow exception occursVersionException
- If a version manager exception occursatg.workflow.process.action.VersionConflictException
- If there is a version conflict during the checkinatg.epub.project.AssetLockException
- If assets are locked by another processLockManagerException
- If an asset lock cannot be acquiredPublishingException
- If an error occurs in publishingTransactionDemarcationException
- If a transaction error occursjavax.ejb.EJBException
- A system-level error occurredProcess initializeProcess(Process pBeanProcess, java.lang.String pWorkflowName) throws ActionException, WorkflowException, javax.ejb.CreateException, TransactionDemarcationException, javax.ejb.EJBException
pBeanProcess
- A bean implementation of a processpWorkflowName
- The name of the workflow to use for the process, for example '/Content Administration/editAssets.wdl'ActionException
- If an error occurs in the workflow when the process is createdWorkflowException
- If a workflow error occurs while creating the processjavax.ejb.CreateException
- If the process could not be createdTransactionDemarcationException
- If a transaction error occursjavax.ejb.EJBException
- A system-level error occurredProcess initializeProcess(Process pBeanProcess, java.lang.String pWorkflowName, java.lang.String pSegmentName) throws ActionException, WorkflowException, javax.ejb.CreateException, TransactionDemarcationException, javax.ejb.EJBException
pBeanProcess
- A bean implementation of a processpWorkflowName
- The name of the workflow to use for the process, for example '/Content Administration/editAssets.wdl'pSegmentName
- The name of the segment to use for the process, for example 'main'ActionException
- If an error occurs in the workflow when the process is createdWorkflowException
- If a workflow error occurs while creating the processjavax.ejb.CreateException
- If the process could not be createdTransactionDemarcationException
- If a transaction error occursjavax.ejb.EJBException
- A system-level error occurredProcess initializeProcessWithGlobalWorkflow(Process pBeanProcess, java.lang.String pWorkflowName) throws ActionException, WorkflowException, javax.ejb.CreateException, TransactionDemarcationException, javax.ejb.EJBException
pBeanProcess
- A bean implementation of a processpWorkflowName
- The name of the workflow to use for the process, for example '/Content Administration/editAssets.wdl'ActionException
- If an error occurs in the workflow when the process is createdWorkflowException
- If a workflow error occurs while creating the processjavax.ejb.CreateException
- If the process could not be createdTransactionDemarcationException
- If a transaction error occursjavax.ejb.EJBException
- A system-level error occurred