[jira] [Commented] (COCOON3-101) Keep archetype synced

2012-05-24 Thread Hudson (JIRA)
[ https://issues.apache.org/jira/browse/COCOON3-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13282254#comment-13282254 ] Hudson commented on COCOON3-101: Integrated in Cocoon-trunk #180 (See

Re: [jira] [Commented] (COCOON3-101) Keep archetype synced

2012-05-24 Thread Thorsten Scherler
On 05/24/2012 09:29 AM, Hudson (JIRA) wrote: [ https://issues.apache.org/jira/browse/COCOON3-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13282254#comment-13282254 ] Hudson commented on COCOON3-101: Integrated

does flowscript also support sht like setTimeout and setInterval ??

2012-05-24 Thread Robby Pelssers
Hi guys, I was bulk processing DITA maps and topics from flowscript and noticed that following code is executed parallel. So basically the cocoon.processPipelineTo returns immediately so it seems. This results in max sessions reached to XMLDb and I run into an exception. Just checking what

RE: does flowscript also support sht like setTimeout and setInterval ?? [SOLVED]

2012-05-24 Thread Robby Pelssers
I found a nice article on stackoverflow showing how to create my own implementation in flowscript. I will of course first need to thoroughly test it but it looks promising so far ;-) var setTimeout, clearTimeout, setInterval, clearInterval; (function () { var timer = new

RE: does flowscript also support sht like setTimeout and setInterval ?? [SOLVED]

2012-05-24 Thread Robby Pelssers
Works nice !! function generateValuePropositions() { var id_collection = Collection.fromArray(getJson('getCommaSeparatedBasicTypeIds')); print('Starting generation of ' + id_collection.getLength() + ' value propositions!!'); var index = 0; id_collection.forEach( /** we write

RE: does flowscript also support sht like setTimeout and setInterval ?? [SOLVED]

2012-05-24 Thread Robby Pelssers
Damn... A woohoo'd a bit too early as I tested with a simplified version. setTimeout( function() { print('Generating value proposition ' + id); //This works just fine as there is no dependency on the environment -- Cocoon object },

RE: does flowscript also support sht like setTimeout and setInterval ?? [SOLVED]

2012-05-24 Thread Robby Pelssers
Ok... I worked around the issue by letting a Java component do all the work. This ensures that the flowscript is blocked until all files have been generated. function generateValuePropositions() { var ids = Collection.fromArray(getJson('getCommaSeparatedBasicTypeIds')).toList(); var