|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WfAssignment
OMG definition: WfAssignment links WfActivity objects to WfResource objects. These links represent real assignments for enacting the activity. This interface may be specialized by resource management facilities that interpret the context of the activity to create and negotiate assignments with resources. Assignments are created as part of the resource selection process before an activity becomes ready for execution. The lifetime of an assignment is limited by that of the associated activity.
We extended OMG's interface by duplicating methods, and adding additional parameter that represents transaction. If you use methods without SharkTransaction parameter, the transaction will be implicitly created, and if you use it with SharkTransaction parameter you must obey to some rules explained in HowTo documentation.
Also, we added two additional methods for accepting assignment and getting accepted status.
Method Summary | |
---|---|
WfActivity |
activity()
A WfAssignment is associated with one WfActivity; the association is established when the assignment is created as part of the resource selection process for the activity. |
WfResource |
assignee()
A WfAssignment is associated with one WfResource. |
boolean |
get_accepted_status()
Extension to OMG interface. |
void |
set_accepted_status(boolean accept)
Extension to OMG interface. |
void |
set_assignee(WfResource new_value)
A WfAssignment is associated with one WfResource. |
Method Detail |
---|
WfActivity activity() throws java.lang.Exception
java.lang.Exception
WfResource assignee() throws java.lang.Exception
java.lang.Exception
void set_assignee(WfResource new_value) throws java.lang.Exception, InvalidResource
java.lang.Exception
InvalidResource
void set_accepted_status(boolean accept) throws java.lang.Exception, CannotAcceptSuspended
java.lang.Exception
CannotAcceptSuspended
boolean get_accepted_status() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |