AnsweredAssumed Answered

Rules not firing when moving nodes from custom store

Question asked by tfrith on Oct 14, 2010
Latest reply on Oct 18, 2010 by derek
We've created a new store (workspace://hiddenStore):

StoreRef storeRef = new StoreRef(protocol, identifier);
storeRef = this.nodeService.createStore(protocol, identifier);

We've got a space (in workspace://SpacesStore) with some inbound/update rules on it.

We have a script that moves a node from hiddenStore to SpacesStore into this space.

The node is moved properly but none of the rules fire (inbound or update).  However, when I manage the rules for the space and "Reapply rules to space" they are triggered for the node.

Also, if I directly add a node to the space (using Alfresco Explorer, CIFS, FTP) then the rules are triggered as expected.

And, if the same script moves a node into that space from within SpacesStore the rules are triggered.

I don't see any rule-related logging during the move.

So…why are rules not triggered when moving nodes from my custom store?  And is there anything I can set on that store so that the rules do work?