KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > client > wfmodel > WfAssignmentEventAudit


1 package org.enhydra.shark.api.client.wfmodel;
2
3
4 import org.enhydra.shark.api.client.wfbase.*;
5
6 /**
7  OMG definition: This interface specializes WfEventAudit for assignment change events. The event
8  records resource and assignment status before and after the change. The event_type
9  is activityAssignmentChanged.
10  An assignment change event is signaled when assignments for an activity are created
11  (in this case the old_... data is NULL), when the status of an assignment is changed, or
12  when an existing assignment is reassigned to another resource. The WfActivity
13  associated with the assignment is reported as the source of the event.
14  <p>We extended OMG's interface by adding additional method for getting
15  accepted status property.
16  */

17 public interface WfAssignmentEventAudit extends WfEventAudit {
18
19    /**
20     Returns the resource key of the assignment before the change may be recorded. This event also
21     covers creation of a new assignment; in this case, the before event information is
22     NULL.
23     */

24    String JavaDoc old_resource_key () throws BaseException;
25
26    /**
27     Returns the resource name of the assignment before the change may be recorded. This event also
28     covers creation of a new assignment; in this case, the before event information is
29     NULL.
30     */

31    String JavaDoc old_resource_name () throws BaseException;
32
33    /** Returns the resource key of the assignment after the change is recorded.*/
34    String JavaDoc new_resource_key () throws BaseException;
35    /** Returns the resource name of the assignment after the change is recorded.*/
36    String JavaDoc new_resource_name () throws BaseException;
37
38    // doesn't exist in original OMG spec.
39
/** Returns the accepted status of assignment after the change is recorded.*/
40    boolean is_accepted () throws BaseException;
41 } // interface WfAssignmentEventAudit
42
Popular Tags