Re: Runnable in flowscript?

2010-03-19 Thread Fawzib Rojas
.com] Sent: Friday, March 19, 2010 8:11 PM To: users@cocoon.apache.org Subject: RE: Runnable in flowscript? mm I actually was searching for the flowscript shipped with cocoon which is being called... But I can't seem to find it in the cocoon sources... Which version of cocoon are you using b

RE: Runnable in flowscript?

2010-03-19 Thread Robby Pelssers
t: RE: Runnable in flowscript? mm I actually was searching for the flowscript shipped with cocoon which is being called... But I can't seem to find it in the cocoon sources... Which version of cocoon are you using by the way? I'm trying to understand what the flowscript functio

RE: Runnable in flowscript?

2010-03-19 Thread Robby Pelssers
should set some Avalon context. You don't happen to have that script at hand? Robby -Original Message- From: Fawzib Rojas [mailto:f_ro...@spectron-msim.com] Sent: Friday, March 19, 2010 8:03 PM To: users@cocoon.apache.org Subject: Re: Runnable in flowscript? Output: fmt= pdf

Re: Runnable in flowscript?

2010-03-19 Thread Fawzib Rojas
Output: fmt= pdf2 output_stream = com.spectron.io.fileprogressoutputstr...@fc8361 I know that part works (i can access objects variables in thread) because I tested it with something like this: var length=0; var r = new java.lang.Runnable() { run: function() { while(true) length++

RE: Runnable in flowscript?

2010-03-19 Thread Robby Pelssers
ent: Friday, March 19, 2010 7:22 PM To: users@cocoon.apache.org Subject: Re: Runnable in flowscript? I changed the '' to {} like u said, not needed because when I dont use the thread it works. Same with the pipelines, they work when I don't use the thread (use_background_thread=false). I t

Re: Runnable in flowscript?

2010-03-19 Thread Fawzib Rojas
} ); } -----Original Message- From: Fawzib Rojas [mailto:f_ro...@spectron-msim.com] Sent: Friday, March 19, 2010 7:00 PM To: users@cocoon.apache.org Subject: Re: Runnable in flowscript? On 3/19/2010 1:56 PM, Robby Pelssers wrote: Function processPipelineTo([String] uri, [Obj

RE: Runnable in flowscript?

2010-03-19 Thread Robby Pelssers
still replace the '' by {} just to be sure output_stream.close(); } cocoon.sendPage( fmt+"_pipe/"+url, { file_name : output_file.getCanonicalPath() } ); } -Original Message- From: Fawzib Rojas [

Re: Runnable in flowscript?

2010-03-19 Thread Fawzib Rojas
On 3/19/2010 1:56 PM, Robby Pelssers wrote: Function processPipelineTo([String] uri, [Object] bizData, [java.io.OutputStream] stream) The api says is should be an object... So maybe try cocoon.processPipelineTo(fmt+"_pipe/"+url, {} ,output_stream); //using object literal Thats not it,

RE: Runnable in flowscript?

2010-03-19 Thread Robby Pelssers
aren't setting any... Cheers, Robby -Original Message- From: Fawzib Rojas [mailto:f_ro...@spectron-msim.com] Sent: Friday, March 19, 2010 6:43 PM To: users@cocoon.apache.org Subject: Re: Runnable in flowscript? Yes those are all typos the exception I'm getting is not typo relat

Re: Runnable in flowscript?

2010-03-19 Thread Fawzib Rojas
Yes those are all typos the exception I'm getting is not typo related. :) I'll post the real code I'm using for debugging: function create_pdf() { var use_background_thread=true; var path=cocoon.parameters["report"]; var fmt=cocoon.parameters["format"]; var queryInfo=getRequestPar

RE: Runnable in flowscript?

2010-03-19 Thread Robby Pelssers
age( "pdf-send-pipeline", { file_name : output_file.getCanonicalPath() } ); } //COMMENT: this bracket seems wrong } -Original Message- From: Fawzib Rojas [mailto:f_ro...@spectron-msim.com] Sent: Friday, March 19, 2010 3:41 PM To: users@cocoon.apa

Re: Runnable in flowscript?

2010-03-19 Thread Fawzib Rojas
On 3/19/2010 11:40 AM, Florent André wrote: Yi, Perhaps it's just an in mail typo error, but your "pdf-create-pipeline" spell in : On Fri, 19 Mar 2010 10:40:51 -0400, Fawzib Rojas wrote: cocoon.processPipelineTo("pdf-create-pipeline'',output_stream); output_stream.close();

Re: Runnable in flowscript?

2010-03-19 Thread Florent André
Yi, Perhaps it's just an in mail typo error, but your "pdf-create-pipeline" spell in : On Fri, 19 Mar 2010 10:40:51 -0400, Fawzib Rojas wrote: > > cocoon.processPipelineTo("pdf-create-pipeline'',output_stream); > output_stream.close(); > } > }; begin wit

Runnable in flowscript?

2010-03-19 Thread Fawzib Rojas
I'm trying to create a pipeline in the background using a thread. My flowscript looks like this: function create_pdf() { var output_file=java.io.File.createTempFile("temp",".pdf"); var output_stream=new MyOutputStream(output_file); // var r = new java.lang.Runnable() { ru