如何在自定义活动中使用变量或自变量? [英] How do I make a variable or argument available in my custom activities?

查看:90
本文介绍了如何在自定义活动中使用变量或自变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由许多自定义活动组成的工作流程.第一个创建一个变量,几乎所有其他自定义活动都需要该变量.我如何在所有这些中都可用它而不将其作为InArgument传递给他们?它变得非常乏味.

解决方案

您可以使用ExecutionProperties来使内容变得环境".在一定范围内. ExecutionProperties示例(我相信路径类似于WF->基本->自定义活动->代码健全-> ExecutionProperties)比用这种格式对本主题的说明要好得多. /blockquote>

I have a workflow built up of lots of custom activities.  The first creates a variable which is required is nearly all of the other custom activities.  How do I make it available in all of them without passing it into them as an InArgument?  It's getting really tedious.  :-)  I feel like I'm missing a trick.

解决方案

You can use ExecutionProperties to make something "ambient" in some scope.  The ExecutionProperties sample (I believe the path is something like WF -> Basic -> Custom activities -> Code-bodied -> ExecutionProperties) will do a far better job of illustrating this topic than I could in this format.


这篇关于如何在自定义活动中使用变量或自变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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