1 package org.enhydra.shark.api.internal.toolagent; 2 3 4 import org.enhydra.shark.api.*; 5 import org.enhydra.shark.api.internal.working.CallbackUtilities; 6 7 59 public interface ToolAgent { 60 63 void configure (CallbackUtilities cus) throws RootException; 64 65 87 SessionHandle connect (SharkTransaction t, 88 String userId, 89 String password, 90 String engineName, 91 String scope) 92 throws ConnectFailed, ToolAgentGeneralException; 93 94 104 void disconnect (SharkTransaction t,SessionHandle shandle) 105 throws InvalidSessionHandle, ToolAgentGeneralException; 106 107 142 void invokeApplication (SharkTransaction t, 143 long handle, 144 String applicationName, 145 String processInstanceId, 146 String workitemId, 147 AppParameter[] parameters, 148 Integer applicationMode) 149 throws ApplicationNotStarted, ApplicationNotDefined, 150 ApplicationBusy, ToolAgentGeneralException; 151 152 178 long requestAppStatus (SharkTransaction t, 179 long handle, 180 String processInstanceId, 181 String workitemId, 182 AppParameter[] parameters) 183 throws ApplicationBusy, InvalidToolAgentHandle, InvalidWorkitem, 184 InvalidProcessInstance, ToolAgentGeneralException; 185 186 205 void terminateApp (SharkTransaction t, 206 long handle, 207 String processInstanceId, 208 String workitemId) 209 throws ApplicationNotStopped, InvalidWorkitem, 210 InvalidProcessInstance, ApplicationBusy, ToolAgentGeneralException; 211 212 213 223 String getInfo (SharkTransaction t) throws ToolAgentGeneralException; 224 225 } 226 | Popular Tags |