CSAssociatable[] assIns={(CSAssociatable)(client.getFile(new CSVPath(dcrFilePath)))};sFile.createParentAssociations(assIns, "Contains New Instance", false);
The association "type" is the value of the "Relationship" column in the "Find Related Files" dialog.
Associations could optionally be typed. At creation time, the association can be tagged with a given type. This provides a convenient mechanism for applications to keep track of only associations that they care about. It is assumed that applications would use appropriate namespacing to differentiate between association types.
CSAssociation[] csa = sFile.createParentAssociations(assIns, "Contains New Instance", false); logger.info("CSAssociation Type:"+csa[0].getType());
CSAssociation[] csa=csfile.getParentAssociations("Contains New Instance");