10-28-2014 08:23 PM
<mandatory enforced="false">true</mandatory>
in the content model. Currently using Alfresco 4.1.4 (super old I know - client requirement.)
Map<QName, Serializable> props = new HashMap<QName, Serializable>();
props.put(ContentModel.PROP_NAME, id);
props.put(MyModel.PROP_ID, id);
props.put(MyModel.PROP_PERIOD, "period");
props.put(MyModel.ASSOC_BUSINESS, myBusinessNodeRef);
ChildAssociationRef createdNodeChildRef = nodeService.createNode(
parentFolderNodeRef,
ContentModel.ASSOC_CONTAINS,
QName.createQName((String) props.get(ContentModel.PROP_NAME)),
MyModel.TYPE_MY_FOLDER,
props
);
<association name="myModel:business">
<title>Business</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>myOtherModel:BusinessClient</class>
<mandatory enforced="false">true</mandatory>
<many>false</many>
</target>
</association>
10-29-2014 04:07 AM
10-31-2014 01:13 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.