|
Oracle BPEL Process Manager Client Java API Reference 10g Release 3 (10.1.3.1.0) B28986-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IActivityHandle
The IActivityHandle
interface allows the user to perform operations on an active activity. An activity in the process domain represents a unit of work to be performed by a performer/service; the performer can either be manual (in which case it is called a task) or automated (either local or remote, as in the case of a web service invocation).
Activities, once started by the process domain, may be administered (for example, an activity may be suspended, resumed or aborted) or it may be operated on in a more user-like manner (for example, an event may be fired on the activity or an audit trail entry may be logged).
In addition to providing for operations to be performed on the activity, this interface also allows for attributes of the activity to be accessed; for instance, the expiration date or the current list of performers assigned to the activity.
Field Summary |
---|
Method Summary | |
---|---|
void |
abort() Aborts the activity. |
void |
abort(java.lang.String comments) Performs the same action as abort but allows the user to supply a comment that will be logged in the audit trail of the instance. |
void |
addAuditTrailEntry(java.lang.String message, java.lang.String detail) Adds an audit trail entry to the history of the instance that this activity belongs to. |
void |
expire() Expires the activity immediately. |
void |
expire(java.lang.String comments) Performs the same action as expire but allows the user to supply a comment that will be logged in the audit trail of the instance. |
void |
extend(java.util.Date expDate) Extends the expiration date of the activity to the specified date. |
void |
extend(java.util.Date expDate, java.lang.String comments) Performs the same action as extend( Date ) but allows the user to supply a comment that will be logged in the audit trail of the instance. |
CorrelationId |
getCorrelationId() Retrieves the correlation identifier of the activity. |
java.util.Date |
getCreationDate() Retrieves the creation date of this activity. |
java.lang.String |
getCustomId() Retrieves the custom identifier of this activity. |
java.util.Date |
getExpirationDate() Retrieves the current expiration date set for this activity. |
IInstanceHandle |
getInstance() Retrieves the handle to the instance that this activity belongs to. |
java.lang.String |
getLabel() Retrieves the label of this activity. |
java.util.Date |
getModifyDate() Retrieves the date this activity was last modified on. |
int |
getPriority() Retrieves the current priority of this activity. |
int |
getState() Retrieves the current state of this activity. |
boolean |
isCancelled() Returns true if this activity has been cancelled. |
boolean |
isClosed() Returns true if the state of this activity is either one of: closed.completed closed.finalized closed.pending.cancel closed.cancelled closed.faulted closed.aborted closed.compensated closed.stale |
boolean |
isComplete() Returns true if this activity is complete. |
boolean |
isExpired() Returns true if this activity has been expired. |
boolean |
isFaulted() Returns true if this activity has completed abnormally (that is, due to a fault/exception). |
boolean |
isOpen() Returns true if the state of this activity is either one of: open.running open.suspended open.pending.complete open.faulted |
boolean |
isStale() Returns true if this activity has been marked as stale. |
Method Detail |
---|
CorrelationId getCorrelationId()
IInstanceHandle getInstance()
java.util.Date getCreationDate() throws ServerException
ServerException
- if there is a problem in fetching the meta data of this activity from the process domain.java.util.Date getModifyDate() throws ServerException
ServerException
- if there is a problem in fetching the meta data of this activity from the process domain.java.util.Date getExpirationDate() throws ServerException
null
is returned.ServerException
- if there is a problem in fetching the meta data of this activity from the process domain.int getState() throws ServerException
int
ServerException
- if there is a problem in fetching the meta data of this activity from the process domain.IActivityConstants
boolean isOpen() throws ServerException
true
if the state of this activity is either one of:
ServerException
- if there is a problem in fetching the meta data of this activity from the process domain.IActivityConstants
boolean isClosed() throws ServerException
true
if the state of this activity is either one of:
ServerException
- if there is a problem in fetching the meta data of this activity from the process domain.IActivityConstants
boolean isComplete() throws ServerException
true
if this activity is complete.ServerException
- if there is a problem in fetching the meta data of this activity from the process domain.IActivityConstants
boolean isExpired() throws ServerException
true
if this activity has been expired.ServerException
- if there is a problem in fetching the meta data of this activity from the process domain.boolean isFaulted() throws ServerException
true
if this activity has completed abnormally (that is, due to a fault/exception).ServerException
- if there is a problem in fetching the meta data of this activity from the process domain.IActivityConstants
boolean isCancelled() throws ServerException
true
if this activity has been cancelled. Activities that terminate due to a fault condition while executing are considered faulted. Activities that are cancelled have had administrative action taken upon them.ServerException
- if there is a problem in fetching the meta data of this activity from the process domain.IActivityConstants
boolean isStale() throws ServerException
true
if this activity has been marked as stale. When a BPEL process is deployed on top of an existing (that is, deployed) BPEL process with the same process identifier and revision tag, all instances and activities created from the old BPEL process are marked as stale and cannot be acted upon any longer.
Instances belonging to undeployed processes are also marked as stale.
ServerException
- if there is a problem in fetching the meta data of this activity from the process domain.IActivityConstants
int getPriority() throws ServerException
ServerException
- if there is a problem in fetching the meta data of this activity from the process domain.java.lang.String getLabel() throws ServerException
ServerException
- if there is a problem in fetching the meta data of this activity from the process domain.java.lang.String getCustomId() throws ServerException
The semantics attached to the value of the identifier are the sole domain and responsibility of the user.
ServerException
- if there is a problem in fetching the meta data of this activity from the process domain.void addAuditTrailEntry(java.lang.String message, java.lang.String detail) throws ServerException
title
- the title of the audit trail entry.summary
- a brief summary of the audit trail entry.comment
- the detailed text of the entry.ServerException
- if there is a problem in locating the activity in the process domain or if the requested action is not permitted (the activity this handle is referring to may have been changed in the meantime).void expire() throws ServerException
ServerException
- if there is a problem in locating the activity in the process domain or if the requested action is not permitted (the activity this handle is referring to may have been changed in the meantime).void expire(java.lang.String comments) throws ServerException
expire
but allows the user to supply a comment that will be logged in the audit trail of the instance.comments
- the audit trail comment.ServerException
- if there is a problem in locating the activity in the process domain or if the requested action is not permitted (the activity this handle is referring to may have been changed in the meantime).void extend(java.util.Date expDate) throws ServerException
expDate
- the new expiration date.ServerException
- if there is a problem in locating the activity in the process domain or if the requested action is not permitted (the activity this handle is referring to may have been changed in the meantime).void extend(java.util.Date expDate, java.lang.String comments) throws ServerException
extend( Date )
but allows the user to supply a comment that will be logged in the audit trail of the instance.expDate
- the new expiration date.comments
- the audit trail comment.ServerException
- if there is a problem in locating the activity in the process domain or if the requested action is not permitted (the activity this handle is referring to may have been changed in the meantime).void abort() throws ServerException
ServerException
- if there is a problem in locating the activity in the process domain or if the requested action is not permitted (the activity this handle is referring to may have been changed in the meantime).void abort(java.lang.String comments) throws ServerException
abort
but allows the user to supply a comment that will be logged in the audit trail of the instance.comments
- the audit trail comment.ServerException
- if there is a problem in locating the activity in the process domain or if the requested action is not permitted (the activity this handle is referring to may have been changed in the meantime).
|
Oracle BPEL Process Manager Client Java API Reference 10g Release 3 (10.1.3.1.0) B28986-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |