The Configurator XML interface lets you retrieve information about a model, including:
Model name, version, and compile version, using attributes of the CONFIGURATION element.
Error messages for an invalid element name, attribute name, or attribute value; omitting an attribute; or an abnormal processing error.
A set of decision points, using the ALL attribute of the DECISION_POINTS element.
The COP XML request may include these elements and attributes to retrieve information about a model.
CONFIGURATION MODEL_ID LOCALE MODEL_VERSION COMPILE_VERSION DECISION_POINTS ALL
The COP XML response may include these elements and attributes to return information about a model.
CONFIGURATION MODEL_ID LOCALE MODEL_VERSION COMPILE_VERSION TOTAL_PRICE DECISION_POINTS DP NM ERROR
The CONFIGURATION element, and its MODEL_ID, MODEL_VERSION, and COMPILE_VERSION attributes let you retrieve the model version and model compile version.
Any COP XML request must include at least the top level CONFIGURATION element, with at least the MODEL_ID and MODEL_VERSION attributes. The value for the MODEL_ID attribute must be the name of a valid model. The value for the MODEL_VERSION attribute may be a valid version number, valid partial version number, or an empty string.
The CONFIGURATION element, without a value for its MODEL_VERSION attribute, lets you retrieve the latest version and compile version for the model.
Including in the REQUEST |
Causes the COP to return in the RESPONSE |
The CONFIGURATION element with:
|
The CONFIGURATION element with values of:
|
For example:
REQUEST |
RESPONSE |
|
|
The CONFIGURATION element, with a valid value (full or partial version) for its MODEL_VERSION attribute lets you retrieve the latest version and compile version for the given version.
Including in the REQUEST |
Causes the COP to return in the RESPONSE |
The CONFIGURATION element with valid values for:
|
The CONFIGURATION element with values of:
|
For example:
REQUEST |
RESPONSE |
|
|
|
|
Note. The response for any valid request always includes the full model version and compile version. You may want to include the version and compile version from the first response in all subsequent requests.
An abnormal processing error or a request with invalid or omitted information causes the COP XML to return an error message.
Including in the REQUEST |
Causes the COP XML to return in the RESPONSE |
One of the following:
OR omitting a required attribute |
The ERROR element as a child element of the CONFIGURATION element. The ERROR element’s content is a textual description of the error. |
For example:
REQUEST |
RESPONSE |
(An invalid element name)
|
|
(An invalid attribute name)
|
|
(An invalid value for an attribute)
|
|
(An invalid value for an attribute)
|
|
(Omitting the required MODEL_VERSION attribute)
|
|
The DECISION_POINTS element and its ALL attribute let you retrieve two different sets of decision points for the model.
The DECISION_POINTS element, with its ALL attribute set to “true" lets you retrieve every decision point for the model.
By default, including in the REQUEST the DECISION_POINTS element also includes the element’s ALL attribute with its value set to true.
REQUEST |
RESPONSE |
|
|
|
Note. Either request in the example causes the COP to return in the RESPONSE the DECISION_POINTS element with its ALL attribute set to “true", and, as child elements, all of the DP elements for the model. The name of each decision point is the value of the NM attribute for each DP element.
The DECISION_POINTS element, with its ALL attribute set to “false" lets you retrieve every public decision point for the model.
Including in the REQUEST |
Causes the COP to return in the RESPONSE |
The DECISION_POINTS element, with its ALL attribute set to “false."
|
The CONFIGURATION element with values of:
|
For example:
REQUEST |
RESPONSE |
|
Causes the COP to return only the public decision points for the Sample model. |