编辑WorkFlow [英] Edit WorkFlow

查看:81
本文介绍了编辑WorkFlow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用deigner rehost示例进行业务工作流程,我添加了codeDom类,如codeMemberMethods,CodeMemberProperties,将我的业务逻辑添加到codebesideunit文件中,现在我可以成功编写自定义代码在代码活动事件处理程序和所有。设计WF后我正在复制它的xoml和.cs文件。
我正在使用这个DLL加载WF并成功执行它现在我的意图是给编辑功能设计WF意味着我想添加或删除或重命名dll中的活动。我可以这样做了吗

感谢n问候,
Sarada。

Hi,

i am using deigner rehost sample for my business workflows, i added codeDom classes like codeMemberMethods, CodeMemberProperties to add my business logic to the codebesideunit file and now i can successfully write my custom code in the code activity event handlers and all.After designing WF i am copiling its xoml and .cs file.
And i'm using this dll to load WF and executing it succefull now my intension is to give Edit functionality to the designed WF means  i want to add or delete or rename the Activities in the dll.How can i do this

Thanks n Regards,
Sarada.

推荐答案

我不确定你写的是什么,但听起来你可能正在寻找动态更新: http://msdn.microsoft.com/en-us/library/ms742040.aspx 。动态更新可用于修改已执行实例的工作流树。

另一方面,如果您希望用户能够在设计时将工作流用作模板,则动态更新是不对的。在这种情况下,您应该考虑创建一个与产品一起提供的Visual Studio模板。无法修改已编译的工作流以创建新的工作流类型。
I'm not sure from what you've written, but it sounds like you might be looking for dynamic update: http://msdn.microsoft.com/en-us/library/ms742040.aspx.  Dynamic update can be used to modify the workflow tree of an already executing instance.

If on the other hand you want the user to be able to use your workflow as a template at design time, then dynamic update is not the right thing.  In that case you should consider looking into creating a Visual Studio template much like the ones that ship with the product.  A compiled workflow cannot be modified to create a new workflow type.


这篇关于编辑WorkFlow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆