N1 Service Provisioning System 4.1 リファレンスガイド

置換変数の使用

単純置換変数は、構成ファイルを含むすべての入力ソースで使用できます。 また外部コンポーネント置換変数と対象置換変数は、installSteps、uninstallSteps、controlService、executionPlans の varList/var のデフォルト値など多くの場合に使用できます。

以下に、どの入力ソースでどの種類の置換変数を使用できるかを列挙した完全な一覧を示します。

入力ソース 

使用可能な変数の種類 

<component>/<varList>/<var>/default attribute 

variable settings override value 

  • コンポーネント置換参照

  • ホスト置換参照

  • 外部コンポーネント置換参照(プライマリコンポーネントとしての入れ子および依存先も含む)

  • セッション変数参照

入力ソース 

使用可能な変数の種類 

<component>/<installList>/<installSteps>/ <paramList>/<param>/default attribute 

<component>/<uninstallList>/<uninstallSteps>/<paramList>/<param> \ 

/default attribute 

<component>/<controlList>/<control>/ <paramList>/<param>/default attribute 

<component>/<snapshotList>/<snapshot>/ <paramList>/<param>/default attribute 

  • コンポーネント置換参照

  • ホスト置換参照

  • 外部コンポーネント置換参照

  • セッション変数参照

入力ソース 

使用可能な変数の種類 

<component>/<installList>/<installSteps>/ <varList>/<var>/default attribute 

<component>/<uninstallList>/<uninstallSteps>/ < varList>/<var>/default attribute 

<component>/<controlList>/<control>/ < varList>/<var>/default attribute 

<component>/<snapshotList>/<snapshot>/<varlList>/<var>/default attribute 

  • (以前宣言された) 局所変数置換参照

  • パラメタ置換参照

  • コンポーネント置換参照

  • ホスト置換参照

  • 外部コンポーネント置換参照

  • セッション変数参照

入力ソース 

使用可能な変数の種類 

<component>/<installList>/<installSteps>/child steps 

<component>/<uninstallList>/<uninstallSteps>/child steps 

<component>/<controlList>/<control>/child steps 

<component/<snapshotList>/<snapshot>/<prepare>/child steps 

<component/<snapshotList>/<snapshot>/<capture>/child steps 

<component/<snapshotList>/<snapshot>/<cleanup>/child steps 

  • 局所変数置換参照

  • パラメタ置換参照

  • コンポーネント置換参照

入力ソース 

使用可能な変数の種類 

<component>/<resourceRef>/<resource> 

<component>/installPath 

  • コンポーネント置換参照 (rsrcInstallPath を除く)

入力ソース 

使用可能な変数の種類 

<component>/<diff>/<ignore> 

構成ファイル 

コンポーネント置換参照  

入力ソース 

使用可能な変数の種類 

<executionPlan>/<paramList>/<param>/default attribute 

セッション変数参照 

入力ソース 

使用可能な変数の種類 

<executionPlan>/<varList>/<var>/default attribute 

<executionPlan>/*/<inlineSubplan>/<varList>/<var>/default attribute 

  • セッション変数参照

  • (以前宣言された) 局所変数置換参照

  • 包含するプランの非表示ではない局所変数置換参照

  • 非表示ではないパラメタ置換参照

  • ホスト置換参照 (単純プランとサブプランのみ)

  • 外部コンポーネント置換参照 (単純プランとサブプランのみ。プライマリコンポーネントとしてのコンテナ、入れ子、最上位、依存先は除く)

入力ソース 

使用可能な変数の種類 

<executionPlan>/*/child steps 

  • 局所変数置換参照

  • 包含するプランの非表示ではない局所変数置換参照

  • 非表示ではないパラメタ置換参照

入力ソース 

使用可能な変数の種類 

hostAttributes 

セッション変数参照 

以下のコンポーネント構成属性は、その属性の右にある置換変数の定義を含むことができます。

親要素 

置換可能な属性 

capture/addFile 

component 

installSpec 

displayName 

installPath 

name 

installSpec 

path 

installSpec 

permissions 

installSpec 

user 

installSpec 

installSpec 

installSpec 

group 

deployMode 

diffDeploy 

diff/ignore 

path  

varList/var 

default 

paramList/param 

default 

capture/addFile 

path 

以下のコンポーネントまたはプラン内の手順の構成属性は、その属性の右にある置換変数の定義を含むことができます。

親要素 

置換可能な属性 

argList/arg 

value 

execJavaexecJavaexecNative 

classNameclassPathdir 

execNative/ouputFile 

name 

execNative/errorFile 

name 

execNative/env 

name 

execNative/env 

value 

execNative/exec 

cmd 

execNative/exec/arg 

value 

execNative/shell 

cmd 

execNative/shell 

<body> 

execNative/successCriteria 

outputMatches 

execNative/successCriteria 

errorMatches 

execNative/inputText 

<body> 

execNative/inputFile 

name 

execNative 

if/condition/istrue 

if/condition/equals 

if/condition/equals 

if/condition/matches 

if/condition/matches 

userToRunAs 

value 

value1 

value2 

value 

pattern 

processTest 

processNamePattern 

processTest 

raise 

retarget 

retarget/varList/var 

user 

message 

host 

default 

sendCustomEvent 

message 

transform 

input 

transform 

output 

transform/stylesheet 

<body> 

transform/subst 

match 

transform/subst 

replace 

transform/source 

name 

uninstallComponent 

installPath 

urlTest 

url 

urlTest 

pattern 

以下のプラン構成属性は、その属性の右にある置換変数の定義を含むことができます。

親要素 

置換可能な属性 

varList/var 

default 

以下のインストール済みコンポーネントターゲッター構成属性は、その属性の右にある置換変数の定義を含むことができます。

親要素 

置換可能な属性 

installedComponent 

installedComponent 

systemType 

systemType 

toplevelRef 

toplevelRef 

installPath 

host 

installPath 

host 

installPath 

host 

以下のリポジトリコンポーネントターゲッター構成属性は、その属性の右にある置換変数の定義を含むことができます。

親要素 

置換可能な属性 

component 

toplevelRef 

host 

host