工作流程4.0 [英] Workflow 4.0

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

问题描述

你好.我找不到论坛...如何以编程方式在flowdecision中设置condition属性.我有一个变量,但是没有上下文,更确切地说是空的.我需要以进一步的逻辑为基础,以编程方式将condition属性设置为变量名称.

Hello. I can't find the forums ... how to programmatically set the condition property in flowdecision. I have a variable, but it has no context, more precisely it empty. I need to programmatically set the condition property to the variable name was on the basis of being further logic.

推荐答案

我认为Microsoft.VisualBasic.Activities.VisualBasicValue< T>是您要寻找的内容.

请尝试以下C#代码段,看看是否对您有用:

new FlowDecision(){条件=新的Microsoft.VisualBasic.Activities .VisualBasicValue< bool>("Var1"));;

希望对您有所帮助,

-Eric
I think Microsoft.VisualBasic.Activities.VisualBasicValue<T> is what you are looking for.

Try the following C# code snippet and see if that works for you:

new FlowDecision() {Condition = new Microsoft.VisualBasic.Activities.VisualBasicValue<bool>("Var1")};

Hope this helps,

-Eric


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

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