在后面的代码中自动创建过渡条件状态机 [英] Create transition condition state machine automatically in code behind

查看:80
本文介绍了在后面的代码中自动创建过渡条件状态机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在工作流状态机处于托管设计模式的情况下,当用户放弃2个状态并进行转换时,是否可以在后面的代码中自动创建转换条件值

With workflow state machine in hosting design mode, when an user drop 2 states and make a transition, is it possible to create transition condition value automatically in code behind

(例如:NameOfVariable = 1)?

(for example : NameOfVariable = 1) ?

谢谢

推荐答案

我不清楚这个问题.后面的代码是什么?
尽管可以手动创建一个WF XAML文件,但通常没有包含C#代码的代码.那是你在说什么吗?还是您在谈论修改XAML?

(在重新托管的应用程序中,您可以添加事件侦听器,该事件侦听器可检测新状态或新过渡的添加并进行模型树修改,但我不确定这是否描述了您要执行的操作.)

蒂姆
I'm unclear on the question. What's in the code behind?
WF XAML file doesn't normally have a code behind file with C# code, although it's possible to create one manually. Is that what you're talking about? Or are you talking about modifying XAML?

(In a rehosting application you could add event listeners which detect the addition of new states or new transitions and do model tree modifications, I'm just not sure if that describes what you want to do.)

Tim


这篇关于在后面的代码中自动创建过渡条件状态机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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