本文介绍了正在与分工作流程,重新托管设计师?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能与分工作流程的工作(在设计工作流程,即子集)。例如一个序列,流程图,或工作流内的任何活动。

Is it possible to work with a sub-workflow (i.e. subset of the workflow in the designer). For example a sequence, a flowchart, or any activity inside the workflow.

我的想法是一样的东西,这些:

My idea is something like these:

  • 保存subworkflow到一个文件(例如,保存所选的Sequence活动)
  • 载入保存subworkflow,并将其添加到当前的工作流
  • 添加子工作流程在工具箱中的项目

难道这些甚至有可能在WF4?

Are these even possible in WF4?

推荐答案

听起来很像你的子worklfows只是组合活动。这样做很容易,如果你编译他们,因为他们成为经常的活动类型,您可以与他们无关,只要你喜欢。如果你不想编译它们,但它们用作XAML文件,你需要创建使用DynamicActivity和ActivityXamlServices编译包装活动。这是必要的,因为活动添加到工作流或工具箱中显示的总是被编译。

Sounds very much like your sub worklfows are just composite activities. Doing so is easy if you compile them as they become regular activity types and you can do with them as you like. If you don't want to compile them but use them as XAML files you will need to create a compiled wrapper activity using a DynamicActivity and the ActivityXamlServices. This is needed because activities added to a workflow or shown in the toolbox are always compiled.

这篇关于正在与分工作流程,重新托管设计师?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 22:48