惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
G
Google Developers Blog
D
Docker
阮一峰的网络日志
阮一峰的网络日志
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
Hugging Face - Blog
Hugging Face - Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
云风的 BLOG
云风的 BLOG
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
T
The Blog of Author Tim Ferriss
Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
I
InfoQ
Engineering at Meta
Engineering at Meta
Stack Overflow Blog
Stack Overflow Blog
Google DeepMind News
Google DeepMind News

博客园 - navyliu

高成长公司诚聘Web平台开发工程师(Leader) 高成长公司诚聘.Net 互联网架构师 如何在SharePoint中Debug SharePoint开发小窍门,没事就IISReset Custom Field Type Deployment SharePoint的时间怎么和指定的时间不一样了? SharePoint中的参数nCLID Project Server 2007中项目组成员无法看到我的项目的问题解决 SharePoint 2007 SP1 Upgrade Error MOSS 2007中解决用户没有关联电子邮件的一种方法 不良的UI是对资源的极大浪费 Application Platform Infrastructure Optimization Model Local Communication Events Windows Workflow Foundation中的基本活动(Basic Activities) Workflow and the Outside world Rule Engine of Biztalk (Biztalk的规则引擎) OBA应用案例(1)--在Word 2007中填写表单(客户需求) Promoting in Biztalk Server 2006 对倪光南院士关于文档格式国际标准之争观点的不同看法
WF中的自定义Activity(Custom Activities)(1)
navyliu · 2008-02-24 · via 博客园 - navyliu

Why would I build custom activities? Three proper motivations are:

  • Building reusable components
  • Extending windows workflow
  • Building a domain-specifice language

How do I build custom activities? Two way:

  • Activity composition(活动组合)

组合方式有点类似工作流的创建,我们使用Workflow Designer拉拽,放置和配置活动到一个自定义的活动中,然后将此活动进行打包到一个程序集,其他的工作流工程就可以引用这个程序集并使用这个自定义的活动。组合是工作流组件重用最简单最快捷得一种方式。

  • Derivation(派生)

在派生方式中,我们从Activity类中派生一个新的Activity,相应的,我们也可以从Activity的派生类中进行派生以继承更多的功能。我们可以自定义该Activity的设计视图,验证,序列化以及代码生成部分。派生方式提供了最高层次的控制Windows Workflow,并提供了扩展WF的一种途径。