AnsweredAssumed Answered

CMIS: Custom behaviour not triggered when creating content

Question asked by oskarelisson on Mar 15, 2011
Latest reply on Apr 1, 2011 by jgiffin
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",

            NamespaceService.ALFRESCO_URI, "onCreateNode"), QName
                  UUModelConstants.TYPE_XML_STRUCT), this.onCreateNode);

public void onCreateNode(ChildAssociationRef childAssRef) {

Here goes the code….

Has anyone experienced this problem?