|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.itim.apps.workflow.WorkflowExecutionMO | +--com.ibm.itim.apps.workflow.WorkflowProcessMO
Provides management capabilities for the workflow process such as retrieving process details, retrieving parent container process, retrieving activities associated with this process, aborting process, retrieving children processes.
Constructor Summary | |
---|---|
WorkflowProcessMO(PlatformContext platform,
javax.security.auth.Subject subject,
long id)
Constructs the the managed object with a platform context and a subject. |
Method Summary | |
---|---|
void |
abort()
Aborts the pending process. |
void |
auditEvent(EventAudit event)
Places the given event in the audit trail (history) of the execution object. |
void |
execute(WorkflowSearchResultsMO results,
java.util.Locale locale)
Executes the search using the configured parameters. |
void |
findAllFailedActivities(WorkflowSearchResultsMO results,
java.util.Locale locale,
java.lang.String sortBy,
int sortOrder)
Executes the search for failed subprocesses and activities using the configured parameters. |
java.util.Collection |
getActivities()
Returns the activities that are part of this process. |
WorkflowActivityMO |
getActivity(java.lang.String designId)
Returns the activity of the process with the given design id. |
WorkflowActivityMO |
getActivity(java.lang.String designId,
int index)
Returns the activity of the process with the given design id and given index of the iteration of the loop the activity is involved in. |
java.util.Collection |
getChildren()
Returns the child processes of this process (if any). |
WorkflowProcess |
getData()
Returns the details about this process. |
java.util.List |
getHistory()
Returns the history, or the audit trail for this process. |
WorkflowProcessMO |
getParent()
Returns the parent process of this process (if any) otherwise null will be returned if this is the root process or none found. |
Methods inherited from class com.ibm.itim.apps.workflow.WorkflowExecutionMO |
---|
getID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WorkflowProcessMO(PlatformContext platform, javax.security.auth.Subject subject, long id)
platform
- PlatformContext holding platform connection information.subject
- Subject representing the authenticated caller.id
- long representing the id of the process.Method Detail |
public void abort() throws java.rmi.RemoteException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if an error was encountered trying
to abort the process.public java.util.Collection getActivities() throws java.rmi.RemoteException, ApplicationException
WorkflowActivityMO.
- Throws:
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to retrieve the process's
activities.
public void execute(WorkflowSearchResultsMO results, java.util.Locale locale) throws java.rmi.RemoteException, ApplicationException
results
- WorkflowSearchResultsMO provides accessor methods to
retrieve results (Collection of Activity)
of the search.locale
- User's locale to sort with. null value defaults
to Locale.US
- Throws:
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to execute the search.
This is most likely caused by an invalid
parameter in the request.
public void findAllFailedActivities(WorkflowSearchResultsMO results, java.util.Locale locale, java.lang.String sortBy, int sortOrder) throws java.rmi.RemoteException, ApplicationException
results
- WorkflowSearchResultsMO provides accessor methods to
retrieve results (Collection of RecordDetail)
of the search.locale
- User's locale to sort with. null value defaults
to Locale.US
sortBy
- The column to be sortedsortOrder
- int representing the sorting order.0 is for
ascending order, and 1 for descending order.
- Throws:
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to execute the search.
This is most likely caused by an invalid
parameter in the request.
public java.util.List getHistory() throws java.rmi.RemoteException, ApplicationException
getHistory
in class WorkflowExecutionMO
EventAudit objects that represent the object's history.
- Throws:
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if an error was encountered trying
to retrieve the history.
public void auditEvent(EventAudit event) throws java.rmi.RemoteException, ApplicationException
auditEvent
in class WorkflowExecutionMO
event
- EventAudit representing the audited event.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if an error was encountered trying
to audit the event.public WorkflowActivityMO getActivity(java.lang.String designId) throws java.rmi.RemoteException, ApplicationException
designId
- Design id of the activity to retrieve as defined at design time.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to retrieve the activity
because of an invalid id.public WorkflowActivityMO getActivity(java.lang.String designId, int index) throws java.rmi.RemoteException, ApplicationException
designId
- Design id of the activity to retrieve as defined at design time.index
- Index of the loop iteration.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to retrieve the activity
because of an invalid id or loop index.public WorkflowProcessMO getParent() throws java.rmi.RemoteException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to retrieve the process's
parent process.public java.util.Collection getChildren() throws java.rmi.RemoteException, ApplicationException
WorkflowProcessMO representing children
(subflows) of the process.
- Throws:
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to retrieve the process's
child processes.
public WorkflowProcess getData() throws java.rmi.RemoteException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to retrieve the process
details.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |