[daisy] set document variable in workflow

Bruno Dumon bruno at outerthought.org
Fri May 4 08:25:57 CDT 2007


Hi,

On Fri, 2007-05-04 at 14:27 +0200, Victor Oomens wrote:
> Hi,
> 
>  
> 
> I would like to set a document variable using document.setField() in a
> workflow task. How can I do this?
> 
>  

There's documentation and samples, could you maybe be a bit more
specific on where you get stuck?

You didn't mention which document you want to modify, so just some
random hints:

* the default document associated with a process is stored in the
daisy_document global variable [1]

* if you write the task in javascript, see [2] for how to get access to
variables, the repository, etc.

* this what you'll find in the timedpublish sample:

var docVersionKey = variables.getGlobalVariable("daisy_document");
var document = wfRepository.getDocument(docVersionKey.getVariantKey(), true);


[1] http://cocoondev.org/daisydocs-2_1/g1/g1/365-cd.html#dsy365-cd_daisy_document_var
[2] http://cocoondev.org/daisydocs-2_1/g1/g1/364-cd.html

-- 
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