public class WorkflowActivityMO extends WorkflowExecutionMO
| Constructor and Description |
|---|
WorkflowActivityMO(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 |
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.
|
getIDpublic 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.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.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.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 ApplicationException
java.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if unable to retrieve the activity
details.