AnsweredAssumed Answered

How change exception message in a child-association

Question asked by zlucy82 on Jun 12, 2018
Latest reply on Jun 13, 2018 by zlucy82

Hi, i have created this child-association in Alfresco:

<child-association name="da:mcAssociation">
<title>Association</title>
  <source>
    <mandatory>false</mandatory>
    <many>true</many>
   </source>
  <target>
   <class>cm:content</class>
   <mandatory>false</mandatory>
   <many>true</many>
  </target>
<duplicate>false</duplicate>
<propagateTimestamps>false</propagateTimestamps>
</child-association>


I have setted the "duplicate" tag to "false" because i don't want that duplicate node names are found within a set of children for the parent, so, when i tried to associated a duplicated child-node to a parent, i receive this exception:

"org.alfresco.service.cmr.repository.CyclicChildRelationshipException: Child Association Cycle detected hitting nodes: [1415]".

 

My goal is to change this exception message and customize it, is possible to change it?

 

Thank You.

Outcomes