克隆工作流程:如何检查对象的多个属性? [英] Plone Workflow: How to check for multiple attributes of an object?

查看:83
本文介绍了克隆工作流程:如何检查对象的多个属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的项目中,我们希望有一个工作流,该工作流在继续到下一个状态之前检查是否所有三个签名(通过布尔值实现)都已添加到"Project"类型的对象中.

In our project we would like to have a workflow which checks whether all three signatures (implemented through booleans) have been added to an object of type "Project" before it continues to the next state.

不幸的是,在通过网络编辑工作流时似乎无法实现,而且我们也无法在文档中找到它.

Unfortunately this doesn't seem to be possible while editing the workflow through the web and we haven't been able to find it in the documentation either.

我们将如何做?

非常感谢您的协助.

推荐答案

使用Transition Guard表达式进行检查:

Use the transition Guard expression to check for this:

python: here.getFirstBoolean() and here.getSecondBoolean() and here.getThirdBoolean()

这可以通过ZMI访问:

This can be access through the ZMI:

  1. 将/manage附加到网站根目录
  2. 转到"portal_workflow"
  3. 点击内容"标签
  4. 点击您正在使用的工作流程
  5. 点击过渡
  6. 您应该看到守卫表情的区域

如果您想简化登录过程并进行所有TTW操作,也可以将登录名放入自定义文件夹中的脚本中.

You could put the login into a Script in the custom folder also if you wanted to make it easier and do it all TTW.

这篇关于克隆工作流程:如何检查对象的多个属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆