AnsweredAssumed Answered

identifying files that have been uploaded

Question asked by swithun on Feb 2, 2011
In Share (3.4c CE) I have a folder rule which is triggered when items are created or enter the folder. The rule applies various custom aspects to files matching the rule, and these aspects cause child nodes to be created.

Initially, the rule would be triggered by these child nodes, causing infinite recursion, as grandchildren and great-grandchildren were created. So I created another aspect, called Generated, and applied this to all the child nodes as they were created. The rule was modified, so that it would only be applied to nodes which didn't have the Generated aspect. This prevents the infinite recursion problem, but the rule is still too loose.

Is there a way to positively identify only nodes created from uploaded files? This could be via the rule interface, or in code, using an onCreateNode policy.

Thanks.

Outcomes