Comments on: Using the Javascript Console: Permission reporting http://www.techbits.de/2011/11/06/using-the-javascript-console-permission-reporting/ thoughts on hardware, software, development and tech news Mon, 02 May 2016 12:22:32 +0000 hourly 1 http://wordpress.org/?v=3.2.1 By: here http://www.techbits.de/2011/11/06/using-the-javascript-console-permission-reporting/comment-page-1/#comment-83104 here Fri, 01 Jun 2012 04:03:08 +0000 http://www.techbits.de/?p=364#comment-83104 This blog site has some very helpful info on it! Thanks for informing me. This blog site has some very helpful info on it! Thanks for informing me.

]]>
By: La consola Javascript de Alfresco Share - Blog - zylk.net http://www.techbits.de/2011/11/06/using-the-javascript-console-permission-reporting/comment-page-1/#comment-78323 La consola Javascript de Alfresco Share - Blog - zylk.net Sun, 27 Nov 2011 16:22:58 +0000 http://www.techbits.de/?p=364#comment-78323 [...] http://www.techbits.de/2011/11/06/using-the-javascript-console-permission-reporting/ o para precargar una estructura de objetos documentales: http://www.techbits.de/2011/10/18/using-the-javascript-console-creating-and-populating-datalists/   [...] [...] http://www.techbits.de/2011/11/06/using-the-javascript-console-permission-reporting/ o para precargar una estructura de objetos documentales: http://www.techbits.de/2011/10/18/using-the-javascript-console-creating-and-populating-datalists/   [...]

]]>
By: Florian http://www.techbits.de/2011/11/06/using-the-javascript-console-permission-reporting/comment-page-1/#comment-78011 Florian Mon, 07 Nov 2011 20:47:59 +0000 http://www.techbits.de/?p=364#comment-78011 Hi Peter, Thanks for your comment. I actually have thought about this a lot but haven't started implementing it yet because it is not trivial to put all my requirements together. My current idea would be to write most of it in Java and use Javascript only for the dynamic parts: - BatchProcessor is used for multi threading. - Recursion through all nodes (written in Java?). If you throw in multi threading you get the interesting problem that in some cases you don't want to process children before the parent hasn't been processed by another thread. - Branching should be controlled ideally by Javascript evaluators for maximum flexibility (is it fast enough to call those often?). - Transaction size should be configurable, so e.g. 100 documents can be updated in one transaction. - Failover to single document transactions in case of an error would be great. - The processing logic should either run as Javascript or run an arbitrary Action. - The whole batch processing should be an Action itself so you can invoke it on the fly. In projects I am currently only using recursive processing written in Java (single threaded) using batched transactions for larger updates. I'm wondering who would be the best person at DevCon to talk to about this. Hi Peter,

Thanks for your comment. I actually have thought about this a lot but haven’t started implementing it yet because it is not trivial to put all my requirements together. My current idea would be to write most of it in Java and use Javascript only for the dynamic parts:

- BatchProcessor is used for multi threading.
- Recursion through all nodes (written in Java?). If you throw in multi threading you get the interesting problem that in some cases you don’t want to process children before the parent hasn’t been processed by another thread.
- Branching should be controlled ideally by Javascript evaluators for maximum flexibility (is it fast enough to call those often?).
- Transaction size should be configurable, so e.g. 100 documents can be updated in one transaction.
- Failover to single document transactions in case of an error would be great.
- The processing logic should either run as Javascript or run an arbitrary Action.
- The whole batch processing should be an Action itself so you can invoke it on the fly.

In projects I am currently only using recursive processing written in Java (single threaded) using batched transactions for larger updates.

I’m wondering who would be the best person at DevCon to talk to about this.

]]>
By: Peter Monks http://www.techbits.de/2011/11/06/using-the-javascript-console-permission-reporting/comment-page-1/#comment-78006 Peter Monks Mon, 07 Nov 2011 16:10:02 +0000 http://www.techbits.de/?p=364#comment-78006 Have you considered enhancing the recurse() function to support transactional batching (ideally with optional parameters that allow the caller to configure batch size, if they wish)? This would be a great enhancement, as this function makes it trivial to accidentally get into trouble with long running transactions. Basically I'm envisaging something similar to the Java BatchProcessor functionality [1] in the Alfresco API. [1] http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/repo/batch/BatchProcessor.html Have you considered enhancing the recurse() function to support transactional batching (ideally with optional parameters that allow the caller to configure batch size, if they wish)? This would be a great enhancement, as this function makes it trivial to accidentally get into trouble with long running transactions.

Basically I’m envisaging something similar to the Java BatchProcessor functionality [1] in the Alfresco API.

[1] http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/repo/batch/BatchProcessor.html

]]>