主要用到了 SqlWorkflowInstanceStore

SqlWorkflowInstanceStore instanceStore = new SqlWorkflowInstanceStore(Const.ConnectionString);  
InstanceView view = instanceStore.Execute(instanceStore.CreateInstanceHandle(), new CreateWorkflowOwnerCommand(), TimeSpan.FromSeconds(30));  
instanceStore.DefaultIn…

基于WF4.5  VS2012

 

今天有点发低烧,直接贴代码了

 

xaml代码

 

<Activity mc:Ignorable="sap sap2010 sads" x:Class="WFTest.WorkflowConsole.Activity1" sap2010:ExpressionActivityEditor.ExpressionActivityEditor="C#" sap2010:WorkflowViewState.IdRef="WFTest.WorkflowConsole.Activity1_1"
 xmlns="http://schemas.micr…