public class ActivityEntity extends ExecutionEntity
| Constructor and Description |
|---|
ActivityEntity(Activity activity)
Constructs with Activity value object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
static ActivityEntity |
getActivity(long activityId)
Returns the activity of the process with the given activity ID.
|
java.util.Collection |
getAssignments()
Returns the assignments made to resources as part of this activity.
|
java.util.Collection |
getChildren()
Returns the children processes of this activity (if any).
|
WorkflowProcessEntity |
getContainer()
Returns the containing process of the activity.
|
java.util.List |
getHistory()
Returns the history, or the audit trail for this activity.
|
void |
setResult(java.lang.String summary,
java.lang.String description)
Changes the result of the activity.
|
auditEvent, getId, getValueObject, setValueObjectpublic ActivityEntity(Activity activity)
activity - public void complete()
throws WorkflowException
WorkflowException - Thrown if an error occured trying to
process the completion.public void complete(ActivityResult result) throws WorkflowException
result - ActivityResult holding the result of the completing assignment.WorkflowException - Thrown if an error occured trying to
process the completion.public void setResult(java.lang.String summary,
java.lang.String description)
throws WorkflowException
summary - Summary code for the activity.description - Description of the activity.WorkflowException - Thrown if an error occured trying to
set the activity result.public static ActivityEntity getActivity(long activityId) throws WorkflowException
activityId - activity ID of the activity to retrieve.WorkflowException - Thrown if unable to retrieve the activity because of an
invalid ID.public java.util.List getHistory()
throws WorkflowException
getHistory in class ExecutionEntityWorkflowException - Thrown if an error was encountered trying
to retrieve the history.public java.util.Collection getAssignments()
throws WorkflowException
WorkflowException - Thrown if unable to retrieve the activity's
assignments.public WorkflowProcessEntity getContainer() throws WorkflowException
WorkflowException - Thrown if unable to retrieve the activity's
containing process.public java.util.Collection getChildren()