1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
Starting with version 0.3, expressions in DCWorkflow are TALES expressions.
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.
|