.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
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
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
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++
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
}
);
}
-----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
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 [
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,
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
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
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
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();
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
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
14 matches
Mail list logo