Windows 워크 플로 기반으로 asp.net 웹 응용 프로그램을 구축하려고합니다.Windows 워크 플로 기반 ASP.NET 사용하기
내가 찾은 유용한 사이트가 좋아 :
http://msdn.microsoft.com/en-us/library/bb628441%28v=vs.90%29.aspx
http://msdn.microsoft.com/en-us/library/bb675262%28v=vs.90%29.aspx
워크 플로는 내가 ASP를 생성
<Activity mc:Ignorable="sap" x:Class="ApproachWithWorkflows.WriteLineActivity" sap:VirtualizedContainerService.HintSize="654,676" mva:VisualBasic.Settings="Assembly references and imported namespaces for internal implementation" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="clr-namespace:Microsoft.VisualBasic;assembly=System" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:s1="clr-namespace:System;assembly=System" xmlns:s2="clr-namespace:System;assembly=System.Xml" xmlns:s3="clr-namespace:System;assembly=System.Core" xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System" xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel" xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System.Core" xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:sd="clr-namespace:System.Data;assembly=System.Data" xmlns:sl="clr-namespace:System.Linq;assembly=System.Core" xmlns:st="clr-namespace:System.Text;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Flowchart sad:XamlDebuggerXmlReader.FileName="C:\Documents and Settings\hauke\Desktop\Uni\Masterarbeit SVN SE\Software\Workflowansatz\ApproachWithWorkflows\ApproachWithWorkflows\WriteLineActivity.xaml" sap:VirtualizedContainerService.HintSize="614,636">
<sap:WorkflowViewStateService.ViewState>
<scg3:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">False</x:Boolean>
<av:Point x:Key="ShapeLocation">270,2.5</av:Point>
<av:Size x:Key="ShapeSize">60,75</av:Size>
<av:PointCollection x:Key="ConnectorLocation">300,77.5 300,107.5 295.5,107.5 295.5,129</av:PointCollection>
</scg3:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Flowchart.StartNode>
<x:Reference>__ReferenceID0</x:Reference>
</Flowchart.StartNode>
<FlowStep x:Name="__ReferenceID0">
<sap:WorkflowViewStateService.ViewState>
<scg3:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">190,129</av:Point>
<av:Size x:Key="ShapeSize">211,59</av:Size>
</scg3:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<WriteLine sap:VirtualizedContainerService.HintSize="211,59" Text="worked.." />
</FlowStep>
액티비티입니다 간단한 버튼 .NET 프로젝트 : 뒤에 코드에서
<asp:Button Text="Purchase" ID="Label1" runat="server" OnClick="btnClick" />
, 나는 워크 플로우를 호출하려고 (그리고 위해 Application_Start로의 Global.asax에서 WorkflowRuntime 초기화) : 지금
WorkflowRuntime workflowRuntime = Application["WorkflowRuntime"] as WorkflowRuntime;
ManualWorkflowSchedulerService manualScheduler =
workflowRuntime.GetService(typeof(ManualWorkflowSchedulerService))
as ManualWorkflowSchedulerService;
WorkflowInstance instance = workflowRuntime.CreateWorkflow(
typeof(ApproachWithWorkflows.WriteLineActivity));
instance.Start();
manualScheduler.RunWorkflow(instance.InstanceId);
I을 응용 프로그램을 실행하고 버튼을 누르면 CreateWorkflow에 "입력 워크 플로 유형이 Activity 여야합니다. \ r \ n 매개 변수 이름 : workflowType"과 같은 오류가 나타납니다.
하지만 활동은 활동입니다! 내가 도대체 뭘 잘못하고있는 겁니까?
감사합니다. 적어도 예외는 없습니다. 그러나 워크 플로우가 실행되었는지는 잘 모릅니다 : WriteLine 물건이 콘솔에 쓰여져 있지 않습니다. 다른 스레드에서 시작 되었습니까? 그러나 나는 지금 어디에서 봐야하는지 알고 있습니다. – Hauke