1 package org.enhydra.shark.api.client.wfservice; 2 3 import org.enhydra.shark.api.client.wfbase.BaseException; 4 5 import org.enhydra.shark.api.client.wfmodel.*; 6 import org.enhydra.shark.api.SharkTransaction; 7 8 20 public interface SharkConnection { 21 22 37 void connect (String userId, String password,String engineName,String scope) throws BaseException, ConnectFailed; 38 39 55 void connect (SharkTransaction t,String userId, String password,String engineName,String scope) throws BaseException, ConnectFailed; 56 57 65 void disconnect () throws BaseException, NotConnected; 66 67 76 void disconnect (SharkTransaction t) throws BaseException, NotConnected; 77 78 92 WfResource getResourceObject () throws BaseException, NotConnected; 93 94 110 WfResource getResourceObject (SharkTransaction t) throws BaseException, NotConnected, NotEnabled; 111 112 126 WfProcess createProcess (String pkgId,String pDefId) throws BaseException, NotConnected, NotEnabled; 127 128 143 WfProcess createProcess (SharkTransaction t,String pkgId,String pDefId) throws BaseException, NotConnected, NotEnabled; 144 145 159 WfProcess createProcess(WfRequester r, String pkgId,String pDefId) 160 throws BaseException, NotConnected, NotEnabled, InvalidRequester, RequesterRequired; 161 162 177 WfProcess createProcess(SharkTransaction t, WfRequester r, String pkgId,String pDefId) 178 throws BaseException, NotConnected, NotEnabled, InvalidRequester, RequesterRequired; 179 } 180 181 | Popular Tags |