KickJava   Java API By Example, From Geeks To Geeks.

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


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.RootException;
9 import org.enhydra.shark.api.SharkTransaction;
10 import org.enhydra.shark.api.TransactionException;
11 import org.enhydra.shark.api.client.wfbase.BaseException;
12 import org.enhydra.shark.api.internal.scripting.Evaluator;
13 import org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException;
14
15
16 /**
17  * @author Vladimir Puskas
18  * @author Sasa Bojanic
19  */

20 public interface WfProcessInternal extends WfExecutionObjectInternal {
21
22    // omg interface
23
WfRequesterInternal requester (SharkTransaction t) throws BaseException;
24    int how_many_step (SharkTransaction t) throws BaseException;
25    //WfActivityInternal[] get_sequence_step (SharkTransaction t,int max_number) throws BaseException;
26
//boolean is_member_of_step (SharkTransaction t,WfActivityInternal member) throws BaseException;
27
WfProcessMgrInternal manager (SharkTransaction t) throws BaseException;
28    Map JavaDoc result (SharkTransaction t) throws BaseException, ResultNotAvailable;
29    void start (SharkTransaction t) throws BaseException, CannotStart, AlreadyRunning, ToolAgentGeneralException;
30    // internal interface
31
String JavaDoc package_id(SharkTransaction t) throws BaseException;
32    String JavaDoc process_definition_id (SharkTransaction t) throws BaseException;
33    String JavaDoc manager_name (SharkTransaction t) throws BaseException;
34    String JavaDoc manager_version (SharkTransaction t) throws BaseException;
35    //WfCreateProcessEventAudit get_create_process_history (SharkTransaction t) throws BaseException, HistoryNotAvailable;
36
void start_activity (SharkTransaction t, String JavaDoc actDefId, String JavaDoc blockActId) throws BaseException, ToolAgentGeneralException;
37    void activity_complete(SharkTransaction t, WfActivityInternal activity) throws Exception JavaDoc;
38    void activity_terminate(SharkTransaction t, WfActivityInternal activity) throws Exception JavaDoc;
39    void activity_abort(SharkTransaction t, WfActivityInternal activity) throws Exception JavaDoc;
40
41    List JavaDoc getAllActivities (SharkTransaction t) throws BaseException;
42    List JavaDoc getActiveActivities (SharkTransaction t) throws BaseException;
43    WfActivityInternal getActivity (SharkTransaction t,String JavaDoc actId) throws BaseException;
44    WfActivityInternal getActiveActivity (SharkTransaction t,String JavaDoc actId) throws BaseException;
45    Evaluator evaluator(SharkTransaction t) throws RootException;
46
47    void checkDeadlines (SharkTransaction trans) throws BaseException;
48    void checkDeadline (SharkTransaction trans,String JavaDoc actId) throws BaseException;
49
50    List JavaDoc getAllActiveActivitiesForBlockActivity (SharkTransaction t,String JavaDoc blockActivityId) throws BaseException;
51
52    void terminateFromActivity (SharkTransaction t) throws BaseException, CannotStop, NotRunning;
53
54    void abortFromActivity (SharkTransaction t) throws BaseException, CannotStop, NotRunning;
55
56    void mandatoryDelete (SharkTransaction t) throws TransactionException;
57
58    void setExternalRequesterClassName (SharkTransaction t,String JavaDoc reqClassName) throws BaseException;
59 } // interface WfProcess
60
Popular Tags