Personal tools
You are here: Home Documentation Tutorials Creating Workflows in Plone Workflow Expressions
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

Workflow Expressions

You can use TALES expressions in workflow definitions.

Jon Stahl

This documentation explains the purpose of the DCWorkflow product and how to make use of it. DCWorkflow is a CMF Product for Zope, and Plone's workflows are built using it.
Page 7 of 7.

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.

 
by Jon Stahl last modified January 16, 2007 - 20:55
Contributors: Shane Hathaway
All content is copyright Plone Foundation and the individual contributors.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by