[Zope-CMF] type tool actions and conditions

Florent Guillaume fg@nuxeo.com
Sat, 3 Aug 2002 05:12:07 +0200


kapil thangavelu  <kthangavelu@earthlink.net> wrote:
> i have a portal content type (FAQ) which has workflow dependent
> functionality that i would like to display in its actions menu
> (addQuestion), the functionality itself does not trigger any workflow
> changes.

There's another way to do that than having conditions in the portal actions:

You can add to your workflow, for each of those conditional actions, a
transition that stays in the same state, that has a category like object
for instance, and authorize the transition for each of the workflow
states that require it.

The workflow change itself won't be triggered unless you call
doActionFor, which you don't have to do for those actions.

Florent