1 package org.enhydra.shark.api.internal.working; 2 3 4 import org.enhydra.shark.api.client.wfmodel.*; 5 6 import java.util.List ; 7 import java.util.Map ; 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 20 public interface WfProcessInternal extends WfExecutionObjectInternal { 21 22 WfRequesterInternal requester (SharkTransaction t) throws BaseException; 24 int how_many_step (SharkTransaction t) throws BaseException; 25 WfProcessMgrInternal manager (SharkTransaction t) throws BaseException; 28 Map result (SharkTransaction t) throws BaseException, ResultNotAvailable; 29 void start (SharkTransaction t) throws BaseException, CannotStart, AlreadyRunning, ToolAgentGeneralException; 30 String package_id(SharkTransaction t) throws BaseException; 32 String process_definition_id (SharkTransaction t) throws BaseException; 33 String manager_name (SharkTransaction t) throws BaseException; 34 String manager_version (SharkTransaction t) throws BaseException; 35 void start_activity (SharkTransaction t, String actDefId, String blockActId) throws BaseException, ToolAgentGeneralException; 37 void activity_complete(SharkTransaction t, WfActivityInternal activity) throws Exception ; 38 void activity_terminate(SharkTransaction t, WfActivityInternal activity) throws Exception ; 39 void activity_abort(SharkTransaction t, WfActivityInternal activity) throws Exception ; 40 41 List getAllActivities (SharkTransaction t) throws BaseException; 42 List getActiveActivities (SharkTransaction t) throws BaseException; 43 WfActivityInternal getActivity (SharkTransaction t,String actId) throws BaseException; 44 WfActivityInternal getActiveActivity (SharkTransaction t,String actId) throws BaseException; 45 Evaluator evaluator(SharkTransaction t) throws RootException; 46 47 void checkDeadlines (SharkTransaction trans) throws BaseException; 48 void checkDeadline (SharkTransaction trans,String actId) throws BaseException; 49 50 List getAllActiveActivitiesForBlockActivity (SharkTransaction t,String 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 reqClassName) throws BaseException; 59 } | Popular Tags |