The Configurator XML interface lets you copy and save a previously saved configuration. The copy request is processed separately from, and supersedes any other elements included in the same request. Therefore, if the configCopy attribute is included in the request and its value is true, then the only operation performed during that post to the servlet will be the configuration copy. Any other elements/attributes in the request will be ignored.
The COP XML request must include these attributes to copy a configuration.
CONFIGURATION configId solutionId configCopy copyName
The COP XML response may include these elements and attributes to return information about a copied configuration.
ConfigCopy configId solutionId configCopy copyName Copy status configId
Attributes are:
Specifies the id of the configuration that you want to copy. |
|
Indicates the solution for the configuration. (A solution is the implementation of the PeopleSoft Configurator application.) |
|
Indicates that this is a copy operation. |
|
Indicates the name to give to the new copy of the configuration. |
The following is a sample copy request:
<CONFIGURATION configId="1438491808" solutionId="TelcoDemo" configCopy="true" copyName="New Compound"/>
The Copy element and its attributes status and configId are returned in the response from a configCopy request. The attribute status indicates the results of the copy operation. The following lists valid status codes and descriptions:
0 |
Copy was successful. |
101 |
Invalid solution ID. |
102 |
Invalid Config ID. |
103 |
Solution doesn't allow new configurations. |
104 |
Database error on save. |
The attribute configId is the configId of the new copy of the configuration if the copy was successful, otherwise it is 0.
The following is a sample response for a SUCCESSFUL copy:
<ConfigCopy solutionId="TelcoDemo" configId="1438491808" copyName="New Compound"><Copy status="0" configId="932435623"/></ConfigCopy>
The following is a sample response for an UNSUCCESSFUL copy:
<ConfigCopy solutionId="TelcoDemo" configId="1438491808" copyName="New Compound"><Copy status="102" configId="0"/></ConfigCopy>