构建工作流时,可以访问NativeActivityDesigner的InArguments [英] Access to the InArguments of my NativeActivityDesigner when i´m building my workflow
本文介绍了构建工作流时,可以访问NativeActivityDesigner的InArguments的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带按钮的NativeActivityDesigner.
单击该按钮时,如何访问NativeActivityDesigner的InArguments?
我不想在运行时访问InArgument,我需要在构建工作流时访问该InArgument.
谢谢,
Rui M.
I have an NativeActivityDesigner with a button.
How can i access to the InArguments of my NativeActivityDesigner when i click that button?
I don´t want to access the InArgument in Runtime, i need to have access to that InArgument when i´m building my workflow.
Thanks,
Rui M.
推荐答案
嗨Rui,
我相信您正在寻找ModelItem.
例如,如果您有一个名为text的字符串InArgument,则可以使用以下代码在按钮事件处理程序中设置其值:
ModelItem.Properties [
Hi Rui,
I believe ModelItem is what you are looking for.
For example, if you have a string InArgument called text, you can set it's value in your button event handler with the following code:
ModelItem.Properties[
"text" ].SetValue( 新 字符串 >( &"Hello世界"
"text"].SetValue(new InArgument<string>("Hello World")) ;
Hope this helps,
-Eric
这篇关于构建工作流时,可以访问NativeActivityDesigner的InArguments的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文