个人工具
登录
查看“Zope3宝典/审批工作流”的源代码 - Ubuntu中文
页面
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“Zope3宝典/审批工作流”的源代码
来自Ubuntu中文
←
Zope3宝典/审批工作流
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
=== 20.4 Step IV: Testing the Workflow(20.4 步骤 IV: 测试工作流) === The workflow will only work with new Messages, of course. So, in the folder you created the workflow components, create a new Message Board and add a new Message to it. If you now click on the Workflows tab you will see that it is not empty anymore. In the selection box you can see all available workflows; currently there should be only one called “Message Publication Review” (remember the workflow title in the XML?). You can choose it.<br>显然工作流只为新消息工作。因此在你创建工作流组件的文件夹中,创建一个新的消息栏并添加新消息。如果你现在点击 Workflows(工作流)标签时,你可以看到它已不再为空。在选择框中你可以看到所有可用的工作流;当前那里只有一个名为 “Message Publication Review” 的(还记得在 XML 中的工作流标题吗?)。你可以选中它。 Below the selection box you can see the current status of the Message, which is private at this point; remember, the transition from initial to private is automatic based on our workflow definition. In the last entry you now see the possible transitions you can execute from this state. Currently we can only “Submit Message” to submit the message for review. So select this transition and click “Make Transition”.<br>在选择框下面你可以看到消息的当前状态,这是私有的;记住,基于我们工作流定义的从初始状态到私有状态的转换是自动的。最后部分你可以看到从目前状态可能进行的转换。目前我们只能用 “Submit Message” 来提交消息。所以选择该转换并点击“Make Transition”。 The status will switch to “Pending Publication” (pending) and now you have three transition choices. You might have noticed already that this workflow is not very safe or useful, since every Editor (and only editors) can cause a transitions. See exercise 1 to solve this problem. Feel free to play with the transitions some more.<br>状态将切换到 “Pending Publication” (未决),现在你有三个转换选择。你也许已经注意到该工作流并不是十分安全和实用,因此每个编辑者(也只有编辑者)都可以引起转换。参见练习1尝试解释该问题。Feel free to play with the transitions some more.
返回至
Zope3宝典/审批工作流
。