|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines methods of the workflow engine that are
available to a tool agent. An agent implementation that wants to
use these methods must implement the
interface.
ContextRequester
Method Summary | |
void |
abandonActivity(ResultProvider.ExceptionResult result)
Abandon the invoking activity in a new transaction and maybe suspend it. |
void |
abandonActivity(java.lang.String exception)
Abandon the invoking activity in a new transaction. |
java.lang.String |
applicationId()
Return the id given to the application in the process definition. |
void |
finishActivity(java.util.Map result)
Set a result and complete the invoking activity in a new transaction. |
Activity |
lookupActivity(ActivityUniqueKey auk)
Lookup the given ativity specified by its unique key. |
Method Detail |
public java.lang.String applicationId()
public void finishActivity(java.util.Map result) throws InvalidDataException, CannotCompleteException
result
- the tool's result data. If null
do
not call setResult
.
InvalidDataException
- see WfActivity.setResult(...)
CannotCompleteException
- see WfActivity.complete()
public void abandonActivity(java.lang.String exception) throws TransitionNotAllowedException
exception
- the exception to signal
TransitionNotAllowedException
- see Activity.abandon()
public void abandonActivity(ResultProvider.ExceptionResult result) throws TransitionNotAllowedException
result
- the exception information
TransitionNotAllowedException
- see Activity.abandon()
public Activity lookupActivity(ActivityUniqueKey auk) throws InvalidKeyException, java.rmi.RemoteException
auk
- the activity's unique key
InvalidKeyException
- if the activity specified by
auk
cannot be found.
java.rmi.RemoteException
- if a system-level error occurs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |