AnsweredAssumed Answered

content created in JavaScript and rule applied

Question asked by kiri31 on Apr 20, 2009
Hi,

I have a problem. I created a space, and I create a rule on this space. this rule add a workflow to the content which is added in to this space. When I add a content with the button, there is no problem. But when I create a content with a JavaScript, the rule is not applied.
var new1 = space.parent.parent.childByNamePath("folder_test");
var doc1 = new1.createNode("content_test.txt", "cm:content");
I also tried with createFile instead of createNode but the result is the same.

Thanks for you help

Outcomes