m (1 revision) |
m (1 revision) |
||
Ligne 1 : | Ligne 1 : | ||
− | |||
= CLC= | = CLC= | ||
− | |||
<onlyinclude> | <onlyinclude> | ||
− | + | The input file must be in JSONObject format and include SPD parameters for a specific profile. The file must be encoded in UTF-8 format. | |
<verttabber> | <verttabber> | ||
− | + | string= | |
− | + | The input structure for a ''string'' type is described below: | |
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
{ | { | ||
− | " | + | "Dialog name" : { |
− | " | + | "Input name" : "string" |
} | } | ||
} | } | ||
</source><br> | </source><br> | ||
− | ==== | + | ====Example==== |
− | |||
− | =====Profile | + | =====SPD Profile===== |
− | |||
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
Ligne 26 : | Ligne 22 : | ||
<dialog step="Step1"> | <dialog step="Step1"> | ||
<input name="NAME_PARAM1" title="PERSON NAME" default="birit" type="string" required="true"> | <input name="NAME_PARAM1" title="PERSON NAME" default="birit" type="string" required="true"> | ||
− | <description> | + | <description>Please enter the person name</description> |
</input> | </input> | ||
</dialog> | </dialog> | ||
<dialog step="Step2"> | <dialog step="Step2"> | ||
<input name="NAME_PARAM2" title="PERSON NAME" default="birit" type="string" required="true"> | <input name="NAME_PARAM2" title="PERSON NAME" default="birit" type="string" required="true"> | ||
− | <description> | + | <description>Please enter the person name</description> |
</input> | </input> | ||
</dialog> | </dialog> | ||
Ligne 42 : | Ligne 38 : | ||
</source><br> | </source><br> | ||
− | ===== | + | =====Input File for Install Profile===== |
− | |||
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
{ | { | ||
− | " | + | "Step1" : { |
"NAME_PARAM1" : "Kate" | "NAME_PARAM1" : "Kate" | ||
}, | }, | ||
− | " | + | "Step2" : { |
"NAME_PARAM2" : "John" | "NAME_PARAM2" : "John" | ||
} | } | ||
Ligne 56 : | Ligne 51 : | ||
|-| | |-| | ||
− | + | Boolean= | |
− | + | The input structure for a ''boolean'' type is described below: | |
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
{ | { | ||
− | " | + | "Dialog name" : { |
− | " | + | "Input name" : true/false |
} | } | ||
} | } | ||
</source><br> | </source><br> | ||
− | ==== | + | ====Example==== |
− | |||
− | =====Profile | + | =====SPD Profile===== |
− | |||
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
<profile name="Install"> | <profile name="Install"> | ||
<dialog step="Step1"> | <dialog step="Step1"> | ||
<input name="STATUS" title="status" type="boolean" required="true"> | <input name="STATUS" title="status" type="boolean" required="true"> | ||
− | <description> | + | <description>status field</description> |
</input> | </input> | ||
</dialog> | </dialog> | ||
Ligne 86 : | Ligne 79 : | ||
</source><br> | </source><br> | ||
− | ===== | + | =====Input File for Install Profile===== |
− | |||
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
{ | { | ||
− | " | + | "Step1" : { |
− | " | + | "STATUS" : true |
} | } | ||
} | } | ||
Ligne 97 : | Ligne 89 : | ||
|-| | |-| | ||
− | + | Integer= | |
− | + | The input structure for an ''integer'' type is described below: | |
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
{ | { | ||
− | " | + | "Dialog name" : { |
− | " | + | "Input name" : <integer> |
} | } | ||
} | } | ||
</source><br> | </source><br> | ||
− | ==== | + | ====Example==== |
− | |||
− | =====Profile | + | =====SPD Profile===== |
− | |||
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
<profile name="Install"> | <profile name="Install"> | ||
<dialog step="Step1"> | <dialog step="Step1"> | ||
<input name="NUMBER" title="number" type="integer" required="true"> | <input name="NUMBER" title="number" type="integer" required="true"> | ||
− | <description> | + | <description>number field</description> |
</input> | </input> | ||
</dialog> | </dialog> | ||
Ligne 127 : | Ligne 117 : | ||
</source><br> | </source><br> | ||
− | ===== | + | =====Input File for Install Profile===== |
− | |||
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
{ | { | ||
− | " | + | "Step1" : { |
− | " | + | "NUMBER" : 132 |
} | } | ||
} | } | ||
Ligne 138 : | Ligne 127 : | ||
|-| | |-| | ||
− | + | Password= | |
− | + | The input structure for a ''password'' type is described below: | |
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
{ | { | ||
− | " | + | "Dialog name" : { |
− | " | + | "Input name" : "password" |
} | } | ||
} | } | ||
</source><br> | </source><br> | ||
− | {{NoteFormat| | + | {{NoteFormat|Input files that include sensitive data such as passwords should be encrypted using the SPD encrypt operation.}} |
− | ==== | + | ====Example==== |
− | |||
− | =====Profile | + | =====SPD Profile===== |
− | |||
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
<profile name="Install"> | <profile name="Install"> | ||
<dialog step="Step1"> | <dialog step="Step1"> | ||
<input name="PASSWORD" title="password" type="password" required="true"> | <input name="PASSWORD" title="password" type="password" required="true"> | ||
− | <description> | + | <description>password field</description> |
</input> | </input> | ||
</dialog> | </dialog> | ||
Ligne 170 : | Ligne 157 : | ||
</source><br> | </source><br> | ||
− | ===== | + | =====Input File for Install Profile===== |
− | |||
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
{ | { | ||
− | " | + | "Step1" : { |
− | " | + | "PASSWORD" : "xyz9846gdkjg" |
} | } | ||
} | } | ||
Ligne 181 : | Ligne 167 : | ||
|-| | |-| | ||
− | + | SelectOne= | |
− | + | The input structure for a ''selectOne'' type with an '''<objectselect>''' tag is described bellow: | |
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
{ | { | ||
− | " | + | "Dialog name" : { |
− | " | + | "Input name" : { |
− | " | + | "objectselect" : { |
− | " | + | "filter" : [{ |
− | " | + | "value" : "filter value", |
− | " | + | "name" : "filter name" |
} | } | ||
] | ] | ||
Ligne 199 : | Ligne 185 : | ||
</source><br> | </source><br> | ||
− | {{NoteFormat|CLC | + | {{NoteFormat|CLC intersects (''AND'') filters defined in the SPD file and input file for a ''selectOne'' input. The filter criteria should be different in an SPD input file and filter names should differ in the same filter definition.}} |
− | ==== | + | ====Example==== |
− | |||
− | =====Profile | + | =====SPD Profile===== |
− | |||
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
<profile name="Install"> | <profile name="Install"> | ||
<dialog step="Step1"> | <dialog step="Step1"> | ||
<input name="APP_OBJ_SELECT_ONE" title="Application Name" hidden="false" type="selectOne" default=""> | <input name="APP_OBJ_SELECT_ONE" title="Application Name" hidden="false" type="selectOne" default=""> | ||
− | <description> | + | <description>select application</description> |
<objectselect> | <objectselect> | ||
<filter value="CfgApplication" name="type"/> | <filter value="CfgApplication" name="type"/> | ||
Ligne 224 : | Ligne 208 : | ||
</source><br> | </source><br> | ||
− | ===== | + | =====Input File for Install Profile===== |
− | |||
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
{ | { | ||
− | " | + | "Step1" : { |
"APP_OBJ_SELECT_ONE" : { | "APP_OBJ_SELECT_ONE" : { | ||
− | " | + | "objectselect" : { |
− | " | + | "filter" : [{ |
− | " | + | "value" : "SIP_lrm26", |
− | " | + | "name" : "name" |
} | } | ||
] | ] | ||
Ligne 243 : | Ligne 226 : | ||
|-| | |-| | ||
− | + | SelectMultiple= | |
− | + | The input structure for a ''selectMultiple'' type with '''<objectselect>''' tag is described below: | |
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
{ | { | ||
− | " | + | "Dialog name" : { |
− | " | + | "Input name" : { |
− | " | + | "objectselect" : { |
− | " | + | "filter" : [{ |
− | " | + | "value" : "filter value", |
− | " | + | "name" : "filter name" |
} | } | ||
] | ] | ||
Ligne 261 : | Ligne 244 : | ||
</source><br> | </source><br> | ||
− | + | Filters defined in an SPD input file are joined in union (''OR'') and then intersect (''AND'') with filters defined in an SPD file for a ''selectMultiple'' input. | |
− | ==== | + | ====Example==== |
− | |||
− | =====Profile | + | =====SPD Profile===== |
− | |||
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
<profile name="Install"> | <profile name="Install"> | ||
<dialog step="Step1"> | <dialog step="Step1"> | ||
<input name="APP_OBJ_SELECT_MULTIPLE" title="Application Name" hidden="false" type="selectMultiple" default=""> | <input name="APP_OBJ_SELECT_MULTIPLE" title="Application Name" hidden="false" type="selectMultiple" default=""> | ||
− | <description> | + | <description>select application</description> |
<objectselect> | <objectselect> | ||
<filter value="CfgApplication" name="type"/> | <filter value="CfgApplication" name="type"/> | ||
Ligne 286 : | Ligne 267 : | ||
</source><br> | </source><br> | ||
− | ===== | + | =====Input File for Install Profile===== |
− | |||
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
{ | { | ||
− | " | + | "Step1" : { |
"APP_OBJ_SELECT_MULTIPLE" : { | "APP_OBJ_SELECT_MULTIPLE" : { | ||
− | " | + | "objectselect" : { |
− | " | + | "filter" : [{ |
− | " | + | "value" : "SIP_lrm26", |
− | " | + | "name" : "name" |
},{ | },{ | ||
"value" : "SIP_lrm27", | "value" : "SIP_lrm27", | ||
− | " | + | "name" : "name" |
} | } | ||
] | ] | ||
Ligne 307 : | Ligne 287 : | ||
</source><br> | </source><br> | ||
− | + | The operation returns two applications named '''SIP_lrm26''' and '''SIP_lrm27'''. | |
|-| | |-| | ||
− | + | Selection Tag= | |
− | + | The input structure for a ''selectOne/selectMultiple/boolean'' type with '''<selection>''' tag is described below: | |
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
{ | { | ||
− | " | + | "Dialog name" : { |
− | " | + | "Input name" : { |
− | " | + | "selection" : { |
"option" : [{ | "option" : [{ | ||
− | " | + | "value" : "option value assigned to the input parameter", |
− | " | + | "name" : "option name is displayed in UI" |
} | } | ||
] | ] | ||
Ligne 328 : | Ligne 308 : | ||
</source><br> | </source><br> | ||
− | CLC | + | CLC selects options defined in the SPD input file. Multiple options can be specified only for the ''selectMultiple'' input type. |
− | ==== | + | ====Example==== |
− | |||
− | =====Profile | + | =====SPD Profile===== |
− | |||
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
<profile name="Install"> | <profile name="Install"> | ||
<dialog step="Application Parameters"> | <dialog step="Application Parameters"> | ||
<input name="DATA_MODEL" title="Binary Version (32-bit or 64-bit)" default="64" type="selectOne" required="true"> | <input name="DATA_MODEL" title="Binary Version (32-bit or 64-bit)" default="64" type="selectOne" required="true"> | ||
− | <description> | + | <description>This parameter defines the 32-bit or the 64-bit version of the binary to be deployed. </description> |
<selection> | <selection> | ||
<option name="32" value="32"/> | <option name="32" value="32"/> | ||
Ligne 354 : | Ligne 332 : | ||
</source><br> | </source><br> | ||
− | ===== | + | =====Input File for Install Profile===== |
− | |||
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
{ | { | ||
− | " | + | "Application Parameters" : { |
− | " | + | "DATA_MODEL" : { |
− | " | + | "selection" : { |
"option" : [{ | "option" : [{ | ||
− | " | + | "value" : "64", |
− | " | + | "name" : "64" |
} | } | ||
] | ] | ||
Ligne 375 : | Ligne 352 : | ||
{{NoteFormat| | {{NoteFormat| | ||
<ul> | <ul> | ||
− | <li> | + | <li>If the input file does not specify a value for a SPD parameter, the value defined in the '''default''' attribute of the input element will be used.</li> |
− | <li> | + | <li>If an SPD input element has the '''required''' attribute set to <tt>true</tt>, but there is no corresponding input value that is supplied in either the SPD (as a default) or in the input file, then the SPD execution fails.</li> |
− | <li> | + | <li>If an SPD input element has the '''readonly''' attribute value set to <tt>true</tt>, then the value in the '''default''' attribute value is used for the execution, if defined. |
− | + | If the '''readonly''' attribute value is set to true, '''required''' is set to <tt>false</tt>, and the '''default''' attribute is not defined, then the following logic is used for input value determination: | |
<ol> | <ol> | ||
− | <li> | + | <li>For the ''boolean'' input type, the input value is set to <tt>false</tt>.</li> |
− | <li> | + | <li>For the ''string'' and ''password'' input types, the input value is set to <tt>""</tt>.</li> |
− | <li> | + | <li>For the ''integer'' input type, the input is not propagated.</li> |
</ol></li> | </ol></li> | ||
− | <li> | + | <li>If a dialog '''cond''' attribute value evaluates to false, the dialog is skipped by the CLC tool. |
− | + | Example: | |
<source lang="xml" enclose="div"> | <source lang="xml" enclose="div"> | ||
<dialog step="Role input" cond="false"> | <dialog step="Role input" cond="false"> | ||
<input name="ROLE" title="Role" hidden="false" type="selectOne" required="true"> | <input name="ROLE" title="Role" hidden="false" type="selectOne" required="true"> | ||
− | <description> | + | <description>Please indicate the role</description> |
<objectselect> | <objectselect> | ||
<filter value="CfgRole" name="type"/> | <filter value="CfgRole" name="type"/> |
Version du juillet 1, 2015 à 23:24
CLC
The input file must be in JSONObject format and include SPD parameters for a specific profile. The file must be encoded in UTF-8 format.
The input structure for a string type is described below:
{
"Dialog name" : {
"Input name" : "string"
}
}
Example
SPD Profile
<profile name="Install">
<dialog step="Step1">
<input name="NAME_PARAM1" title="PERSON NAME" default="birit" type="string" required="true">
<description>Please enter the person name</description>
</input>
</dialog>
<dialog step="Step2">
<input name="NAME_PARAM2" title="PERSON NAME" default="birit" type="string" required="true">
<description>Please enter the person name</description>
</input>
</dialog>
<execution>
<script>
log('string test' );
</script>
</execution>
</profile>
Input File for Install Profile
{
"Step1" : {
"NAME_PARAM1" : "Kate"
},
"Step2" : {
"NAME_PARAM2" : "John"
}
}
The input structure for a boolean type is described below:
{
"Dialog name" : {
"Input name" : true/false
}
}
Example
SPD Profile
<profile name="Install">
<dialog step="Step1">
<input name="STATUS" title="status" type="boolean" required="true">
<description>status field</description>
</input>
</dialog>
<execution>
<script>
log('boolean test');
</script>
</execution>
</profile>
Input File for Install Profile
{
"Step1" : {
"STATUS" : true
}
}
The input structure for an integer type is described below:
{
"Dialog name" : {
"Input name" : <integer>
}
}
Example
SPD Profile
<profile name="Install">
<dialog step="Step1">
<input name="NUMBER" title="number" type="integer" required="true">
<description>number field</description>
</input>
</dialog>
<execution>
<script>
log('number test');
</script>
</execution>
</profile>
Input File for Install Profile
{
"Step1" : {
"NUMBER" : 132
}
}
The input structure for a password type is described below:
{
"Dialog name" : {
"Input name" : "password"
}
}
Example
SPD Profile
<profile name="Install">
<dialog step="Step1">
<input name="PASSWORD" title="password" type="password" required="true">
<description>password field</description>
</input>
</dialog>
<execution>
<script>
log('password test');
</script>
</execution>
</profile>
Input File for Install Profile
{
"Step1" : {
"PASSWORD" : "xyz9846gdkjg"
}
}
The input structure for a selectOne type with an <objectselect> tag is described bellow:
{
"Dialog name" : {
"Input name" : {
"objectselect" : {
"filter" : [{
"value" : "filter value",
"name" : "filter name"
}
]
}
}
}
}
Example
SPD Profile
<profile name="Install">
<dialog step="Step1">
<input name="APP_OBJ_SELECT_ONE" title="Application Name" hidden="false" type="selectOne" default="">
<description>select application</description>
<objectselect>
<filter value="CfgApplication" name="type"/>
</objectselect>
</input>
</dialog>
<execution>
<script>
log('test select one' );
</script>
</execution>
Input File for Install Profile
{
"Step1" : {
"APP_OBJ_SELECT_ONE" : {
"objectselect" : {
"filter" : [{
"value" : "SIP_lrm26",
"name" : "name"
}
]
}
}
}
}
The input structure for a selectMultiple type with <objectselect> tag is described below:
{
"Dialog name" : {
"Input name" : {
"objectselect" : {
"filter" : [{
"value" : "filter value",
"name" : "filter name"
}
]
}
}
}
}
Filters defined in an SPD input file are joined in union (OR) and then intersect (AND) with filters defined in an SPD file for a selectMultiple input.
Example
SPD Profile
<profile name="Install">
<dialog step="Step1">
<input name="APP_OBJ_SELECT_MULTIPLE" title="Application Name" hidden="false" type="selectMultiple" default="">
<description>select application</description>
<objectselect>
<filter value="CfgApplication" name="type"/>
</objectselect>
</input>
</dialog>
<execution>
<script>
log('test select multiple' );
</script>
</execution>
Input File for Install Profile
{
"Step1" : {
"APP_OBJ_SELECT_MULTIPLE" : {
"objectselect" : {
"filter" : [{
"value" : "SIP_lrm26",
"name" : "name"
},{
"value" : "SIP_lrm27",
"name" : "name"
}
]
}
}
}
}
The operation returns two applications named SIP_lrm26 and SIP_lrm27.
The input structure for a selectOne/selectMultiple/boolean type with <selection> tag is described below:
{
"Dialog name" : {
"Input name" : {
"selection" : {
"option" : [{
"value" : "option value assigned to the input parameter",
"name" : "option name is displayed in UI"
}
]
}
}
}
}
CLC selects options defined in the SPD input file. Multiple options can be specified only for the selectMultiple input type.
Example
SPD Profile
<profile name="Install">
<dialog step="Application Parameters">
<input name="DATA_MODEL" title="Binary Version (32-bit or 64-bit)" default="64" type="selectOne" required="true">
<description>This parameter defines the 32-bit or the 64-bit version of the binary to be deployed. </description>
<selection>
<option name="32" value="32"/>
<option name="64" value="64"/>
</selection>
</input>
</dialog>
<execution>
<script>
log('test selection support' );
</script>
</execution>
Input File for Install Profile
{
"Application Parameters" : {
"DATA_MODEL" : {
"selection" : {
"option" : [{
"value" : "64",
"name" : "64"
}
]
}
}
}
}
- If the input file does not specify a value for a SPD parameter, the value defined in the default attribute of the input element will be used.
- If an SPD input element has the required attribute set to true, but there is no corresponding input value that is supplied in either the SPD (as a default) or in the input file, then the SPD execution fails.
- If an SPD input element has the readonly attribute value set to true, then the value in the default attribute value is used for the execution, if defined.
If the readonly attribute value is set to true, required is set to false, and the default attribute is not defined, then the following logic is used for input value determination:
- For the boolean input type, the input value is set to false.
- For the string and password input types, the input value is set to "".
- For the integer input type, the input is not propagated.
- If a dialog cond attribute value evaluates to false, the dialog is skipped by the CLC tool.
Example:
<dialog step="Role input" cond="false"> <input name="ROLE" title="Role" hidden="false" type="selectOne" required="true"> <description>Please indicate the role</description> <objectselect> <filter value="CfgRole" name="type"/> </objectselect> </input> </dialog>