| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.itim.apps.workflow.WorkflowExecutionMO
com.ibm.itim.apps.workflow.WorkflowActivityMO
public class WorkflowActivityMO
Provides management capabilities for an activity in a workflow process such as retrieving activity details, retrieving parent container process, retrieving assignments of this activity, completing activity asynchronously.
| Constructor Summary | |
|---|---|
WorkflowActivityMO(PlatformContext platform,
                   javax.security.auth.Subject subject,
                   long id)
Constructs the the managed object with a platform context and a subject.  | 
|
| Method Summary | |
|---|---|
 void | 
auditEvent(EventAudit event)
Places the given event in the audit trail (history) of the execution object.  | 
 void | 
complete()
Signals completion of the activity to the workflow engine.  | 
 void | 
complete(ActivityResult result)
Signals completion of the activity to the workflow engine and provides the engine with the activity result in the same call.  | 
 java.util.Collection | 
getAssignments()
Returns the assignments made to resources as part of this activity.  | 
 WorkflowProcessMO | 
getContainer()
Returns the containing process of the activity.  | 
 Activity | 
getData()
Returns the details about this activity.  | 
 java.util.List | 
getHistory()
Returns the history, or the audit trail for this activity.  | 
 void | 
setResult(ActivityResult result)
Changes the result of the activity.  | 
| 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 WorkflowActivityMO(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 activity.| Method Detail | 
|---|
public void complete()
              throws java.rmi.RemoteException,
                     ApplicationException
ActivityResult.STATUS_COMPLETE completion status and
 ActivityResult.SUCCESS summary result.
java.rmi.RemoteException - Thrown if unable to communicate with platform.
ApplicationException - Thrown if an error occured trying to
                                 process the completion.
public void complete(ActivityResult result)
              throws java.rmi.RemoteException,
                     ApplicationException
result - ActivityResult holding the result of the activity.
java.rmi.RemoteException - Thrown if unable to communicate with platform.
ApplicationException - Thrown if an error occured trying to
                                 process the completion.
public java.util.List getHistory()
                          throws java.rmi.RemoteException,
                                 ApplicationException
getHistory in class WorkflowExecutionMOEventAudit 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 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 void setResult(ActivityResult result)
               throws java.rmi.RemoteException,
                      ApplicationException
result - ActivityResult holding the result of the activity.
java.rmi.RemoteException - Thrown if unable to communicate with platform.
ApplicationException - Thrown if an error occured trying to
            change the result.
public java.util.Collection getAssignments()
                                    throws java.rmi.RemoteException,
                                           ApplicationException
WorkflowAssignmentMO.
- Throws:
 java.rmi.RemoteException - Thrown if unable to communicate with platform.
ApplicationException - Thrown if unable to retrieve the activity's
            assignments.
public WorkflowProcessMO getContainer()
                               throws java.rmi.RemoteException,
                                      ApplicationException
java.rmi.RemoteException - Thrown if unable to communicate with platform.
ApplicationException - Thrown if unable to retrieve the activity's
            containing process.
public Activity getData()
                 throws java.rmi.RemoteException,
                        ApplicationException
java.rmi.RemoteException - Thrown if unable to communicate with platform.
ApplicationException - Thrown if unable to retrieve the activity
            details.
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||