getAssociationDefinitionsByName

Gets the association definitions that are connected to a specified object type.

Parameters

moduleName is a module that the object type belongs to.

Returns

An array of AssociationDefinition objects for the given object type is returned.

Errors

ObjectTypeDoesNotExistException
The object specified by moduleName and objectTypeName does not exist in module moduleName.
InvalidArgumentException
The moduleName or objectTypeName object is null or an empty String.
java.lang.Exception
A system error occurred when the request was being processed.
AccessException
The user does not have access to the business object.

Sample request

<soapenv:Envelope 
	xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 	xmlns:ws="http://ws.tririga.com">
   <soapenv:Body>
      <ws:getAssociationDefinitions>
         <ws:objectTypeId>10002873</ws:objectTypeId>
      </ws:getAssociationDefinitions>
   </soapenv:Body>
</soapenv:Envelope>

Sample response

<soap:Envelope 
	xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Body>
      <getAssociationDefinitionsResponse xmlns="http://ws.tririga.com">
         <out>
            <ns1:AssociationDefinition xmlns:ns1="http://dto.ws.tririga.com">
               <associatedModuleId xmlns="http://dto.ws.tririga.com">21</associatedModuleId>
               <associatedObjectTypeId xmlns="http://dto.ws.tririga.com">10000323</associatedObjectTypeId>
               <associationName xmlns="http://dto.ws.tririga.com">Food Service Contract</associationName>
               <inverseAssociationName xmlns="http://dto.ws.tririga.com">Food Service Contract For</inverseAssociationName>
               <moduleName xsi:nil="true" xmlns="http://dto.ws.tririga.com"/>
               <objectTypeName xsi:nil="true" xmlns="http://dto.ws.tririga.com"/>
               <sourceModuleId xmlns="http://dto.ws.tririga.com">6</sourceModuleId>
               <sourceObjectTypeId xmlns="http://dto.ws.tririga.com">10002873</sourceObjectTypeId>
            </ns1:AssociationDefinition>         </out>
      </getAssociationDefinitionsResponse>
   </soap:Body>
</soap:Envelope>