Class FlowExecuteClient
java.lang.Object
com.infoteria.asteria.communication.client.AsteriaClient
com.infoteria.asteria.communication.client.AsteriaSessionClient
com.infoteria.asteria.flowengine2.client.FlowExecuteClient
- All Implemented Interfaces:
com.infoteria.asteria.communication.client.SessionClient,com.infoteria.asteria.flowengine2.client.ExecuteClient
public class FlowExecuteClient
extends com.infoteria.asteria.communication.client.AsteriaSessionClient
implements com.infoteria.asteria.flowengine2.client.ExecuteClient
外部のJavaプログラムからフローを実行するためのクライアントクラスです。
-
Field Summary
Fields inherited from class com.infoteria.asteria.communication.client.AsteriaSessionClient
VERSION_EQUAL, VERSION_NEW, VERSION_OLD -
Constructor Summary
ConstructorsConstructorDescriptionFlowExecuteClient(com.infoteria.asteria.communication.client.AsteriaSessionClient client) 他のclientのセッション(ログイン状態)を引き継いでクライアントを作成します。FlowExecuteClient(String url) ASTERIAサーバのURLを指定してクライアントを作成します。
特に変更していない場合、URLは「http://<SERVERNAME>:21381」となります。 -
Method Summary
Modifier and TypeMethodDescriptionexecute(FlowRequest request) フローを実行します。
実行を開始したら、その終了を待って実行結果が返り値となります。com.infoteria.asteria.communication.client.CallHandlerInterface.ContextTypekillFlow(requestId, 5)と同じです。リクエストIDで指定された実行中のフローを強制終了します。
強制終了が指定のタイムアウトまでに終わらなかった場合(その時間内にひとつのコンポーネントから 次のコンポーネントに制御が移ることがなかった場合)はExceptionとなります。 timeout=0の場合はタイムアウトせずに処理が終了するまで待ち続けます。 timeout< 0の場合はタイムアウト値としてリクエストしたフローのTimeoutプロパティの値が使用されます。ログインします。ログインします。booleanlogout()ログアウトします。post(FlowRequest request) フローの実行をポストします。
実行をリクエストした後は実行の終了を待たずに制御が返ります。postDebugRequest(FlowRequest request) フローのデバッグを予約します。booleanreleaseSession(String sessionid) サーバからセッションを削除します。チェックポイントを実行します。
実行を開始したら、再実行したリクエストのリクエストIDが返り値となります。Methods inherited from class com.infoteria.asteria.communication.client.AsteriaSessionClient
authenticate, authenticate, checkLogin, getLicenseInfo, getLoginUser, getPassword, getProductVersion, getRetryHandler, getSessionId, getUserName, invokeMethod, invokeMethod, invokeMethodNotLoggedIn, invokeMethodNotLoggedIn, isLoggedIn, isSessionAlived, login, reconnect, setPassword, setRetryHandler, setUserName, validateServerVersion, validateVersionMethods inherited from class com.infoteria.asteria.communication.client.AsteriaClient
getCallHandler, getProxyHost, getProxyPassword, getProxyPort, getProxyUsername, getStrPassword, getTimeout, getUsername, invokeMethod, invokeMethod, invokeMethodWithRetry, invokeMethodWithRetry, invokeMethodWithRetry, invokeMethodWithRetry, setCallHandler, setProxyHost, setProxyPassword, setProxyPort, setProxyUsername, setStrPassword, setTimeout, setUsername
-
Constructor Details
-
FlowExecuteClient
ASTERIAサーバのURLを指定してクライアントを作成します。
特に変更していない場合、URLは「http://<SERVERNAME>:21381」となります。 -
FlowExecuteClient
public FlowExecuteClient(com.infoteria.asteria.communication.client.AsteriaSessionClient client) 他のclientのセッション(ログイン状態)を引き継いでクライアントを作成します。
-
-
Method Details
-
getContextType
public com.infoteria.asteria.communication.client.CallHandlerInterface.ContextType getContextType()- Overrides:
getContextTypein classcom.infoteria.asteria.communication.client.AsteriaSessionClient
-
post
フローの実行をポストします。
実行をリクエストした後は実行の終了を待たずに制御が返ります。- Specified by:
postin interfacecom.infoteria.asteria.flowengine2.client.ExecuteClient- Parameters:
request- 実行リクエスト- Returns:
- リクエストID
- Throws:
FlowClientException
-
postDebugRequest
フローのデバッグを予約します。- Parameters:
request- 実行リクエスト- Returns:
- デバッグの予約ID
- Throws:
FlowClientException
-
execute
フローを実行します。
実行を開始したら、その終了を待って実行結果が返り値となります。- Specified by:
executein interfacecom.infoteria.asteria.flowengine2.client.ExecuteClient- Parameters:
request- 実行リクエスト- Returns:
- 実行結果オブジェクト
- Throws:
FlowClientException
-
login
ログインします。- Specified by:
loginin interfacecom.infoteria.asteria.flowengine2.client.ExecuteClient- Overrides:
loginin classcom.infoteria.asteria.communication.client.AsteriaSessionClient- Parameters:
username- ドメインからのフルユーザ名password- パスワードlifetime- セッションライフタイム- Returns:
- セッションID
- Throws:
FlowClientException
-
login
ログインします。- Specified by:
loginin interfacecom.infoteria.asteria.flowengine2.client.ExecuteClient- Overrides:
loginin classcom.infoteria.asteria.communication.client.AsteriaSessionClient- Parameters:
user- Userオブジェクトlifetime- セッションライフタイム- Returns:
- セッションID
- Throws:
FlowClientException
-
logout
ログアウトします。- Specified by:
logoutin interfacecom.infoteria.asteria.flowengine2.client.ExecuteClient- Overrides:
logoutin classcom.infoteria.asteria.communication.client.AsteriaSessionClient- Returns:
- ログアウトに成功した場合(サーバにログインセッションが存在しそれが削除された場合)はtrue
- Throws:
FlowClientException
-
releaseSession
サーバからセッションを削除します。- Specified by:
releaseSessionin interfacecom.infoteria.asteria.flowengine2.client.ExecuteClient- Overrides:
releaseSessionin classcom.infoteria.asteria.communication.client.AsteriaSessionClient- Parameters:
sessionid- セッションID- Returns:
- セッション削除に成功した場合はtrue
- Throws:
FlowClientException
-
killFlow
killFlow(requestId, 5)と同じです。- Specified by:
killFlowin interfacecom.infoteria.asteria.flowengine2.client.ExecuteClient- Throws:
FlowClientException
-
killFlow
リクエストIDで指定された実行中のフローを強制終了します。
強制終了が指定のタイムアウトまでに終わらなかった場合(その時間内にひとつのコンポーネントから 次のコンポーネントに制御が移ることがなかった場合)はExceptionとなります。 timeout=0の場合はタイムアウトせずに処理が終了するまで待ち続けます。 timeout< 0の場合はタイムアウト値としてリクエストしたフローのTimeoutプロパティの値が使用されます。- Specified by:
killFlowin interfacecom.infoteria.asteria.flowengine2.client.ExecuteClient- Parameters:
requestId- リクエストID- Returns:
- 強制終了に成功した場合に最後に実行されたコンポーネント名
- Throws:
FlowClientException
-
rerun
チェックポイントを実行します。
実行を開始したら、再実行したリクエストのリクエストIDが返り値となります。- Specified by:
rerunin interfacecom.infoteria.asteria.flowengine2.client.ExecuteClient- Parameters:
yyyyMMdd- 年月日requestId- リクエストID- Returns:
- リクエストID
- Throws:
FlowClientException
-