ページの先頭行へ戻る
Interstage Service Integrator V9.5.0 アプリケーション開発ガイド
FUJITSU Software

C.2.12 Command Launcherの定義

Command Launcherを使用するには、以下のようにします。

指定例

実行ステップ情報の指定例は、以下のとおりです。この例では、現在のペイロードをパラメタとして渡し、コマンド“c:\test.bat”を実行しています。
復帰値が“1”、“2”、“3”以外は、シーケンスはエラーとなります。

:
    <StepInformation stepname="CommandLauncher1">
        <MediatorFunction name="CommandLauncher">
            <Method type="execute" name="executeProcess">
                <ParameterList>
                    <Parameter name="esi.cmd.command" valuetype="direct">C:\test.bat</Parameter>
                    <Parameter name="esi.cmd.normalends" valuetype="direct">1,2,3</Parameter>
                </ParameterList>
            </Method>
        </MediatorFunction>
    </StepInformation>
:

実行ステップ情報の指定例は、以下のとおりです。この例では、現在のペイロードをパラメタとして渡し、コマンド“/usr/bin/test”を実行しています。
復帰値が“1”、“2”、“3”以外は、シーケンスはエラーとなります。

:
    <StepInformation stepname="CommandLauncher1">
        <MediatorFunction name="CommandLauncher">
            <Method type="execute" name="executeProcess">
                <ParameterList>
                    <Parameter name="esi.cmd.command" valuetype="direct">/usr/bin/test</Parameter>
                    <Parameter name="esi.cmd.normalends" valuetype="direct">1,2,3</Parameter>
                </ParameterList>
            </Method>
        </MediatorFunction>
    </StepInformation>
:
表C.96 定義項目

キー名

説明

指定例

StepInformation

stepname

ステップ名を指定します。シーケンスブロックに指定したステップ名を指定してください。

CommandLauncher1

MediatorFunction

name

メディエータファンクション名“CommandLauncher”を指定します。

CommandLauncher

Method

type

実行種別“execute”を指定します。

execute

name

CommandLauncherのメソッド名“executeProcess”を指定します。

executeProcess

Parameter

1

実行するコマンドを指定します。

name

“esi.cmd.command”を指定します。

esi.cmd.command

valuetype

パラメタに指定する値のタイプを指定します。

Direct

実行するコマンドを指定します。

C:\test.bat

/usr/bin/test

2

コマンドが正常終了した場合に返す復帰値を指定します。

name

“esi.cmd.normalends”を指定します。

esi.cmd.normalends

valuetype

パラメタに指定する値のタイプを指定します。

Direct

正常とみなす復帰値を指定します。

1,2,3