01: package org.enhydra.shark.api.client.wfmodel;
02:
03: /**
04: OMG definition: This interface specializes WfEventAudit for assignment change events. The event
05: records resource and assignment status before and after the change. The event_type
06: is activityAssignmentChanged.
07: An assignment change event is signaled when assignments for an activity are created
08: (in this case the old_... data is NULL), when the status of an assignment is changed, or
09: when an existing assignment is reassigned to another resource. The WfActivity
10: associated with the assignment is reported as the source of the event.
11: <p>We extended OMG's interface by adding additional method for getting
12: accepted status property.
13: */
14: public interface WfAssignmentEventAudit extends WfEventAudit {
15:
16: /**
17: Returns the resource key of the assignment before the change may be recorded. This event also
18: covers creation of a new assignment; in this case, the before event information is
19: NULL.
20: */
21: String old_resource_key() throws Exception;
22:
23: /**
24: Returns the resource name of the assignment before the change may be recorded. This event also
25: covers creation of a new assignment; in this case, the before event information is
26: NULL.
27: */
28: String old_resource_name() throws Exception;
29:
30: /** Returns the resource key of the assignment after the change is recorded.*/
31: String new_resource_key() throws Exception;
32:
33: /** Returns the resource name of the assignment after the change is recorded.*/
34: String new_resource_name() throws Exception;
35:
36: // doesn't exist in original OMG spec.
37: /** Returns the accepted status of assignment after the change is recorded.*/
38: boolean is_accepted() throws Exception;
39: } // interface WfAssignmentEventAudit
|