[Zope-CMF] Re: DCWorkflow Question

Shane Hathaway shane@zope.com
Fri, 24 Aug 2001 10:53:51 -0400


Ulrich Eck wrote:

>I dived deep into DCWorkflow .. and the more I use it, the more i like it :)) 
>
>after all source reading i have one question:
>
>How can I modify Workflow-Variables from a Script that is executed through a
>Transition ????
>
>I have some Workflow-Variables defined, that are mapped to the Namespace
>of the Script that I assigned for the Transistion, but they are read-only 
>(NamespaceAccessor doesn't allow updates)
>I cannot assign any workflow-relevant vars except "new_state" ..
>
>do you have a hint, how to get around this ??
>
Hmm, there isn't a good way to set variables through a script, but you 
can do it outside scripts.  There is some logic available in there that 
might not be available in the UI yet: you can set the value of a 
variable per state (usually for resetting the variable) and you can set 
up an expression for changing a variable upon execution of a transition. 
 Does that help?

Shane