You can use the property-file element to collect property values from a CIM user at runtime, using the following additional elements:

The following example shows how to collect property values at runtime:

<property-file file="atg/PropertyFile.properties">
  <property-group id="base">
    <property name="someProp">
      <value>${AppServerPortsProvider.httpPort}</value>
        <input type="text">
          <label>Prompt</label>
            <validator id="PortNumberValidator">
              <error-message>Error</error-message>
            </validator>
        </input>
      </value>
    </property >
  </property-group>
</property-file>

The dynamic value (${…}) replacement is similar to that used elsewhere in CIM (see Using Dynamic Values in Properties Files). The format is ${WORKER_ID.PROPERTY} where WORKER_ID is the ID of a validator, task, or provider. In the example above, AppServerPortsProvider is a provider ID.

You can use a worker object provided by CIM, or a custom worker object.


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices