newRelationship
This method enables new document associations.
Java class | |
---|---|
Request | web/wwwroot/ws/java/document/NewRelationshipRequestType.java |
Return | web/wwwroot/ws/java/document/NewRelationshipResponseType.java |
Request:
ID | Required | Description |
---|---|---|
DocumentID | X | Document ID #. |
RevisionID | Revision ID #. If not informed, the current revision of the document will be used. | |
CategoryID | X | Category ID #. |
ToAssociate_DocumentID | X | ID # of the associated document. |
ToAssociate_RevisionID | ID # of the revision referring to the associated document. If not informed, the current revision of the document will be used. | |
ToAssociate_CategoryID | X | ID # of the category referring to the associated document. |
RelationshipType | X | Relationship type: 1 - Related documents; 2 - Composed of; 3 - Contract addendum; 4 - Addendum contract; 5 - Document translation. |
Translate_NotifyConfig | Translation revision notification configuration: 1 - Notify when creating the revision; 2 - Notify when closing the revision. | |
Contract_UpdateContractValidity | Insert value 1 to update the validity of the contract with the validity of the addendum contract. | |
Contract_SaveCommonAttributes | Insert value 1 to save attributes in common from the addendum contract to the contract. |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:document">
<soapenv:Header/>
<soapenv:Body>
<urn:newRelationship>
<!--You may enter the following 10 items in any order-->
<urn:DocumentID>?</urn:DocumentID>
<urn:RevisionID>?</urn:RevisionID>
<urn:CategoryID>?</urn:CategoryID>
<urn:ToAssociate_DocumentID>?</urn:ToAssociate_DocumentID>
<urn:ToAssociate_RevisionID>?</urn:ToAssociate_RevisionID>
<urn:ToAssociate_CategoryID>?</urn:ToAssociate_CategoryID>
<urn:RelationshipType>?</urn:RelationshipType>
<urn:Translate_NotifyConfig>?</urn:Translate_NotifyConfig>
<urn:Contract_UpdateContractValidity>?</urn:Contract_UpdateContractValidity>
<urn:Contract_SaveCommonAttributes>?</urn:Contract_SaveCommonAttributes>
</urn:newRelationship>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID | Description |
---|---|
Status | SUCCESS: SUCCESS FAILURE: FAILURE |
Code | Displayed code: • 0 - No error (record created successfully); • 1 - Document could not be found (document ID #); • 2 - Value (inserted value) is not valid for the parameter (field name); • 3 - Revision under approval; • 4 - Document being indexed; • 5 - Cancelled document; • 6 - Record already associated; • 7 - The related document cannot be in the same language as, or be related to a translation of, the current document; • 8 - The document is not a contract addendum; • 9 - The respective addendum of this association is already part of another contract structure; • 10 - Category does not allow relationships involving translation documents; • 11 - Field (field name) not inserted; • 12 - An instance cannot be associated with itself; • 99 - Return not expected by the system. |
Detail | Message detailing the error or success in the execution of the method. |