[daisy] set document variable in workflow

Bruno Dumon bruno at outerthought.org
Wed May 23 05:32:39 CDT 2007


On Wed, 2007-05-23 at 11:30 +0200, Victor Oomens wrote:
> Thanks, very helpful, and it works like a charm! There's also a public
> repository variable in javascript which seems to work as well. What is the
> difference between repository and wfRepository?

See the descriptions of the variables below the heading "Using
Javascript in process definitions" at

http://cocoondev.org/daisydocs-2_0/g1/g1/364-cd.html

if unclear, let me know.

>  And how can I update the
> document version attachted to the workflow (daisy_document)? The version has
> been changed by saving the document with a new variable value. So I would
> like this new document version to be attached to the workflow.

just update the value of the variable, using

variables.setGlobalVariable("daisy_document", new Packages.org.outerj.daisy.workflow.WfVersionKey(...));

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list