KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > internal > working > WfActivityInternal


1 package org.enhydra.shark.api.internal.working;
2
3
4 import org.enhydra.shark.api.client.wfmodel.*;
5
6 import java.util.List JavaDoc;
7 import java.util.Map JavaDoc;
8 import org.enhydra.shark.api.SharkTransaction;
9 import org.enhydra.shark.api.client.wfbase.BaseException;
10 import org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException;
11
12 /**
13  * @author Sasa Bojanic
14  * @author Vladimir Puskas
15  */

16 public interface WfActivityInternal extends WfRequesterInternal, WfExecutionObjectInternal {
17
18    //int how_many_assignment (SharkTransaction t) throws BaseException;
19
//WfAssignmentInternal[] get_sequence_assignment (SharkTransaction t,int max_number) throws BaseException;
20
//boolean is_member_of_assignment (SharkTransaction t,WfAssignmentInternal member) throws BaseException;
21
void reevaluateAssignments (SharkTransaction t) throws BaseException;
22    String JavaDoc getResourceUsername (SharkTransaction t) throws BaseException;
23    List JavaDoc getAssignmentResourceIds (SharkTransaction t) throws BaseException;
24    void updateAssignmentResourceIds (SharkTransaction t,String JavaDoc oldResUname,String JavaDoc newResUname) throws BaseException;
25
26    WfProcessInternal container (SharkTransaction t) throws BaseException;
27
28    Map JavaDoc result (SharkTransaction t) throws BaseException, ResultNotAvailable;
29
30    void set_result (SharkTransaction t,Map JavaDoc result) throws BaseException, InvalidData;
31
32    void complete (SharkTransaction t) throws BaseException, CannotComplete;
33
34
35    // internal
36
void finish (SharkTransaction t) throws BaseException, CannotComplete;
37
38    void terminateFromProcess (SharkTransaction t) throws BaseException, CannotStop, NotRunning;
39
40    void abortFromProcess (SharkTransaction t) throws BaseException, CannotStop, NotRunning;
41
42    WfActivityInternal block_activity(SharkTransaction t) throws BaseException;
43
44    String JavaDoc activity_set_definition_id (SharkTransaction t) throws BaseException;
45    String JavaDoc activity_definition_id (SharkTransaction t) throws BaseException;
46    String JavaDoc block_activity_id (SharkTransaction t) throws BaseException;
47    String JavaDoc manager_name (SharkTransaction t) throws BaseException;
48    String JavaDoc process_id (SharkTransaction t) throws BaseException;
49    //WfAssignmentEventAudit[] get_sequence_assignment_history (SharkTransaction t,int max_number) throws BaseException, HistoryNotAvailable;
50

51    //List getAssignments (SharkTransaction t) throws BaseException;
52
String JavaDoc getPerformerId (SharkTransaction t);
53    boolean isPerformerSynchronous(SharkTransaction t);
54    void activate (SharkTransaction t) throws BaseException, CannotStart, AlreadyRunning;
55    boolean accepted_status (SharkTransaction t) throws BaseException;
56    void set_accepted_status (SharkTransaction t,boolean accepted,String JavaDoc resourceUname) throws BaseException, CannotAcceptSuspended;
57
58    //List getPerformers (SharkTransaction t) throws BaseException;
59

60    ToolAgentGeneralException getToolAgentException (SharkTransaction t);
61    void setToolAgentException (SharkTransaction t,ToolAgentGeneralException tage);
62
63    String JavaDoc getExceptionName (SharkTransaction t);
64    void setExceptionName (SharkTransaction t,String JavaDoc exceptionName);
65
66    boolean checkDeadlines (SharkTransaction t,long timeLimitBoundary,Map JavaDoc actsToAsyncExcNames) throws BaseException;
67
68    List JavaDoc getDeadlineInfo (SharkTransaction t) throws BaseException;
69 }
70
Popular Tags