Rehosted-Workflow-Designer
Rehosted-Workflow-Designer copied to clipboard
Error in parsing xaml file
When I run the app, and try to Open a .xaml file with text below, I get this error:
System.Xaml.XamlException: 'The type ‘InArgument(local:TestWorkflowRequest)’ of property ‘request’ could not be resolved.' Line number '14' and line position '32'.
File:
<Activity mc:Ignorable="sap sap2010 sads" x:Class="MiddleOfficeWorkflowActivities.TestWorkflow" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:local="clr-namespace:MiddleOfficeWorkflowActivities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities" xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <x:Members> <x:Property Name="request" Type="InArgument(local:TestWorkflowRequest)" /> </x:Members> local:TestWorkflow.request <InArgument x:TypeArguments="local:TestWorkflowRequest"> <mca:CSharpValue x:TypeArguments="local:TestWorkflowRequest">null</mca:CSharpValue> </InArgument> </local:TestWorkflow.request> sap2010:ExpressionActivityEditor.ExpressionActivityEditorC#</sap2010:ExpressionActivityEditor.ExpressionActivityEditor> sap2010:WorkflowViewState.IdRefMiddleOfficeWorkflowActivities.Activity1_1</sap2010:WorkflowViewState.IdRef> <TextExpression.NamespacesForImplementation> <sco:Collection x:TypeArguments="x:String"> <x:String>System</x:String> <x:String>System.Collections.Generic</x:String> <x:String>System.Data</x:String> <x:String>System.Linq</x:String> <x:String>System.Text</x:String> <x:String>MiddleOfficeWorkflowActivities</x:String> </sco:Collection> </TextExpression.NamespacesForImplementation> <TextExpression.ReferencesForImplementation> <sco:Collection x:TypeArguments="AssemblyReference"> <AssemblyReference>Microsoft.CSharp</AssemblyReference> <AssemblyReference>Pvtb.Framework.Configuration</AssemblyReference> <AssemblyReference>Pvtb.Framework.Data</AssemblyReference> <AssemblyReference>System</AssemblyReference> <AssemblyReference>System.Activities</AssemblyReference> <AssemblyReference>System.ComponentModel.DataAnnotations</AssemblyReference> <AssemblyReference>System.Core</AssemblyReference> <AssemblyReference>System.Data</AssemblyReference> <AssemblyReference>System.Runtime.Serialization</AssemblyReference> <AssemblyReference>System.ServiceModel</AssemblyReference> <AssemblyReference>System.ServiceModel.Activities</AssemblyReference> <AssemblyReference>System.Xaml</AssemblyReference> <AssemblyReference>System.Xml</AssemblyReference> <AssemblyReference>System.Xml.Linq</AssemblyReference> <AssemblyReference>DataAccess</AssemblyReference> <AssemblyReference>WorkflowService</AssemblyReference> <AssemblyReference>mscorlib</AssemblyReference> <AssemblyReference>MiddleOfficeWorkflowActivities</AssemblyReference> </sco:Collection> </TextExpression.ReferencesForImplementation> <StateMachine sap2010:WorkflowViewState.IdRef="StateMachine_1"> <StateMachine.InitialState> <State x:Name="__ReferenceID1" DisplayName="Started" sap2010:WorkflowViewState.IdRef="State_1"> <State.Transitions> <Transition DisplayName="Banker Submits" sap2010:WorkflowViewState.IdRef="Transition_4"> <Transition.Trigger> <local:TestWorkflowBookmark BookmarkName="Started" DisplayName="Started" sap2010:WorkflowViewState.IdRef="TestWorkflowBookmark_1" /> </Transition.Trigger> <Transition.To> <State x:Name="__ReferenceID0" DisplayName="In Review" sap2010:WorkflowViewState.IdRef="State_2"> <State.Transitions> <Transition DisplayName="Approved" sap2010:WorkflowViewState.IdRef="Transition_1"> <Transition.Trigger> <local:TestWorkflowBookmark x:Name="__ReferenceID4" BookmarkName="In Review" DisplayName="InReview" sap2010:WorkflowViewState.IdRef="TestWorkflowBookmark_2"> local:TestWorkflowBookmark.Result <OutArgument x:TypeArguments="local:TestWorkflowRequest"> <mca:CSharpReference x:TypeArguments="local:TestWorkflowRequest">request</mca:CSharpReference> </OutArgument> </local:TestWorkflowBookmark.Result> </local:TestWorkflowBookmark> </Transition.Trigger> <Transition.Condition> <mca:CSharpValue x:TypeArguments="x:Boolean">request.RequestedAction == "Approve"</mca:CSharpValue> </Transition.Condition> <Transition.To> <State x:Name="__ReferenceID3" DisplayName="Verified" sap2010:WorkflowViewState.IdRef="State_4" IsFinal="True" /> </Transition.To> </Transition> <Transition Trigger="{x:Reference __ReferenceID4}" DisplayName="Rejected" sap2010:WorkflowViewState.IdRef="Transition_3"> <Transition.Condition> <mca:CSharpValue x:TypeArguments="x:Boolean">request.RequestedAction == "Reject"</mca:CSharpValue> </Transition.Condition> <Transition.To> <State x:Name="__ReferenceID2" DisplayName="Waiting for Information" sap2010:WorkflowViewState.IdRef="State_3"> <State.Transitions> <Transition DisplayName="Banker Resubmits" sap2010:WorkflowViewState.IdRef="Transition_2"> <Transition.Trigger> <local:TestWorkflowBookmark BookmarkName="Waiting for Information" DisplayName="WaitingForInformation" sap2010:WorkflowViewState.IdRef="TestWorkflowBookmark_4" /> </Transition.Trigger> <Transition.To> <x:Reference>__ReferenceID0</x:Reference> </Transition.To> </Transition> </State.Transitions> </State> </Transition.To> </Transition> </State.Transitions> </State> </Transition.To> </Transition> </State.Transitions> </State> </StateMachine.InitialState> <x:Reference>__ReferenceID1</x:Reference> <x:Reference>__ReferenceID0</x:Reference> <x:Reference>__ReferenceID2</x:Reference> <x:Reference>__ReferenceID3</x:Reference> sads:DebugSymbol.Symbold3REOlxDSEktVEZTXE1pZGRsZU9mZmljZVxEZXZlbG9wbWVudFxBZGRfSW5pdGlhbFJlbGVhc2VcTWlkZGxlT2ZmaWNlXE1pZGRsZU9mZmljZVdvcmtmbG93QWN0aXZpdGllc1xUZXN0V29ya2Zsb3cueGFtbBISBxJaAQI3A3wSAgEBOQd1DwIBFkAPcRcCAQhiF20fAgEEUBdQiAECAQI9Dz2TAQIBGEQXSjQCARJNF016AgEQVRdcNAIBDF8XX3kCAQpmH2bBAQIBBj04PUECARlEQERLAgEVRx1HewIBE1VAVUsCAQ9YHVh7AgENZkhmYQIBBw==</sads:DebugSymbol.Symbol> </StateMachine> sap2010:WorkflowViewState.ViewStateManager sap2010:ViewStateManager <sap2010:ViewStateData Id="TestWorkflowBookmark_1" sap:VirtualizedContainerService.HintSize="200,22" /> <sap2010:ViewStateData Id="TestWorkflowBookmark_2" sap:VirtualizedContainerService.HintSize="200,22" /> <sap2010:ViewStateData Id="State_4" sap:VirtualizedContainerService.HintSize="114,61"> sap:WorkflowViewStateService.ViewState <scg:Dictionary x:TypeArguments="x:String, x:Object"> <av:Point x:Key="ShapeLocation">403,299.5</av:Point> <av:Size x:Key="ShapeSize">114,61</av:Size> <x:Boolean x:Key="IsPinned">False</x:Boolean> </scg:Dictionary> </sap:WorkflowViewStateService.ViewState> </sap2010:ViewStateData> <sap2010:ViewStateData Id="Transition_1" sap:VirtualizedContainerService.HintSize="430,507"> sap:WorkflowViewStateService.ViewState <scg:Dictionary x:TypeArguments="x:String, x:Object"> <av:PointCollection x:Key="ConnectorLocation">357,270 454.3,270 454.3,299.5</av:PointCollection> <x:Int32 x:Key="SrcConnectionPointIndex">36</x:Int32> <x:Int32 x:Key="DestConnectionPointIndex">34</x:Int32> </scg:Dictionary> </sap:WorkflowViewStateService.ViewState> </sap2010:ViewStateData> <sap2010:ViewStateData Id="TestWorkflowBookmark_5" sap:VirtualizedContainerService.HintSize="200,22" /> <sap2010:ViewStateData Id="TestWorkflowBookmark_4" sap:VirtualizedContainerService.HintSize="200,22" /> <sap2010:ViewStateData Id="Transition_2" sap:VirtualizedContainerService.HintSize="430,507"> sap:WorkflowViewStateService.ViewState <scg:Dictionary x:TypeArguments="x:String, x:Object"> <av:PointCollection x:Key="ConnectorLocation">73,340 43,340 43,270 243,270</av:PointCollection> <x:Int32 x:Key="SrcConnectionPointIndex">37</x:Int32> <x:Int32 x:Key="DestConnectionPointIndex">37</x:Int32> </scg:Dictionary> </sap:WorkflowViewStateService.ViewState> </sap2010:ViewStateData> <sap2010:ViewStateData Id="State_3" sap:VirtualizedContainerService.HintSize="114,61"> sap:WorkflowViewStateService.ViewState <scg:Dictionary x:TypeArguments="x:String, x:Object"> <av:Point x:Key="ShapeLocation">73,309.5</av:Point> <av:Size x:Key="ShapeSize">114,61</av:Size> <x:Boolean x:Key="IsPinned">False</x:Boolean> </scg:Dictionary> </sap:WorkflowViewStateService.ViewState> </sap2010:ViewStateData> <sap2010:ViewStateData Id="Transition_3" sap:VirtualizedContainerService.HintSize="430,507"> sap:WorkflowViewStateService.ViewState <scg:Dictionary x:TypeArguments="x:String, x:Object"> <av:PointCollection x:Key="ConnectorLocation">300,300.5 300,336.95 187,336.95</av:PointCollection> <x:Int32 x:Key="SrcConnectionPointIndex">39</x:Int32> <x:Int32 x:Key="DestConnectionPointIndex">32</x:Int32> </scg:Dictionary> </sap:WorkflowViewStateService.ViewState> </sap2010:ViewStateData> <sap2010:ViewStateData Id="State_2" sap:VirtualizedContainerService.HintSize="114,61"> sap:WorkflowViewStateService.ViewState <scg:Dictionary x:TypeArguments="x:String, x:Object"> <av:Point x:Key="ShapeLocation">243,239.5</av:Point> <av:Size x:Key="ShapeSize">114,61</av:Size> <x:Boolean x:Key="IsPinned">False</x:Boolean> </scg:Dictionary> </sap:WorkflowViewStateService.ViewState> </sap2010:ViewStateData> <sap2010:ViewStateData Id="Transition_4" sap:VirtualizedContainerService.HintSize="430,507"> sap:WorkflowViewStateService.ViewState <scg:Dictionary x:TypeArguments="x:String, x:Object"> <av:PointCollection x:Key="ConnectorLocation">300,168.5 300,239.5</av:PointCollection> <x:Int32 x:Key="SrcConnectionPointIndex">39</x:Int32> <x:Int32 x:Key="DestConnectionPointIndex">38</x:Int32> </scg:Dictionary> </sap:WorkflowViewStateService.ViewState> </sap2010:ViewStateData> <sap2010:ViewStateData Id="State_1" sap:VirtualizedContainerService.HintSize="114,69"> sap:WorkflowViewStateService.ViewState <scg:Dictionary x:TypeArguments="x:String, x:Object"> <av:Point x:Key="ShapeLocation">243,99.5</av:Point> <av:Size x:Key="ShapeSize">114,69</av:Size> <x:Boolean x:Key="IsPinned">False</x:Boolean> <x:Double x:Key="StateContainerWidth">100</x:Double> <x:Double x:Key="StateContainerHeight">33.040000000000077</x:Double> </scg:Dictionary> </sap:WorkflowViewStateService.ViewState> </sap2010:ViewStateData> <sap2010:ViewStateData Id="StateMachine_1" sap:VirtualizedContainerService.HintSize="614,636"> sap:WorkflowViewStateService.ViewState <scg: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> <x:Double x:Key="StateContainerWidth">600</x:Double> <x:Double x:Key="StateContainerHeight">600</x:Double> <av:PointCollection x:Key="ConnectorLocation">300,77.5 300,99.5</av:PointCollection> </scg:Dictionary> </sap:WorkflowViewStateService.ViewState> </sap2010:ViewStateData> <sap2010:ViewStateData Id="MiddleOfficeWorkflowActivities.Activity1_1" sap:VirtualizedContainerService.HintSize="654,716" /> </sap2010:ViewStateManager> </sap2010:WorkflowViewState.ViewStateManager> </Activity>