Workflow Foundation 4 中的用户定义动态工作流程?
我一直在详尽地查看 WF4 的示例,但不确定它是否适用于我的 项目。否则我需要被说服。我正在努力解决如何实现一个使用 WF4 的系统,以便用户能够定义工作流程。看来您需要 VS2010 经验来设计和实现 WF4 工作流程。我喜欢它提供的小麦,但觉得对于非技术用户来说可能太复杂了。
我们是否只是定义大量用户可以移动到工作流程中的自定义活动?我们如何才能使用户尽可能轻松地构建工作流程?
我们有一个应用程序,我们希望允许 Joe / Jane 用户为特定项目创建自己的工作流程。例如,请求信息项目。 RFI 具有由用户定义的特定状态。应该允许他们根据这些状态来控制流量。应用程序将根据决策/条件定义一些基本项目,以确定将发生什么。因此,诸如通知(当某些事情发生变化时谁会收到通知)、时间范围(在其他事情发生之前某些事情可以保持某种状态的时间)以及可能的其他条件之类的事情。目前,条件/决策类型将受到应用程序的限制。但想象一下,他们可以构建工作流程并在没有任何编码知识的情况下添加这些决策/条件。
我只是不知道我们如何以这种方式利用 WF4。也许我看WF4的方式不对?
I have been, exhaustively, looking at examples of WF4 and am not sure it will work for my project. I need to be convinced otherwise. I am struggling with how we would implement a system to use WF4 so users have the ability to define workflows. It seems you need VS2010 experience to design and implement a WF4 workflow. I love wheat it can offer, but feel it may be too complicated for non techical users.
Do we just define a ton of custom activies that a user can move into a workflow? How can we make it as easy as possible for a user to build the workflow?
We have and application that we want to allow, Joe / Jane user to create their own workflows for specific items. For example, Request For Information items. The RFI has specific states it can be in that are defined by the user. They should be allowed to control the flow based on those states. There will be some base items that the application defines as to what will happen based on a decision / condition. So, things like notifications (who gets notified when something changes), time frames (how long something can stay in a certain state before something else happens), and possibly some other conditions. The conditions / decision types will be limited by the application, for now. But imagine they can build the workflow and add those decisions / conditions in without any coding knowledge.
I just don’t know how we can leverage WF4 in this way. Maybe I am looking at WF4 the wrong way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WF4 能够处理工作流,但您需要一个简化的工作流编辑器以使最终用户可以创建/修改工作流。 WF4 可以实现这一点。
如果您的应用程序需要最终用户定义和管理工作流程,那么我相信 WF4 可以适合您的情况。可以在执行 WF4 工作流之前以编程方式创建和修改它们。
最好的整体设计可能是“工作流模板”模型,其中预定义的工作流由开发人员和专家用户提供,然后由最终用户定制。用户可以配置从预定义模板库中选择的“骨架”工作流程。根据您的要求,这可能会变得相当复杂。
顺便说一句:WF4 工作流设计器可以“托管”在 Windows Forms/WPF 应用程序中。专家用户无需使用 Visual Studio 即可定义新的工作流程。
WF4 is capable of handling the workflows, but you need a simplified workflow editor to make the creation/modification of workflows available to end users. This is possible with WF4.
If end-user definition and management of workflows is a requirement of your application then I believe WF4 can be made to work in your case. It is possible to programmatically create and modify WF4 workflows before they are executed.
The best overall design might be a "workflow template" model where predefined workflows are provided by developers and expert users, then customized by end-users. Users could configure "skeleton" workflows selected from a library of predefined templates. This could get fairly complicated depending on your requirements.
On a side-note: the WF4 workflow designer is "hostable" in a Windows Forms/WPF application. Expert users can define new workflows without having to use Visual Studio.