Developing Workflows in VS: Part 7 - Summary and Final Thoughts

本文介绍了工作流开发的关键概念,包括模板、关联及实例的区别,并详细解释了如何进行高层次规划、响应工作流事件、数据绑定、任务处理等。此外还提供了部署工作流的方法以及调试技巧。
 

 

You might feel a little intimidated; there’s a lot to think about and understand.  But don’t worry!  Like I said before, there are just a few key things to really get your head around, and once you can see how they all fit together, the world of workflow will unfold before your eyesJ (or at least make a little more sense;)).  The key takeaways are this: 

1)      Understand the difference between Template, Association, and Instance. The docs will make a lot more senseJ.  Instances come from associations, which come from templates defined by a workflow.xml. 

2)      A little high-level planning of not just the workflow, but its surrounding lists and items, can go a long way.

3)      A workflow can only respond to events that are registered through workflow services.  You must use the SharePoint activities (i.e. the workflow service APIs) to create your items if you want to register your workflow for events on those items.

4)      Data binding with forms is one of the most confusing parts of workflow development.  Just remember:

a.       Your form pages call an OM function that wakes up a workflow via the workflow service.  Each function calls the host, which takes your form data parameter and passes it into the corresponding workflow event receiver activity.

b.      Forms can be either aspx or InfoPath (hosted in an aspx page).   But InfoPath provides benefits, such as client integration, easy authoring, and no code.

c.       If you use IP forms, use the names of your controls to refer to those values inside your workflow (i.e. the data  uses the same schema as your form)

d.      Follow the checklist of steps for InfoPath forms to set them up for data submission.

e.      Tasks are different from the other workflow objects, in how form data is saved (directly to the task instead of into the workflow), how data is received inside the workflow (an SPWorkflowTaskProperties object instead of a string), and how it is defined in the workflow.xml (a content type rather than a page).

5)      When you’re ready to deploy a workflow, fill out a feature.xml and workflow.xml, then use stsadm to install it (the VS templates help automate this).

6)      Debug your workflow by attaching to a live server.  Use breakpoints and the ULS logs to figure out what’s wrong.

Use this guide with the samples in the ECM Starter Kit, which are meant to build on concepts.  Start with HelloWorld to understand InfoPath forms and correlation basics, then move on to Modifications or Replicator.  Developing workflows just takes a little practice, so take it one step at a time. 

Anyway, thanks for reading!  I hope this has been helpful!  I've attached to this entry the full guide doc for this series, which includes a few extra charts and diagrams.   Good luck, and happy workflow everyone! 

计及光伏电站快速无功响应特性的分布式电源优化配置方法(Matlab代码实现)内容概要:本文提出了一种计及光伏电站快速无功响应特性的分布式电源优化配置方法,并提供了基于Matlab的代码实现。该方法在传统分布式电源配置基础上,充分考虑了光伏电站通过逆变器实现的快速无功调节能力,以提升配电网的电压稳定性与运行效率。通过建立包含有功、无功协调优化的数学模型,结合智能算法求解最优电源配置方案,有效降低了网络损耗,改善了节点电压质量,增强了系统对可再生能源的接纳能力。研究案例验证了所提方法在典型配电系统中的有效性与实用性。; 适合人群:具备电力系统基础知识和Matlab编程能力的电气工程专业研究生、科研人员及从事新能源并网、配电网规划的相关技术人员。; 使用场景及目标:①用于分布式光伏等新能源接入配电网的规划与优化设计;②提升配电网电压稳定性与电能质量;③研究光伏逆变器无功补偿能力在系统优化中的应用价值;④为含高比例可再生能源的主动配电网提供技术支持。; 阅读建议:建议读者结合Matlab代码与算法原理同步学习,重点理解目标函数构建、约束条件设定及优化算法实现过程,可通过修改系统参数和场景设置进行仿真对比,深入掌握方法的核心思想与工程应用潜力。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值