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.SharkTransaction; 9 import org.enhydra.shark.api.client.wfbase.BaseException; 10 import org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException; 11 12 16 public interface WfActivityInternal extends WfRequesterInternal, WfExecutionObjectInternal { 17 18 void reevaluateAssignments (SharkTransaction t) throws BaseException; 22 String getResourceUsername (SharkTransaction t) throws BaseException; 23 List getAssignmentResourceIds (SharkTransaction t) throws BaseException; 24 void updateAssignmentResourceIds (SharkTransaction t,String oldResUname,String newResUname) throws BaseException; 25 26 WfProcessInternal container (SharkTransaction t) throws BaseException; 27 28 Map result (SharkTransaction t) throws BaseException, ResultNotAvailable; 29 30 void set_result (SharkTransaction t,Map result) throws BaseException, InvalidData; 31 32 void complete (SharkTransaction t) throws BaseException, CannotComplete; 33 34 35 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 activity_set_definition_id (SharkTransaction t) throws BaseException; 45 String activity_definition_id (SharkTransaction t) throws BaseException; 46 String block_activity_id (SharkTransaction t) throws BaseException; 47 String manager_name (SharkTransaction t) throws BaseException; 48 String process_id (SharkTransaction t) throws BaseException; 49 51 String 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 resourceUname) throws BaseException, CannotAcceptSuspended; 57 58 60 ToolAgentGeneralException getToolAgentException (SharkTransaction t); 61 void setToolAgentException (SharkTransaction t,ToolAgentGeneralException tage); 62 63 String getExceptionName (SharkTransaction t); 64 void setExceptionName (SharkTransaction t,String exceptionName); 65 66 boolean checkDeadlines (SharkTransaction t,long timeLimitBoundary,Map actsToAsyncExcNames) throws BaseException; 67 68 List getDeadlineInfo (SharkTransaction t) throws BaseException; 69 } 70 | Popular Tags |