Hi!
I have a custom behaviour that is bind to onCreateNode. This works perfectly when I add content manually via Alfresco Explorer.
But when I use a Java OpenCMIS REST/ATOM client to create content the custom behaviour isn't triggered.
The code in the cmis client looks like this:
Document sammanstallning = inbox.createDocument(
properties, contentStream, VersioningState.NONE);
The actual content is created as it should in the inbox folder, it's just that the custom behaviour isn't triggered.
The custom behaviour code looks like this:
this.onCreateNode = new JavaBehaviour(this, "onCreateNode",
NotificationFrequency.TRANSACTION_COMMIT);
this.policyComponent.bindClassBehaviour(QName.createQName(
NamespaceService.ALFRESCO_URI, "onCreateNode"), QName
.createQName(UUModelConstants.NAMESPACE_UU_CONTENT_MODEL,
UUModelConstants.TYPE_XML_STRUCT), this.onCreateNode);
public void onCreateNode(ChildAssociationRef childAssRef) {
Here goes the code….
}
Has anyone experienced this problem?
Regards
/Oskar