Versioning a WF4 Workflow Using WorkflowServiceHost

Related to this issue .

I understand how to implement workflow versioning with WorkflowApplication. If you keep the original XAML definition for older versions of the workflow, you can load them using the constructor WorkflowApplication.

How could you guarantee that you WorkflowServiceHostare using the correct workflow definition when you want to host your workflows in IIS?

There is a constructor WorkflowServiceHostthat you can use to load a workflow definition, but when you place it inside IIS using the XAMLX file, you do not call it WorkflowServiceHostyourself, it is somehow handled by IIS. So, how can I ensure that the correct workflow is defined for the correct version of my workflow?

+3
source share
1 answer

WorkflowServiceHost - , WorkflowApplication. XAML (X) - . WorkflowServiceHost WorkflowServiceHost, XAMLX. . , .

, WorkflowServiceHost? WCF - . , WorkflowServiceHost, WCF. , , WorkflowServiceHost, XAMLX. , . . , , . - . , WCF .

:

  • , , 7 3 . URL httl://localhost/MyWorkflow.xaml httl://localhost/MyWorkflow.v3.xamlx, .
  • , , orderid, 3. URL httl://localhost/MyWorkflow.xaml, - httl://localhost/MyWorkflow.v3.xamlx, .
  • . orderid 2 1 (, ). URL httl://localhost/MyWorkflow.xaml httl://localhost/MyWorkflow.v1.xamlx, .

WCF.

+8

Source: https://habr.com/ru/post/1736675/


All Articles