寻找 WF4 的指导
我们有一个相当大的文档路由框架,目前在 SharePoint 中实现(具有大量繁琐的 SP 工作流程),并且它已经达到了 SP 可以轻松完成的任务的边缘。它预计将重写为 .NET。
过去一周左右,我一直在阅读和观看 WF4 讨论和演示,以了解 WF4,因为我认为这是正确的解决方案。不过,我很难想象如何配置系统,因此我需要有经验的人就以下几点进行指导:
假设我需要对文档进行批准。当 wf 启动时,它将决定谁应该批准,并向该人发送电子邮件通知。在通知内,用户可以选择加载 ASP.NET 页面以批准或拒绝。然后必须从发送电子邮件步骤恢复工作流程。如果我计划将其作为 WCF WF 服务运行,我如何返回到已暂停服务的正确实例? (考虑到我已经配置了 AppFabric 和持久性)我在某种程度上理解关联句柄的概念,但不认为它适用于这种情况。
日志记录和审核将是该系统的关键。我看到 AppFabric 生成了这些数据的事件日志,但我还没有破解底层数据库 - 用于报告是否简单,或者我应该创建自定义日志记录活动来围绕我的操作?根据经验,您有何建议?
感谢您提供的任何指导。如有必要,我很乐意提供更多示例。
We have a rather large document routing framework that's currently implemented in SharePoint (with a large set of cumbersome SP workflows), and it's running into the edge of what SP can do easily. It's slated for a rewrite into .NET
I've spent the past week or so reading and watching WF4 discussions and demonstrations to get an idea of WF4, because I think it's the right solution. I'm having difficulty envisioning how the system will be configured, though, so I need guidance on a few points from people with experience:
Let's say I have an approval that has to be made on a document. When the wf starts, it'll decide who should approve, and send that person an email notification. Inside the notification, the user would have an option to load an ASP.NET page to approve or reject. The workflow would then have to be resumed from the send email step. If I'm planning on running this as a WCF WF Service, how do I get back into the correct instance of the paused service? (considering I've configured AppFabric and persistence) I somewhat understand the idea of a correlation handle, but don't think it's meant for this case.
Logging and auditing will be key for this system. I see the AppFabric makes event logs of this data, but I haven't cracked the underlying database--is it simple to use for reporting, or should I create custom logging activities to put around my actions? From experience, which would you suggest?
Thanks for any guidance you can provide. I'm happy to give further examples if necessary.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要将消息发送到特定的工作流实例,您需要在不同的接收活动之间设置消息关联。为此,您需要一些唯一值作为消息数据的一部分。
Appfabric 日志记录运行良好,但如果您想创建自定义日志记录解决方案,则无需将活动添加到工作流程中。相反,您可以创建一个自定义 TrackingParticipant 来为您完成这项工作。如何存储数据取决于您。
To send messages to a specific workflow instance you need to set up message correlation between your different Receive activities. In order to do that you need some unique value as part of your message data.
The Appfabric logging works well but if you want to create custom a custom logging solution you don't need to add activities to your workflow. Instead you create a custom TrackingParticipant to do the work for you. How you store the data is then up to you.
您的场景与我在 Visual Studio 2010 培训套件。我建议您查看动手实验或Windows Server AppFabric /工作流服务演示 - Contoso HR< /a> 示例代码。
Your scenario is very similar to the one I used for the Introduction to Workflow Services Hands On Lab in the Visual Studio 2010 Training Kit. I suggest you take a look at the hands on lab or the Windows Server AppFabric / Workflow Services Demo - Contoso HR sample code.