Workflow Expressions
A workflow
expression is a TALES expression. TALES expressions are fully
described at:
http://dev.zope.org/Wikis/DevSite/Projects/ZPT/TALES
http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixC.stx
Some of the contexts have slightly different meanings from what is provided for expressions in page templates.
here: The content object.
container: The content object's container
Several other contexts are also provided.
state_change: A special object containing info about the state change
transition: The transition object being executed
status: The former status
workflow: The workflow definition object
scripts: The scripts in the workflow definition object
state_change objects provide the following attributes:
status is a mapping containing the workflow status.
object is the object being modified by workflow.
workflow is the workflow definition object.
transition is the transition object being executed.
old_state is the former state object.
new_state is the destination state object.
kwargs is the keyword arguments passed to the doActionFor() method.
getHistory(), a method that returns a copy of the object's workflow history.
getPortal(), which returns the root of the portal.
ObjectDeleted and ObjectMoved, exceptions that can be raised by scripts to indicate to the workflow that an object has been moved or deleted.
getDateTime() is a method that returns the DateTime of the transition.