Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用子工作流(即设计器中的工作流子集)。例如,序列、流程图或工作流中的任何活动。
我的想法是这样的:
这些在WF4中甚至可能吗?
听起来很像您的子工作流只是复合活动。如果您将它们编译为常规活动类型,那么这样做很容易,并且您可以随心所欲地使用它们。如果您不想编译它们而是将它们用作 XAML 文件,则需要使用 DynamicActivity 和 ActivityXamlServices 创建已编译的包装器活动。这是必需的,因为添加到工作流或显示在工具箱中的活动总是被编译。