MVC3和Windows Workflow Foundation向导... [英] MVC3 and Windows Workflow Foundation Wizard...

查看:63
本文介绍了MVC3和Windows Workflow Foundation向导...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

 我是Windows Workflow Foundation的新手,我刚刚将Wizard活动框架/演示(音频存储)移植到了MVC3.该演示可以正常工作,并且工作流程可以按我期望的那样执行.

  I'm fairly new to Windows Workflow Foundation and I've just ported the Wizard activity framework/demo ( the audio store ), to MVC3. The demo works fine and the workflow executes as I expect.

这是我指的WWF向导框架视频...

This is the WWF Wizard framework video I'm refering to...

现在我想写自己的巫师,所以有几个问题……

Now I'd like to write my own Wizards so have a couple of questions...

 

  1. 我似乎无法启动活动设计器,如endpoint.tv视频所示.所有xaml文件都是可见的,但是我无法深入查看设计器中的步骤,但是如果我查看代码,则所有步骤都在其中.而且因为我无法访问 设计人员,因此我无法创建新的向导活动.我忽略了什么?
  2. 当前,如果我手动在工作流1.xaml文件中重新排序某些步骤,则可以得到向导来更改显示给用户的步骤,但是缺点是我已经重新编译了每个Web应用程序是时候查看步骤的新顺序了.真的吗 是否可以在运行时加载此xaml文件,以避免整个重新编译阶段?
  1. I seem unable to launch the activity designer, as shown in the endpoint.tv video. All the xaml files are viewable, but I can't drill down to see the steps in the designer, but if I view the code, alls the steps etc are there. And because I can't access the designer, I therefore can't create new Wizard activites. What have I overlooked?
  2. Currently if I manually re-order certain steps in the workflow1.xaml file, I can get the wizard to change the steps shown to the user, but the down side is that I have recompile the web application each time to see the new order of the steps. Is it at all possible for this xaml file to be loaded at runtime, to avoid the whole recompilation stage?

 

期待您的答复.

 

D.

推荐答案

>所有xaml文件都是可见的,但我无法深入了解其中的步骤设计师

>All the xaml files are viewable, but I can't drill down to see the steps in the designer

根据您的描述,我不确定这是什么样子.您是在谈论您的托管应用吗? VS?还是在谈论以其他视图查看XAML?如果是重新托管的应用,您是否执行过DesignerMetadata.RegisterMetadata()?

From your description I'm not sure exactly what this looks like. Are you talking about your rehosted app? VS? Or are you talking about viewing the XAMLs in some other view? If the rehosted app, did you do DesignerMetadata.RegisterMetadata()?

对于问题2,我相信答案是肯定的.使用ActivityXamlServices类从XAML文件加载工作流.
蒂姆(Tim)

For question 2, I believe the answer is yes. Use the ActivityXamlServices class to load a workflow from a XAML file.
Tim


这篇关于MVC3和Windows Workflow Foundation向导...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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