In addition to retrieving values, your script’s end user may need to set values in order for a task to be completed. CIM has a text-based interface, and users can input information as shown by the bold line in the following example, which allows the user to enter a value for the serverInstanceName
property:
<task id="CreateJBossAppServerInstanceTask"
class="atg.cim.jboss.CreateJbossAppServerInstanceTask">
<property name="serverInstanceName">
<value>pub_commerce</value>
<input type="text">
<label>Enter a unique server instance name:</label>
</input>
etc.
Note that if you use a SelectProvider
to set a property, such as the serverInstanceName
in the sample above, that SelectProvider
must have that property, and it must be of the same type.
CIM supports the following types of input:
text
—User enters plain text.select
—User selects from a provided list of options using numeric hotkeys. This option requires that you write a customer Java class that implementsiSelectProvider
. Identify this class in theselectprovider
attribute for theinput
tag as shown:<input type="select" selectprovider="
provider_class
">See the Creating Select Providers section for information.
password
—Text the user enters is masked by asterisks (*) in the user interface.path
—User enters a path to an item; this option includes tab completion for quicker input.