public class WorkflowProcessMO extends WorkflowExecutionMO
| Constructor and Description |
|---|
WorkflowProcessMO(PlatformContext platform,
javax.security.auth.Subject subject,
long id)
Constructs the the managed object with a platform context and a subject.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts the pending process.
|
void |
abort(java.lang.String justification)
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.
|
void |
findAllFailedActivities(WorkflowSearchResultsMO results,
java.util.Locale locale,
java.lang.String sortBy,
int sortOrder,
boolean usePager)
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.
|
getIDpublic 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.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 void abort(java.lang.String justification)
throws java.rmi.RemoteException,
ApplicationException
justification - the reason to abort the process. The length limit is 1000.java.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if the justification length exceeds the limit, or
an error was encountered trying to abort the process.public java.util.Collection getActivities()
throws ApplicationException
WorkflowActivityMO.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.USjava.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
findAllFailedActivities(results, locale, sortBy, sortOrder, true);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.USsortBy - The column to be sortedsortOrder - int representing the sorting order.0 is for
ascending order, and 1 for descending order.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, boolean usePager) 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.USsortBy - The column to be sortedsortOrder - int representing the sorting order.0 is for
ascending order, and 1 for descending order.usePager - True if the pager should be used, false otherwise.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 WorkflowExecutionMOEventAudit objects that represent the object's history.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 WorkflowExecutionMOevent - 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 ApplicationException
WorkflowProcessMO representing children
(subflows) of the process.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 ApplicationException
java.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if unable to retrieve the process
details.