从自定义活动(派生的NativeActivity)访问工作流参数 [英] Access to workflow Arguments from custom activity (derived NativeActivity)

查看:168
本文介绍了从自定义活动(派生的NativeActivity)访问工作流参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过重写的Execute方法从自定义活动(派生的NativeActivity)访问工作流参数?
我需要按参数名称进行访问.
但是参数类型在运行时解析.

How I may access to workflow Arguments from custom activity (derived NativeActivity) in overrided Execute method?
I need access by Argument Name.
But type of Argument resolve in runtime.

推荐答案

您可以使用DynamicActivity达到目的.请在 http://msdn.microsoft.com/zh-CN/library/dd807392(VS.100).aspx  .只需将您的客户活动放在DynamicActivity的实现中



希望它会有所帮助,
-Hong

You can use a DynamicActivity to achieve the purpose. Pls see an example at http://msdn.microsoft.com/en-us/library/dd807392(VS.100).aspx . Just put your customer activity in the Implementation of the DynamicActivity



Hope it helps,
-Hong


这篇关于从自定义活动(派生的NativeActivity)访问工作流参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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