假设您正在构建一个基于 Python 的 Web 应用程序,该应用程序需要一些工作流管理,例如 jBPM 或 Windows Workflow Foundation 中的工作流管理。在 Python 世界中是否有提供此功能的库?
2 回答
Oh yes, tons. But most of them depend on a specific framework. DCWorkflow is integrated with Zopes CMF, for example. hurry.workflow is for Zope 3, etc. SpiffWorkflow presumes sql-alchemy, etc. This is because you need to have something to apply the workflow to, and that means you need to make some basic assumptions on the objects you use.
Hurry.workflow is probably one of the more independent ones, but it still assumes both that you use the Persistence library (and therefore in practice ZODB), and zope3's security model.
So you probably need to expand a bit on your requirements here...