문제

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:

  • Save the subworkflow to a file (for example, save the selected Sequence activity)
  • Load a saved subworkflow and add it into current workflow
  • Add a sub-workflow as an item in toolbox

Are these even possible in WF4?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top