<Activity mc:Ignorable="sap sads" x:Class="{x:Null}"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:eac="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client"
 xmlns:eacg="clr-namespace:ESRI.ArcGIS.Client.Geometry;assembly=ESRI.ArcGIS.Client"
 xmlns:eact="clr-namespace:ESRI.ArcGIS.Client.Tasks;assembly=ESRI.ArcGIS.Client"
 xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
 xmlns:gcx="http://apis.geocortex.com/2009"
 xmlns:gect="clr-namespace:Geocortex.Essentials.Client.Tasks;assembly=Geocortex.EssentialsWpfApi"
 xmlns:gfc="clr-namespace:Geocortex.Forms.Client;assembly=Geocortex.EssentialsWpfApi"
 xmlns:gfci="clr-namespace:Geocortex.Forms.Client.Items;assembly=Geocortex.EssentialsWpfApi"
 xmlns:gr="clr-namespace:Geocortex.Reporting;assembly=Geocortex.Reporting"
 xmlns:gw="clr-namespace:Geocortex.Workflow;assembly=Geocortex.Workflow"
 xmlns:gwa="clr-namespace:Geocortex.Workflow.Activities;assembly=Geocortex.Workflow"
 xmlns:gwa1="clr-namespace:Geocortex.Workflow.Activities;assembly=Geocortex.Workflow.Activities"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"
 xmlns:mvc="clr-namespace:Microsoft.VisualBasic.CompilerServices;assembly=Microsoft.VisualBasic"
 xmlns:s="clr-namespace:System;assembly=System.Core"
 xmlns:s1="clr-namespace:System;assembly=System"
 xmlns:s2="clr-namespace:System;assembly=mscorlib"
 xmlns:s3="clr-namespace:System;assembly=System.ServiceModel"
 xmlns:s4="clr-namespace:System;assembly=System.ComponentModel.Composition"
 xmlns:sa="clr-namespace:System.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:sc="clr-namespace:System.Configuration;assembly=System.Configuration"
 xmlns:sc1="clr-namespace:System.Configuration;assembly=System"
 xmlns:sc2="clr-namespace:System.Configuration;assembly=System.Transactions"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System"
 xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System.Core"
 xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel"
 xmlns:sl="clr-namespace:System.Linq;assembly=System.Core"
 xmlns:sn="clr-namespace:System.Net;assembly=System"
 xmlns:sw="clr-namespace:System.Windows;assembly=PresentationFramework"
 xmlns:sw1="clr-namespace:System.Windows;assembly=WindowsBase"
 xmlns:sw2="clr-namespace:System.Windows;assembly=PresentationCore"
 xmlns:swt="clr-namespace:System.Windows.Threading;assembly=WindowsBase"
 xmlns:swt1="clr-namespace:System.Windows.Threading;assembly=System.Windows.Presentation"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="ParcelLayerName" Type="InArgument(x:String)" />
    <x:Property Name="MapServiceID" Type="InArgument(x:String)" />
    <x:Property Name="SiteRestEndpointUrl" Type="InArgument(x:String)" />
  </x:Members>
  <sap:VirtualizedContainerService.HintSize>861,1590</sap:VirtualizedContainerService.HintSize>
  <mva:VisualBasic.Settings>Assembly references and imported namespaces serialized as XML namespaces</mva:VisualBasic.Settings>
  <Flowchart sap:VirtualizedContainerService.HintSize="821,1510" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">
    <Flowchart.Variables>
      <Variable x:TypeArguments="esri:Geometry" Name="selectedGeometry" />
      <Variable x:TypeArguments="esri:FeatureSet" Name="Selection" />
      <Variable x:TypeArguments="x:String" Name="buttonValue" />
      <Variable x:TypeArguments="x:String" Default="0" Name="distance" />
      <Variable x:TypeArguments="esri:SpatialReference" Name="spatialReference" />
      <Variable x:TypeArguments="x:Object" Name="unit" />
      <Variable x:TypeArguments="scg:Dictionary(x:String, esri:LinearUnit)" Default="[new Dictionary(of string, LinearUnit)]" Name="unitList" />
      <Variable x:TypeArguments="x:String" Name="selectedUnit" />
      <Variable x:TypeArguments="scg:IEnumerable(esri:Graphic)" Name="bufferGraphics" />
      <Variable x:TypeArguments="x:Object" Name="reportId" />
      <Variable x:TypeArguments="x:String" Name="_parcelLayerName" />
      <Variable x:TypeArguments="x:String" Name="_mapServiceID" />
      <Variable x:TypeArguments="x:String" Name="_parcelLayerQueryUrl" />
      <Variable x:TypeArguments="x:String" Default="Parcel Selection" Name="_parcelCollectionName" />
      <Variable x:TypeArguments="x:String" Name="_parcelLayerID" />
      <Variable x:TypeArguments="x:String" Default="https://gis.brentwoodca.gov/arcgis/rest/services/Utilities/Geometry/GeometryServer" Name="_geometryServerUrl" />
      <Variable x:TypeArguments="x:String" Default="http://0gis.cob.gov/Geocortex/Essentials/REST/sites/Brentwood" Name="_siteRestEndpointUrl" />
      <Variable x:TypeArguments="scg:List(gcx:DataItem)" Default="[new List(of DataItem)]" Name="reportList" />
      <Variable x:TypeArguments="x:String" Name="_parcelToken" />
    </Flowchart.Variables>
    <sap:WorkflowViewStateService.ViewState>
      <scg:Dictionary x:TypeArguments="x:String, x:Object">
        <x:Boolean x:Key="IsExpanded">False</x:Boolean>
        <av:Point x:Key="ShapeLocation">330,2.5</av:Point>
        <av:Size x:Key="ShapeSize">60,75</av:Size>
        <av:PointCollection x:Key="ConnectorLocation">360,77.5 360,104.5</av:PointCollection>
        <x:Double x:Key="Height">1473.5</x:Double>
        <x:Double x:Key="Width">806.75554991404215</x:Double>
      </scg:Dictionary>
    </sap:WorkflowViewStateService.ViewState>
    <Flowchart.StartNode>
      <FlowStep x:Name="__ReferenceID5">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">260,104.5</av:Point>
            <av:Size x:Key="ShapeSize">200,49</av:Size>
            <av:PointCollection x:Key="ConnectorLocation">360,153.5 360,183.5 360,184.5</av:PointCollection>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
        <Sequence DisplayName="Initialize Workflow" sap:VirtualizedContainerService.HintSize="200,49">
          <sap:WorkflowViewStateService.ViewState>
            <scg:Dictionary x:TypeArguments="x:String, x:Object">
              <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            </scg:Dictionary>
          </sap:WorkflowViewStateService.ViewState>
          <gwa1:RunExternalCommand CommandName="ClearSelection" sap:VirtualizedContainerService.HintSize="305,82" />
          <Sequence DisplayName="Initialize Parameters" sap:VirtualizedContainerService.HintSize="305,831">
            <sap:WorkflowViewStateService.ViewState>
              <scg:Dictionary x:TypeArguments="x:String, x:Object">
                <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                <x:Boolean x:Key="IsPinned">False</x:Boolean>
              </scg:Dictionary>
            </sap:WorkflowViewStateService.ViewState>
            <gwa1:GetMapInfo Height="{x:Null}" Scale="{x:Null}" Width="{x:Null}" sap:VirtualizedContainerService.HintSize="274,151" SpatialReference="[spatialReference]" />
            <Assign sap:VirtualizedContainerService.HintSize="274,57">
              <Assign.To>
                <OutArgument x:TypeArguments="x:String">[_mapServiceID]</OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="x:String">[MapServiceID]</InArgument>
              </Assign.Value>
            </Assign>
            <Assign sap:VirtualizedContainerService.HintSize="274,57">
              <Assign.To>
                <OutArgument x:TypeArguments="x:String">[_parcelLayerName]</OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="x:String">[ParcelLayerName]</InArgument>
              </Assign.Value>
            </Assign>
            <Assign sap:VirtualizedContainerService.HintSize="274,57">
              <Assign.To>
                <OutArgument x:TypeArguments="x:String">[_siteRestEndpointUrl]</OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="x:String">[SiteRestEndpointUrl]</InArgument>
              </Assign.Value>
            </Assign>
            <gwa1:GetMapServiceInfo sap:VirtualizedContainerService.HintSize="274,128" LayerId="[_parcelLayerID]" LayerName="[_parcelLayerName]" MapServiceId="[_mapServiceID]" MapServiceUrl="[_parcelLayerQueryUrl]" />
            <Assign sap:VirtualizedContainerService.HintSize="274,57">
              <Assign.To>
                <OutArgument x:TypeArguments="x:String">[_parcelLayerQueryUrl]</OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="x:String">[_parcelLayerQueryUrl + "/" + _parcelLayerID]</InArgument>
              </Assign.Value>
            </Assign>
          </Sequence>
          <Sequence DisplayName="Initialize Highlight Layer" sap:VirtualizedContainerService.HintSize="305,49">
            <sap:WorkflowViewStateService.ViewState>
              <scg:Dictionary x:TypeArguments="x:String, x:Object">
                <x:Boolean x:Key="IsExpanded">False</x:Boolean>
                <x:Boolean x:Key="IsPinned">False</x:Boolean>
              </scg:Dictionary>
            </sap:WorkflowViewStateService.ViewState>
            <gwa1:RunExternalCommand CommandName="ClearTemporaryMarkup" sap:VirtualizedContainerService.HintSize="303,86" />
            <gwa1:RunExternalCommand CommandName="CreateHighlightLayer" CommandParameter="[&quot;ParcelHighlights&quot;]" sap:VirtualizedContainerService.HintSize="303,86" />
            <gwa1:RunExternalCommand CommandName="SetActiveHighlightLayer" CommandParameter="[&quot;ParcelHighlights&quot;]" sap:VirtualizedContainerService.HintSize="303,86" />
            <gwa1:RunExternalCommand CommandName="SetHighlightBorderColor" CommandParameter="[&quot;#FF062A9E&quot;]" sap:VirtualizedContainerService.HintSize="303,86" />
            <gwa1:RunExternalCommand CommandName="SetHighlightFillColor" CommandParameter="[&quot;#881BC6E0&quot;]" sap:VirtualizedContainerService.HintSize="303,86" />
          </Sequence>
          <Sequence DisplayName="Initialize Results Display" sap:VirtualizedContainerService.HintSize="305,49">
            <sap:WorkflowViewStateService.ViewState>
              <scg:Dictionary x:TypeArguments="x:String, x:Object">
                <x:Boolean x:Key="IsExpanded">False</x:Boolean>
                <x:Boolean x:Key="IsPinned">False</x:Boolean>
              </scg:Dictionary>
            </sap:WorkflowViewStateService.ViewState>
            <gwa1:SelectFeatures ClearCollectionFirst="True" CollectionName="Parcel Selection" DisplayName="Initialize Parcel Selection" FeatureSet="[new ESRI.ArcGIS.Client.Tasks.FeatureSet()]" sap:VirtualizedContainerService.HintSize="313,161" LayerName="[_parcelLayerName]" MapServiceId="[_mapServiceID]" />
            <gwa1:RunExternalCommand CommandName="SwitchToWideView" sap:VirtualizedContainerService.HintSize="313,86" />
            <gwa1:RunExternalCommand CommandName="SwitchToTabularResultsView" sap:VirtualizedContainerService.HintSize="313,86" />
          </Sequence>
          <Sequence DisplayName="Create Unit Lookup Dictionary" sap:VirtualizedContainerService.HintSize="305,49">
            <Sequence.Variables>
              <Variable x:TypeArguments="esri:LinearUnit" Name="linearUnit" />
            </Sequence.Variables>
            <sap:WorkflowViewStateService.ViewState>
              <scg:Dictionary x:TypeArguments="x:String, x:Object">
                <x:Boolean x:Key="IsExpanded">False</x:Boolean>
                <x:Boolean x:Key="IsPinned">False</x:Boolean>
              </scg:Dictionary>
            </sap:WorkflowViewStateService.ViewState>
            <gwa1:AddToDictionary x:TypeArguments="x:String, esri:LinearUnit" Dictionary="[unitList]" sap:VirtualizedContainerService.HintSize="243,111" Key="Feet" Value="[ESRI.ArcGIS.Client.Tasks.LinearUnit.Foot]" />
            <gwa1:AddToDictionary x:TypeArguments="x:String, esri:LinearUnit" Dictionary="[unitList]" sap:VirtualizedContainerService.HintSize="243,111" Key="Meters" Value="[ESRI.ArcGIS.Client.Tasks.LinearUnit.Meter]" />
            <gwa1:AddToDictionary x:TypeArguments="x:String, esri:LinearUnit" Dictionary="[unitList]" sap:VirtualizedContainerService.HintSize="243,111" Key="Yards" Value="[ESRI.ArcGIS.Client.Tasks.LinearUnit.SurveyYard]" />
            <gwa1:AddToDictionary x:TypeArguments="x:String, esri:LinearUnit" Dictionary="[unitList]" sap:VirtualizedContainerService.HintSize="243,111" Key="Miles" Value="[ESRI.ArcGIS.Client.Tasks.LinearUnit.SurveyMile]" />
            <gwa1:AddToDictionary x:TypeArguments="x:String, esri:LinearUnit" Dictionary="[unitList]" sap:VirtualizedContainerService.HintSize="243,111" Key="Kilometers" Value="[ESRI.ArcGIS.Client.Tasks.LinearUnit.Kilometer]" />
          </Sequence>
          <Sequence DisplayName="Create Report List" sap:VirtualizedContainerService.HintSize="305,49">
            <Sequence.Variables>
              <Variable x:TypeArguments="x:String" Name="_layerReportEndpointUrl" />
              <Variable x:TypeArguments="sn:WebClient" Default="[new WebClient]" Name="client" />
              <Variable x:TypeArguments="gw:ExternalObject" Default="[new ExternalObject]" Name="jsonResponseObject" />
              <Variable x:TypeArguments="s2:Object[]" Name="reportObjects" />
            </Sequence.Variables>
            <sap:WorkflowViewStateService.ViewState>
              <scg:Dictionary x:TypeArguments="x:String, x:Object">
                <x:Boolean x:Key="IsExpanded">False</x:Boolean>
                <x:Boolean x:Key="IsPinned">False</x:Boolean>
              </scg:Dictionary>
            </sap:WorkflowViewStateService.ViewState>
            <Assign sap:VirtualizedContainerService.HintSize="327,60">
              <Assign.To>
                <OutArgument x:TypeArguments="x:String">[_layerReportEndpointUrl]</OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="x:String">[_siteRestEndpointUrl + "/map/mapservices/" + _mapServiceID + "/layers/" + _parcelLayerID +"/reports?f=json"]</InArgument>
              </Assign.Value>
            </Assign>
            <Assign sap:VirtualizedContainerService.HintSize="327,60">
              <Assign.To>
                <OutArgument x:TypeArguments="x:String">[jsonResponseObject.Json]</OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="x:String">[client.DownloadString(_layerReportEndpointUrl)]</InArgument>
              </Assign.Value>
            </Assign>
            <Assign sap:VirtualizedContainerService.HintSize="327,60">
              <Assign.To>
                <OutArgument x:TypeArguments="s2:Object[]">[reportObjects]</OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="s2:Object[]">[CType(jsonResponseObject.GetValue("reports"),object())]</InArgument>
              </Assign.Value>
            </Assign>
            <ForEach x:TypeArguments="x:Object" DisplayName="ForEach&lt;Object&gt;" sap:VirtualizedContainerService.HintSize="327,630" Values="[reportObjects]">
              <ActivityAction x:TypeArguments="x:Object">
                <ActivityAction.Argument>
                  <DelegateInArgument x:TypeArguments="x:Object" Name="reportObject" />
                </ActivityAction.Argument>
                <Sequence DisplayName="Construct Report DataItem" sap:VirtualizedContainerService.HintSize="297,522">
                  <Sequence.Variables>
                    <Variable x:TypeArguments="scg:Dictionary(x:String, x:Object)" Default="[new Dictionary(of string, object)]" Name="reportDictionary" />
                    <Variable x:TypeArguments="scg:KeyValuePair(x:String, x:Object)" Name="reportKeyValue" />
                    <Variable x:TypeArguments="gcx:DataItem" Name="reportDataItem" />
                  </Sequence.Variables>
                  <sap:WorkflowViewStateService.ViewState>
                    <scg:Dictionary x:TypeArguments="x:String, x:Object">
                      <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                    </scg:Dictionary>
                  </sap:WorkflowViewStateService.ViewState>
                  <Assign sap:VirtualizedContainerService.HintSize="275,60">
                    <Assign.To>
                      <OutArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)">[reportDictionary]</OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="scg:Dictionary(x:String, x:Object)">[CType(reportObject,Dictionary(of string,object))]</InArgument>
                    </Assign.Value>
                  </Assign>
                  <Assign sap:VirtualizedContainerService.HintSize="275,60">
                    <Assign.To>
                      <OutArgument x:TypeArguments="scg:KeyValuePair(x:String, x:Object)">[reportKeyValue]</OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="scg:KeyValuePair(x:String, x:Object)">[new KeyValuePair(of string,object)(reportDictionary("displayName").ToString,reportDictionary("id"))]</InArgument>
                    </Assign.Value>
                  </Assign>
                  <gwa1:ObjectToDataItem DataItem="[reportDataItem]" DisplayProperty="Key" sap:VirtualizedContainerService.HintSize="275,136" Object="[reportKeyValue]" ValueProperty="Value" />
                  <AddToCollection x:TypeArguments="gcx:DataItem" Collection="[reportList]" DisplayName="AddToCollection&lt;DataItem&gt;" sap:VirtualizedContainerService.HintSize="275,22" Item="[reportDataItem]" />
                </Sequence>
              </ActivityAction>
            </ForEach>
          </Sequence>
          <gwa1:GenerateToken Expiration="20" sap:VirtualizedContainerService.HintSize="305,197" Password="brentwoodsecure" Token="[_parcelToken]" TokenServiceUrl="https://gis.brentwoodca.gov/arcgis/tokens/generateToken" UserName="webAuth" />
        </Sequence>
        <FlowStep.Next>
          <FlowStep x:Name="__ReferenceID4">
            <sap:WorkflowViewStateService.ViewState>
              <scg:Dictionary x:TypeArguments="x:String, x:Object">
                <av:Point x:Key="ShapeLocation">260,184.5</av:Point>
                <av:Size x:Key="ShapeSize">200,49</av:Size>
                <av:PointCollection x:Key="ConnectorLocation">360,233.5 360,263.5 360,264.5</av:PointCollection>
              </scg:Dictionary>
            </sap:WorkflowViewStateService.ViewState>
            <gwa1:DisplayCaptureGeometry CaptureTypes="{x:Null}" GraphicsLayerName="{x:Null}" DisplayName="Step 1: Create Selection" GeometryRequired="True" sap:VirtualizedContainerService.HintSize="200,49" Message="Please make a selection of parcels for the report." RequiredMessage="Please draw a geometry on the map to select parcels." Result="[selectedGeometry]" ShowCapturedGeometry="True" ShowCapturedMessage="True" Title="Step 1: Select Parcels" WorkflowContainerName="Default">
              <gwa1:DisplayCaptureGeometry.Buttons>
                <gcx:FormButton CausesValidation="False" IsDefault="True" Label="OK" Value="OK" />
              </gwa1:DisplayCaptureGeometry.Buttons>
              <gwa1:DisplayCaptureGeometry.CaptureTypesPlaceholder>
                <scg:List x:TypeArguments="gwa1:GeometryCaptureType" Capacity="8">
                  <gwa1:GeometryCaptureType>Polyline</gwa1:GeometryCaptureType>
                  <gwa1:GeometryCaptureType>MapPoint</gwa1:GeometryCaptureType>
                  <gwa1:GeometryCaptureType>FreehandPolyline</gwa1:GeometryCaptureType>
                  <gwa1:GeometryCaptureType>Polygon</gwa1:GeometryCaptureType>
                  <gwa1:GeometryCaptureType>Extent</gwa1:GeometryCaptureType>
                </scg:List>
              </gwa1:DisplayCaptureGeometry.CaptureTypesPlaceholder>
              <sap:WorkflowViewStateService.ViewState>
                <scg:Dictionary x:TypeArguments="x:String, x:Object">
                  <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                </scg:Dictionary>
              </sap:WorkflowViewStateService.ViewState>
            </gwa1:DisplayCaptureGeometry>
            <FlowStep.Next>
              <FlowStep x:Name="__ReferenceID1">
                <sap:WorkflowViewStateService.ViewState>
                  <scg:Dictionary x:TypeArguments="x:String, x:Object">
                    <av:Point x:Key="ShapeLocation">260,264.5</av:Point>
                    <av:Size x:Key="ShapeSize">200,49</av:Size>
                    <av:PointCollection x:Key="ConnectorLocation">360,313.5 360,343.5 360,344.02</av:PointCollection>
                  </scg:Dictionary>
                </sap:WorkflowViewStateService.ViewState>
                <Sequence DisplayName="Display Initial Selection" sap:VirtualizedContainerService.HintSize="200,49">
                  <sap:WorkflowViewStateService.ViewState>
                    <scg:Dictionary x:TypeArguments="x:String, x:Object">
                      <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                    </scg:Dictionary>
                  </sap:WorkflowViewStateService.ViewState>
                  <gwa1:QueryTask Geometry="[selectedGeometry]" sap:VirtualizedContainerService.HintSize="563,227" OutFields="*" OutSpatialReference="[spatialReference]" QueryServiceUrl="[_parcelLayerQueryUrl]" Results="[Selection]" ReturnGeometry="True" SpatialRelationship="esriSpatialRelIntersects" Token="[_parcelToken]" />
                  <gwa1:SelectFeatures ClearCollectionFirst="True" CollectionName="[_parcelCollectionName]" FeatureSet="[Selection]" sap:VirtualizedContainerService.HintSize="563,151" LayerId="[_parcelLayerID]" LayerName="[_parcelLayerName]" MapServiceId="[_mapServiceID]" />
                  <If Condition="[Selection.Features.Count &gt; 0]" sap:VirtualizedContainerService.HintSize="563,551">
                    <If.Then>
                      <Sequence DisplayName="Highlight Features" sap:VirtualizedContainerService.HintSize="327,450">
                        <sap:WorkflowViewStateService.ViewState>
                          <scg:Dictionary x:TypeArguments="x:String, x:Object">
                            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                          </scg:Dictionary>
                        </sap:WorkflowViewStateService.ViewState>
                        <gwa1:RunExternalCommand CommandName="SetActiveHighlightLayer" CommandParameter="[&quot;ParcelHighlights&quot;]" sap:VirtualizedContainerService.HintSize="305,82" />
                        <gwa1:RunExternalCommand CommandName="ClearHighlights" sap:VirtualizedContainerService.HintSize="305,82" />
                        <gwa1:RunExternalCommand CommandName="HighlightEsriFeatureSet" CommandParameter="[Selection]" sap:VirtualizedContainerService.HintSize="305,82">
                          <sap:WorkflowViewStateService.ViewState>
                            <scg:Dictionary x:TypeArguments="x:String, x:Object">
                              <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                              <x:Boolean x:Key="IsPinned">False</x:Boolean>
                            </scg:Dictionary>
                          </sap:WorkflowViewStateService.ViewState>
                        </gwa1:RunExternalCommand>
                      </Sequence>
                    </If.Then>
                    <If.Else>
                      <gwa1:Alert sap:VirtualizedContainerService.HintSize="211,450" Text="No features were selected. Please add valid features to your selection." Title="Warning" />
                    </If.Else>
                  </If>
                </Sequence>
                <FlowStep.Next>
                  <FlowStep x:Name="__ReferenceID0">
                    <sap:WorkflowViewStateService.ViewState>
                      <scg:Dictionary x:TypeArguments="x:String, x:Object">
                        <av:Point x:Key="ShapeLocation">260,344.02</av:Point>
                        <av:Size x:Key="ShapeSize">200,49</av:Size>
                        <av:PointCollection x:Key="ConnectorLocation">360,393.02 360,423.02 450,423.02 450,476.5</av:PointCollection>
                      </scg:Dictionary>
                    </sap:WorkflowViewStateService.ViewState>
                    <gwa1:DisplayCaptureGeometry CaptureTypes="{x:Null}" GraphicsLayerName="{x:Null}" ButtonResultValue="[buttonValue]" DisplayName="Step 2: Modify Selection" GeometryRequired="True" sap:VirtualizedContainerService.HintSize="200,49" Message="Select a geometry to modify this selection, or click Continue if you are finished." RequiredMessage="Please select a geometry, and then choose your action." Result="[selectedGeometry]" ShowCapturedGeometry="True" ShowCapturedMessage="True" Title="Step 2: Modify Selection" WorkflowContainerName="Default">
                      <gwa1:DisplayCaptureGeometry.Buttons>
                        <gcx:FormButton CausesValidation="True" IsDefault="False" Label="Replace" Value="Replace" />
                        <gcx:FormButton CausesValidation="True" IsDefault="False" Label="Add" Value="Add" />
                        <gcx:FormButton CausesValidation="True" IsDefault="False" Label="Remove" Value="Remove" />
                        <gcx:FormButton CausesValidation="True" IsDefault="False" Label="Intersect" Value="Intersect" />
                        <gcx:FormButton CausesValidation="False" IsDefault="True" Label="Continue" Value="Continue" />
                      </gwa1:DisplayCaptureGeometry.Buttons>
                      <gwa1:DisplayCaptureGeometry.CaptureTypesPlaceholder>
                        <scg:List x:TypeArguments="gwa1:GeometryCaptureType" Capacity="8">
                          <gwa1:GeometryCaptureType>MapPoint</gwa1:GeometryCaptureType>
                          <gwa1:GeometryCaptureType>Polyline</gwa1:GeometryCaptureType>
                          <gwa1:GeometryCaptureType>FreehandPolyline</gwa1:GeometryCaptureType>
                          <gwa1:GeometryCaptureType>Polygon</gwa1:GeometryCaptureType>
                          <gwa1:GeometryCaptureType>Extent</gwa1:GeometryCaptureType>
                        </scg:List>
                      </gwa1:DisplayCaptureGeometry.CaptureTypesPlaceholder>
                      <sap:WorkflowViewStateService.ViewState>
                        <scg:Dictionary x:TypeArguments="x:String, x:Object">
                          <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                        </scg:Dictionary>
                      </sap:WorkflowViewStateService.ViewState>
                    </gwa1:DisplayCaptureGeometry>
                    <FlowStep.Next>
                      <FlowSwitch x:TypeArguments="x:String" x:Name="__ReferenceID6" Expression="[buttonValue]" sap:VirtualizedContainerService.HintSize="70,87">
                        <sap:WorkflowViewStateService.ViewState>
                          <scg:Dictionary x:TypeArguments="x:String, x:Object">
                            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                            <av:Point x:Key="ShapeLocation">415,476.5</av:Point>
                            <av:Size x:Key="ShapeSize">70,87</av:Size>
                            <av:PointCollection x:Key="AddConnector">415,498.25 385,498.25 385,459 330,459</av:PointCollection>
                            <av:PointCollection x:Key="RemoveConnector">415,520 385,520 385,549 270,549</av:PointCollection>
                            <av:PointCollection x:Key="IntersectConnector">415,541.75 385,541.75 385,639 210,639</av:PointCollection>
                            <av:PointCollection x:Key="ReplaceConnector">467.5,476.5 467.5,289 460,289</av:PointCollection>
                            <av:PointCollection x:Key="ContinueConnector">432.5,563.5 432.5,676.5</av:PointCollection>
                          </scg:Dictionary>
                        </sap:WorkflowViewStateService.ViewState>
                        <FlowStep x:Key="Add" x:Name="__ReferenceID7">
                          <sap:WorkflowViewStateService.ViewState>
                            <scg:Dictionary x:TypeArguments="x:String, x:Object">
                              <av:Point x:Key="ShapeLocation">130,434.5</av:Point>
                              <av:Size x:Key="ShapeSize">200,49</av:Size>
                              <av:PointCollection x:Key="ConnectorLocation">230,434.5 230,369.52 260,369.52</av:PointCollection>
                            </scg:Dictionary>
                          </sap:WorkflowViewStateService.ViewState>
                          <Sequence DisplayName="Add to Selection" sap:VirtualizedContainerService.HintSize="200,49">
                            <Sequence.Variables>
                              <Variable x:TypeArguments="esri:FeatureSet" Name="addedSelection" />
                            </Sequence.Variables>
                            <sap:WorkflowViewStateService.ViewState>
                              <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                              </scg:Dictionary>
                            </sap:WorkflowViewStateService.ViewState>
                            <gwa1:QueryTask Geometry="[selectedGeometry]" sap:VirtualizedContainerService.HintSize="568,227" OutFields="*" OutSpatialReference="[spatialReference]" QueryServiceUrl="[_parcelLayerQueryUrl]" Results="[addedSelection]" ReturnGeometry="True" SpatialRelationship="esriSpatialRelIntersects" Token="[_parcelToken]" />
                            <ForEach x:TypeArguments="esri:Graphic" DisplayName="ForEach&lt;Graphic&gt;" sap:VirtualizedContainerService.HintSize="568,1207" Values="[addedSelection.Features]">
                              <ActivityAction x:TypeArguments="esri:Graphic">
                                <ActivityAction.Argument>
                                  <DelegateInArgument x:TypeArguments="esri:Graphic" Name="addedFeature" />
                                </ActivityAction.Argument>
                                <Sequence DisplayName="Added Features Loop" sap:VirtualizedContainerService.HintSize="538,1104">
                                  <Sequence.Variables>
                                    <Variable x:TypeArguments="x:Boolean" Name="add" />
                                  </Sequence.Variables>
                                  <sap:WorkflowViewStateService.ViewState>
                                    <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                      <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                    </scg:Dictionary>
                                  </sap:WorkflowViewStateService.ViewState>
                                  <Assign sap:VirtualizedContainerService.HintSize="516,57">
                                    <Assign.To>
                                      <OutArgument x:TypeArguments="x:Boolean">[add]</OutArgument>
                                    </Assign.To>
                                    <Assign.Value>
                                      <InArgument x:TypeArguments="x:Boolean">True</InArgument>
                                    </Assign.Value>
                                  </Assign>
                                  <ForEach x:TypeArguments="esri:Graphic" DisplayName="ForEach&lt;Graphic&gt;" sap:VirtualizedContainerService.HintSize="516,635" Values="[Selection.Features]">
                                    <ActivityAction x:TypeArguments="esri:Graphic">
                                      <ActivityAction.Argument>
                                        <DelegateInArgument x:TypeArguments="esri:Graphic" Name="feature" />
                                      </ActivityAction.Argument>
                                      <Sequence DisplayName="Initial Features Loop" sap:VirtualizedContainerService.HintSize="486,532">
                                        <Sequence.Variables>
                                          <Variable x:TypeArguments="esri:FeatureSet" Name="testFS" />
                                          <Variable x:TypeArguments="esri:FeatureSet" Name="addedFS" />
                                        </Sequence.Variables>
                                        <sap:WorkflowViewStateService.ViewState>
                                          <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                          </scg:Dictionary>
                                        </sap:WorkflowViewStateService.ViewState>
                                        <Assign sap:VirtualizedContainerService.HintSize="464,60">
                                          <Assign.To>
                                            <OutArgument x:TypeArguments="esri:FeatureSet">[testFS]</OutArgument>
                                          </Assign.To>
                                          <Assign.Value>
                                            <InArgument x:TypeArguments="esri:FeatureSet">[new ESRI.ArcGIS.Client.Tasks.FeatureSet(feature.Geometry)]</InArgument>
                                          </Assign.Value>
                                        </Assign>
                                        <Assign sap:VirtualizedContainerService.HintSize="464,60">
                                          <Assign.To>
                                            <OutArgument x:TypeArguments="esri:FeatureSet">[addedFS]</OutArgument>
                                          </Assign.To>
                                          <Assign.Value>
                                            <InArgument x:TypeArguments="esri:FeatureSet">[new ESRI.ArcGIS.Client.Tasks.FeatureSet(addedfeature.Geometry)]</InArgument>
                                          </Assign.Value>
                                        </Assign>
                                        <If Condition="[testFS.ToJson = addedFS.ToJson]" sap:VirtualizedContainerService.HintSize="464,208">
                                          <If.Then>
                                            <Assign sap:VirtualizedContainerService.HintSize="242,60">
                                              <Assign.To>
                                                <OutArgument x:TypeArguments="x:Boolean">[add]</OutArgument>
                                              </Assign.To>
                                              <Assign.Value>
                                                <InArgument x:TypeArguments="x:Boolean">False</InArgument>
                                              </Assign.Value>
                                            </Assign>
                                          </If.Then>
                                        </If>
                                      </Sequence>
                                    </ActivityAction>
                                  </ForEach>
                                  <If Condition="[add]" sap:VirtualizedContainerService.HintSize="516,208">
                                    <If.Then>
                                      <AddToCollection x:TypeArguments="esri:Graphic" Collection="[Selection.Features]" DisplayName="AddToCollection&lt;Graphic&gt;" sap:VirtualizedContainerService.HintSize="200,22" Item="[addedFeature]" />
                                    </If.Then>
                                  </If>
                                </Sequence>
                              </ActivityAction>
                            </ForEach>
                            <gwa1:SelectFeatures ClearCollectionFirst="False" CollectionName="[_parcelCollectionName]" FeatureSet="[Selection]" sap:VirtualizedContainerService.HintSize="568,161" LayerId="[_parcelLayerID]" LayerName="[_parcelLayerName]" MapServiceId="[_mapServiceID]" />
                            <If Condition="[Selection.Features.Count &gt; 0]" sap:VirtualizedContainerService.HintSize="568,570">
                              <If.Then>
                                <Sequence DisplayName="Highlight Features" sap:VirtualizedContainerService.HintSize="325,462">
                                  <sap:WorkflowViewStateService.ViewState>
                                    <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                      <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                    </scg:Dictionary>
                                  </sap:WorkflowViewStateService.ViewState>
                                  <gwa1:RunExternalCommand CommandName="SetActiveHighlightLayer" CommandParameter="[&quot;ParcelHighlights&quot;]" sap:VirtualizedContainerService.HintSize="303,86" />
                                  <gwa1:RunExternalCommand CommandName="ClearHighlights" sap:VirtualizedContainerService.HintSize="303,86" />
                                  <gwa1:RunExternalCommand CommandName="HighlightEsriFeatureSet" CommandParameter="[Selection]" sap:VirtualizedContainerService.HintSize="303,86">
                                    <sap:WorkflowViewStateService.ViewState>
                                      <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                        <x:Boolean x:Key="IsPinned">False</x:Boolean>
                                      </scg:Dictionary>
                                    </sap:WorkflowViewStateService.ViewState>
                                  </gwa1:RunExternalCommand>
                                </Sequence>
                              </If.Then>
                              <If.Else>
                                <gwa1:Alert sap:VirtualizedContainerService.HintSize="212,86" Text="No features were selected. Please add valid features to your selection." Title="Warning" />
                              </If.Else>
                            </If>
                          </Sequence>
                          <FlowStep.Next>
                            <x:Reference>__ReferenceID0</x:Reference>
                          </FlowStep.Next>
                        </FlowStep>
                        <FlowStep x:Key="Intersect" x:Name="__ReferenceID9">
                          <sap:WorkflowViewStateService.ViewState>
                            <scg:Dictionary x:TypeArguments="x:String, x:Object">
                              <av:Point x:Key="ShapeLocation">10,614.5</av:Point>
                              <av:Size x:Key="ShapeSize">200,49</av:Size>
                              <av:PointCollection x:Key="ConnectorLocation">110,614.5 110,584.5 50,584.5 50,369.52 260,369.52</av:PointCollection>
                            </scg:Dictionary>
                          </sap:WorkflowViewStateService.ViewState>
                          <Sequence DisplayName="Intersect with Selection" sap:VirtualizedContainerService.HintSize="200,49">
                            <Sequence.Variables>
                              <Variable x:TypeArguments="esri:FeatureSet" Name="intersectSelection" />
                              <Variable x:TypeArguments="esri:FeatureSet" Default="[new ESRI.ArcGIS.Client.Tasks.FeatureSet()]" Name="modifiedSelection" />
                            </Sequence.Variables>
                            <sap:WorkflowViewStateService.ViewState>
                              <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                              </scg:Dictionary>
                            </sap:WorkflowViewStateService.ViewState>
                            <gwa1:QueryTask Geometry="[selectedGeometry]" sap:VirtualizedContainerService.HintSize="568,227" OutFields="*" OutSpatialReference="[spatialReference]" QueryServiceUrl="[_parcelLayerQueryUrl]" Results="[intersectSelection]" ReturnGeometry="True" SpatialRelationship="esriSpatialRelIntersects" Token="[_parcelToken]" />
                            <ForEach x:TypeArguments="esri:Graphic" DisplayName="ForEach&lt;Graphic&gt;" sap:VirtualizedContainerService.HintSize="568,1207" Values="[Selection.Features]">
                              <ActivityAction x:TypeArguments="esri:Graphic">
                                <ActivityAction.Argument>
                                  <DelegateInArgument x:TypeArguments="esri:Graphic" Name="feature" />
                                </ActivityAction.Argument>
                                <Sequence DisplayName="Initial Features Loop" sap:VirtualizedContainerService.HintSize="538,1104">
                                  <Sequence.Variables>
                                    <Variable x:TypeArguments="x:Boolean" Name="remove" />
                                  </Sequence.Variables>
                                  <sap:WorkflowViewStateService.ViewState>
                                    <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                      <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                    </scg:Dictionary>
                                  </sap:WorkflowViewStateService.ViewState>
                                  <Assign sap:VirtualizedContainerService.HintSize="516,57">
                                    <Assign.To>
                                      <OutArgument x:TypeArguments="x:Boolean">[remove]</OutArgument>
                                    </Assign.To>
                                    <Assign.Value>
                                      <InArgument x:TypeArguments="x:Boolean">True</InArgument>
                                    </Assign.Value>
                                  </Assign>
                                  <ForEach x:TypeArguments="esri:Graphic" DisplayName="ForEach&lt;Graphic&gt;" sap:VirtualizedContainerService.HintSize="516,635" Values="[intersectSelection.Features]">
                                    <ActivityAction x:TypeArguments="esri:Graphic">
                                      <ActivityAction.Argument>
                                        <DelegateInArgument x:TypeArguments="esri:Graphic" Name="intersectFeature" />
                                      </ActivityAction.Argument>
                                      <Sequence DisplayName="Removed Features Loop" sap:VirtualizedContainerService.HintSize="486,532">
                                        <Sequence.Variables>
                                          <Variable x:TypeArguments="esri:FeatureSet" Name="testFS" />
                                          <Variable x:TypeArguments="esri:FeatureSet" Name="intersectFS" />
                                        </Sequence.Variables>
                                        <sap:WorkflowViewStateService.ViewState>
                                          <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                          </scg:Dictionary>
                                        </sap:WorkflowViewStateService.ViewState>
                                        <Assign sap:VirtualizedContainerService.HintSize="464,60">
                                          <Assign.To>
                                            <OutArgument x:TypeArguments="esri:FeatureSet">[testFS]</OutArgument>
                                          </Assign.To>
                                          <Assign.Value>
                                            <InArgument x:TypeArguments="esri:FeatureSet">[new ESRI.ArcGIS.Client.Tasks.FeatureSet(feature.Geometry)]</InArgument>
                                          </Assign.Value>
                                        </Assign>
                                        <Assign sap:VirtualizedContainerService.HintSize="464,60">
                                          <Assign.To>
                                            <OutArgument x:TypeArguments="esri:FeatureSet">[intersectFS]</OutArgument>
                                          </Assign.To>
                                          <Assign.Value>
                                            <InArgument x:TypeArguments="esri:FeatureSet">[new ESRI.ArcGIS.Client.Tasks.FeatureSet(intersectfeature.Geometry)]</InArgument>
                                          </Assign.Value>
                                        </Assign>
                                        <If Condition="[testFS.ToJson = intersectFS.ToJson]" sap:VirtualizedContainerService.HintSize="464,208">
                                          <If.Then>
                                            <Assign sap:VirtualizedContainerService.HintSize="242,60">
                                              <Assign.To>
                                                <OutArgument x:TypeArguments="x:Boolean">[remove]</OutArgument>
                                              </Assign.To>
                                              <Assign.Value>
                                                <InArgument x:TypeArguments="x:Boolean">False</InArgument>
                                              </Assign.Value>
                                            </Assign>
                                          </If.Then>
                                        </If>
                                      </Sequence>
                                    </ActivityAction>
                                  </ForEach>
                                  <If Condition="[Not remove]" sap:VirtualizedContainerService.HintSize="516,208">
                                    <If.Then>
                                      <AddToCollection x:TypeArguments="esri:Graphic" Collection="[modifiedSelection.Features]" DisplayName="AddToCollection&lt;Graphic&gt;" sap:VirtualizedContainerService.HintSize="200,22" Item="[feature]" />
                                    </If.Then>
                                  </If>
                                </Sequence>
                              </ActivityAction>
                            </ForEach>
                            <gwa1:SelectFeatures ClearCollectionFirst="True" CollectionName="[_parcelCollectionName]" FeatureSet="[Selection]" sap:VirtualizedContainerService.HintSize="568,161" LayerId="[_parcelLayerID]" LayerName="[_parcelLayerName]" MapServiceId="[_mapServiceID]" />
                            <If Condition="[modifiedSelection.Features.Count &gt; 0]" sap:VirtualizedContainerService.HintSize="568,570">
                              <If.Then>
                                <Sequence DisplayName="Highlight Features" sap:VirtualizedContainerService.HintSize="325,462">
                                  <sap:WorkflowViewStateService.ViewState>
                                    <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                      <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                    </scg:Dictionary>
                                  </sap:WorkflowViewStateService.ViewState>
                                  <gwa1:RunExternalCommand CommandName="SetActiveHighlightLayer" CommandParameter="[&quot;ParcelHighlights&quot;]" sap:VirtualizedContainerService.HintSize="303,86" />
                                  <gwa1:RunExternalCommand CommandName="ClearHighlights" sap:VirtualizedContainerService.HintSize="303,86" />
                                  <gwa1:RunExternalCommand CommandName="HighlightEsriFeatureSet" CommandParameter="[modifiedSelection]" sap:VirtualizedContainerService.HintSize="303,86">
                                    <sap:WorkflowViewStateService.ViewState>
                                      <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                        <x:Boolean x:Key="IsPinned">False</x:Boolean>
                                      </scg:Dictionary>
                                    </sap:WorkflowViewStateService.ViewState>
                                  </gwa1:RunExternalCommand>
                                </Sequence>
                              </If.Then>
                              <If.Else>
                                <gwa1:Alert sap:VirtualizedContainerService.HintSize="212,86" Text="No features were selected. Please add valid features to your selection." Title="Warning" />
                              </If.Else>
                            </If>
                            <Assign sap:VirtualizedContainerService.HintSize="568,60">
                              <Assign.To>
                                <OutArgument x:TypeArguments="esri:FeatureSet">[Selection]</OutArgument>
                              </Assign.To>
                              <Assign.Value>
                                <InArgument x:TypeArguments="esri:FeatureSet">[modifiedSelection]</InArgument>
                              </Assign.Value>
                            </Assign>
                          </Sequence>
                          <FlowStep.Next>
                            <x:Reference>__ReferenceID0</x:Reference>
                          </FlowStep.Next>
                        </FlowStep>
                        <x:Reference>__ReferenceID1<x:Key>Replace</x:Key></x:Reference>
                        <FlowStep x:Key="Remove" x:Name="__ReferenceID8">
                          <sap:WorkflowViewStateService.ViewState>
                            <scg:Dictionary x:TypeArguments="x:String, x:Object">
                              <av:Point x:Key="ShapeLocation">70,524.5</av:Point>
                              <av:Size x:Key="ShapeSize">200,49</av:Size>
                              <av:PointCollection x:Key="ConnectorLocation">170,524.5 170,494.5 110,494.5 110,369.52 260,369.52</av:PointCollection>
                            </scg:Dictionary>
                          </sap:WorkflowViewStateService.ViewState>
                          <Sequence DisplayName="Remove from Selection" sap:VirtualizedContainerService.HintSize="200,49">
                            <Sequence.Variables>
                              <Variable x:TypeArguments="esri:FeatureSet" Name="removedSelection" />
                              <Variable x:TypeArguments="esri:FeatureSet" Default="[new ESRI.ArcGIS.Client.Tasks.FeatureSet()]" Name="modifiedSelection" />
                            </Sequence.Variables>
                            <sap:WorkflowViewStateService.ViewState>
                              <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                              </scg:Dictionary>
                            </sap:WorkflowViewStateService.ViewState>
                            <gwa1:QueryTask Geometry="[selectedGeometry]" sap:VirtualizedContainerService.HintSize="568,227" OutFields="*" OutSpatialReference="[spatialReference]" QueryServiceUrl="[_parcelLayerQueryUrl]" Results="[removedSelection]" ReturnGeometry="True" SpatialRelationship="esriSpatialRelIntersects" Token="[_parcelToken]" />
                            <ForEach x:TypeArguments="esri:Graphic" DisplayName="ForEach&lt;Graphic&gt;" sap:VirtualizedContainerService.HintSize="568,1207" Values="[Selection.Features]">
                              <ActivityAction x:TypeArguments="esri:Graphic">
                                <ActivityAction.Argument>
                                  <DelegateInArgument x:TypeArguments="esri:Graphic" Name="feature" />
                                </ActivityAction.Argument>
                                <Sequence DisplayName="Initial Features Loop" sap:VirtualizedContainerService.HintSize="538,1104">
                                  <Sequence.Variables>
                                    <Variable x:TypeArguments="x:Boolean" Name="remove" />
                                  </Sequence.Variables>
                                  <sap:WorkflowViewStateService.ViewState>
                                    <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                      <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                    </scg:Dictionary>
                                  </sap:WorkflowViewStateService.ViewState>
                                  <Assign sap:VirtualizedContainerService.HintSize="516,57">
                                    <Assign.To>
                                      <OutArgument x:TypeArguments="x:Boolean">[remove]</OutArgument>
                                    </Assign.To>
                                    <Assign.Value>
                                      <InArgument x:TypeArguments="x:Boolean">False</InArgument>
                                    </Assign.Value>
                                  </Assign>
                                  <ForEach x:TypeArguments="esri:Graphic" DisplayName="ForEach&lt;Graphic&gt;" sap:VirtualizedContainerService.HintSize="516,635" Values="[removedSelection.Features]">
                                    <ActivityAction x:TypeArguments="esri:Graphic">
                                      <ActivityAction.Argument>
                                        <DelegateInArgument x:TypeArguments="esri:Graphic" Name="removedFeature" />
                                      </ActivityAction.Argument>
                                      <Sequence DisplayName="Removed Features Loop" sap:VirtualizedContainerService.HintSize="486,532">
                                        <Sequence.Variables>
                                          <Variable x:TypeArguments="esri:FeatureSet" Name="testFS" />
                                          <Variable x:TypeArguments="esri:FeatureSet" Name="removeFS" />
                                        </Sequence.Variables>
                                        <sap:WorkflowViewStateService.ViewState>
                                          <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                          </scg:Dictionary>
                                        </sap:WorkflowViewStateService.ViewState>
                                        <Assign sap:VirtualizedContainerService.HintSize="464,60">
                                          <Assign.To>
                                            <OutArgument x:TypeArguments="esri:FeatureSet">[testFS]</OutArgument>
                                          </Assign.To>
                                          <Assign.Value>
                                            <InArgument x:TypeArguments="esri:FeatureSet">[new ESRI.ArcGIS.Client.Tasks.FeatureSet(feature.Geometry)]</InArgument>
                                          </Assign.Value>
                                        </Assign>
                                        <Assign sap:VirtualizedContainerService.HintSize="464,60">
                                          <Assign.To>
                                            <OutArgument x:TypeArguments="esri:FeatureSet">[removeFS]</OutArgument>
                                          </Assign.To>
                                          <Assign.Value>
                                            <InArgument x:TypeArguments="esri:FeatureSet">[new ESRI.ArcGIS.Client.Tasks.FeatureSet(removedfeature.Geometry)]</InArgument>
                                          </Assign.Value>
                                        </Assign>
                                        <If Condition="[testFS.ToJson = removeFS.ToJson]" sap:VirtualizedContainerService.HintSize="464,208">
                                          <If.Then>
                                            <Assign sap:VirtualizedContainerService.HintSize="242,60">
                                              <Assign.To>
                                                <OutArgument x:TypeArguments="x:Boolean">[remove]</OutArgument>
                                              </Assign.To>
                                              <Assign.Value>
                                                <InArgument x:TypeArguments="x:Boolean">True</InArgument>
                                              </Assign.Value>
                                            </Assign>
                                          </If.Then>
                                        </If>
                                      </Sequence>
                                    </ActivityAction>
                                  </ForEach>
                                  <If Condition="[Not remove]" sap:VirtualizedContainerService.HintSize="516,208">
                                    <If.Then>
                                      <AddToCollection x:TypeArguments="esri:Graphic" Collection="[modifiedSelection.Features]" DisplayName="AddToCollection&lt;Graphic&gt;" sap:VirtualizedContainerService.HintSize="200,22" Item="[feature]" />
                                    </If.Then>
                                  </If>
                                </Sequence>
                              </ActivityAction>
                            </ForEach>
                            <gwa1:SelectFeatures ClearCollectionFirst="True" CollectionName="[_parcelCollectionName]" FeatureSet="[modifiedSelection]" sap:VirtualizedContainerService.HintSize="568,161" LayerId="[_parcelLayerID]" LayerName="[_parcelLayerName]" MapServiceId="[_mapServiceID]" />
                            <If Condition="[modifiedSelection.Features.Count &gt; 0]" sap:VirtualizedContainerService.HintSize="568,570">
                              <If.Then>
                                <Sequence DisplayName="Highlight Features" sap:VirtualizedContainerService.HintSize="325,462">
                                  <sap:WorkflowViewStateService.ViewState>
                                    <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                      <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                    </scg:Dictionary>
                                  </sap:WorkflowViewStateService.ViewState>
                                  <gwa1:RunExternalCommand CommandName="SetActiveHighlightLayer" CommandParameter="[&quot;ParcelHighlights&quot;]" sap:VirtualizedContainerService.HintSize="303,86" />
                                  <gwa1:RunExternalCommand CommandName="ClearHighlights" sap:VirtualizedContainerService.HintSize="303,86" />
                                  <gwa1:RunExternalCommand CommandName="HighlightEsriFeatureSet" CommandParameter="[modifiedSelection]" sap:VirtualizedContainerService.HintSize="303,86">
                                    <sap:WorkflowViewStateService.ViewState>
                                      <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                        <x:Boolean x:Key="IsPinned">False</x:Boolean>
                                      </scg:Dictionary>
                                    </sap:WorkflowViewStateService.ViewState>
                                  </gwa1:RunExternalCommand>
                                </Sequence>
                              </If.Then>
                              <If.Else>
                                <gwa1:Alert sap:VirtualizedContainerService.HintSize="212,86" Text="No features were selected. Please add valid features to your selection." Title="Warning" />
                              </If.Else>
                            </If>
                            <Assign sap:VirtualizedContainerService.HintSize="568,60">
                              <Assign.To>
                                <OutArgument x:TypeArguments="esri:FeatureSet">[Selection]</OutArgument>
                              </Assign.To>
                              <Assign.Value>
                                <InArgument x:TypeArguments="esri:FeatureSet">[modifiedSelection]</InArgument>
                              </Assign.Value>
                            </Assign>
                          </Sequence>
                          <FlowStep.Next>
                            <x:Reference>__ReferenceID0</x:Reference>
                          </FlowStep.Next>
                        </FlowStep>
                        <FlowDecision x:Key="Continue" x:Name="__ReferenceID16" Condition="[Selection.Features.Count &gt; 0]" sap:VirtualizedContainerService.HintSize="70,87">
                          <sap:WorkflowViewStateService.ViewState>
                            <scg:Dictionary x:TypeArguments="x:String, x:Object">
                              <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                              <av:Point x:Key="ShapeLocation">415,676.5</av:Point>
                              <av:Size x:Key="ShapeSize">70,87</av:Size>
                              <x:String x:Key="FalseLabel">No Features</x:String>
                              <x:String x:Key="TrueLabel">Valid Selection</x:String>
                              <av:PointCollection x:Key="TrueConnector">415,720 300,720 300,794.02</av:PointCollection>
                              <av:PointCollection x:Key="FalseConnector">485,720 515,720 515,719 600,719</av:PointCollection>
                            </scg:Dictionary>
                          </sap:WorkflowViewStateService.ViewState>
                          <FlowDecision.True>
                            <FlowStep x:Name="__ReferenceID2">
                              <sap:WorkflowViewStateService.ViewState>
                                <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                  <av:Point x:Key="ShapeLocation">200,794.02</av:Point>
                                  <av:Size x:Key="ShapeSize">200,49</av:Size>
                                  <av:PointCollection x:Key="ConnectorLocation">300,843.02 300,866.5</av:PointCollection>
                                </scg:Dictionary>
                              </sap:WorkflowViewStateService.ViewState>
                              <gwa1:DisplayForm ButtonResultValue="[buttonValue]" DisplayName="Step 3: Buffer Selection" FormDefinition="&lt;FormDefinition xmlns=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client&quot; xmlns:i=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;ContainerFormItem xmlns:a=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items&quot;&gt;&lt;a:ArgumentName/&gt;&lt;a:ItemID&gt;Group1&lt;/a:ItemID&gt;&lt;a:ToolTip/&gt;&lt;a:ValidationItems xmlns:b=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items.Validation&quot;/&gt;&lt;a:Description&gt;If you wish to buffer this selection, please enter your buffer distance here. Otherwise, click 'Continue' to proceed.&lt;/a:Description&gt;&lt;a:FormItems&gt;&lt;a:FormItem i:type=&quot;a:TextBoxFormItem&quot;&gt;&lt;a:ArgumentName&gt;Distance&lt;/a:ArgumentName&gt;&lt;a:ItemID&gt;TextBox1&lt;/a:ItemID&gt;&lt;a:ToolTip/&gt;&lt;a:ValidationItems xmlns:b=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items.Validation&quot;&gt;&lt;b:ValidationItem i:type=&quot;b:RegexValidationItem&quot;&gt;&lt;b:Message&gt;Please enter a valid buffer distance.&lt;/b:Message&gt;&lt;b:Expression&gt;^[+]?\d+$&lt;/b:Expression&gt;&lt;b:IgnoreCase&gt;false&lt;/b:IgnoreCase&gt;&lt;/b:ValidationItem&gt;&lt;/a:ValidationItems&gt;&lt;a:DefaultText&gt;0&lt;/a:DefaultText&gt;&lt;a:InputScope&gt;Default&lt;/a:InputScope&gt;&lt;a:Label&gt;&lt;a:ArgumentName/&gt;&lt;a:ItemID/&gt;&lt;a:ToolTip/&gt;&lt;a:ValidationItems xmlns:b=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items.Validation&quot;/&gt;&lt;a:LabelForItemID&gt;TextBox1&lt;/a:LabelForItemID&gt;&lt;a:Text&gt;Buffer Distance:&lt;/a:Text&gt;&lt;/a:Label&gt;&lt;a:TextboxWidth&gt;200&lt;/a:TextboxWidth&gt;&lt;/a:FormItem&gt;&lt;a:FormItem i:type=&quot;a:ComboBoxFormItem&quot;&gt;&lt;a:ArgumentName&gt;Units&lt;/a:ArgumentName&gt;&lt;a:ItemID&gt;ComboBox1&lt;/a:ItemID&gt;&lt;a:ToolTip/&gt;&lt;a:ValidationItems xmlns:b=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items.Validation&quot;/&gt;&lt;a:DataItems&gt;&lt;DataItem&gt;&lt;Display&gt;Feet&lt;/Display&gt;&lt;TypeName&gt;System.String&lt;/TypeName&gt;&lt;Value i:type=&quot;b:string&quot; xmlns:b=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;Feet&lt;/Value&gt;&lt;/DataItem&gt;&lt;DataItem&gt;&lt;Display&gt;Meters&lt;/Display&gt;&lt;TypeName&gt;System.String&lt;/TypeName&gt;&lt;Value i:type=&quot;b:string&quot; xmlns:b=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;Meters&lt;/Value&gt;&lt;/DataItem&gt;&lt;DataItem&gt;&lt;Display&gt;Yards&lt;/Display&gt;&lt;TypeName&gt;System.String&lt;/TypeName&gt;&lt;Value i:type=&quot;b:string&quot; xmlns:b=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;Yards&lt;/Value&gt;&lt;/DataItem&gt;&lt;DataItem&gt;&lt;Display&gt;Miles&lt;/Display&gt;&lt;TypeName&gt;System.String&lt;/TypeName&gt;&lt;Value i:type=&quot;b:string&quot; xmlns:b=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;Miles&lt;/Value&gt;&lt;/DataItem&gt;&lt;DataItem&gt;&lt;Display&gt;Kilometers&lt;/Display&gt;&lt;TypeName&gt;System.String&lt;/TypeName&gt;&lt;Value i:type=&quot;b:string&quot; xmlns:b=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;Kilometers&lt;/Value&gt;&lt;/DataItem&gt;&lt;/a:DataItems&gt;&lt;a:FilterByInputGeometry&gt;false&lt;/a:FilterByInputGeometry&gt;&lt;a:Label&gt;&lt;a:ArgumentName/&gt;&lt;a:ItemID/&gt;&lt;a:ToolTip/&gt;&lt;a:ValidationItems xmlns:b=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items.Validation&quot;/&gt;&lt;a:LabelForItemID&gt;ComboBox1&lt;/a:LabelForItemID&gt;&lt;a:Text&gt;Units:&lt;/a:Text&gt;&lt;/a:Label&gt;&lt;a:ProxyUrl/&gt;&lt;a:QueryCascadingID/&gt;&lt;a:QueryDisplayOutputField/&gt;&lt;a:QueryServiceUrl/&gt;&lt;a:QueryValueOutputField/&gt;&lt;a:QueryWhereClause/&gt;&lt;a:SelectText/&gt;&lt;a:Token/&gt;&lt;/a:FormItem&gt;&lt;/a:FormItems&gt;&lt;a:MaxWidth&gt;INF&lt;/a:MaxWidth&gt;&lt;a:Orientation&gt;Vertical&lt;/a:Orientation&gt;&lt;/ContainerFormItem&gt;&lt;KnownTypes xmlns:a=&quot;http://schemas.microsoft.com/2003/10/Serialization/Arrays&quot;&gt;&lt;a:string&gt;Geocortex.Forms.Client.Items.ContainerFormItem&lt;/a:string&gt;&lt;a:string&gt;Geocortex.Forms.Client.Items.TextBoxFormItem&lt;/a:string&gt;&lt;a:string&gt;Geocortex.Forms.Client.Items.Validation.RegexValidationItem&lt;/a:string&gt;&lt;a:string&gt;Geocortex.Forms.Client.Items.ComboBoxFormItem&lt;/a:string&gt;&lt;/KnownTypes&gt;&lt;MaxHeight&gt;800&lt;/MaxHeight&gt;&lt;MaxWidth&gt;1000&lt;/MaxWidth&gt;&lt;Title&gt;Step 3: Buffer Selection&lt;/Title&gt;&lt;Version&gt;1.1&lt;/Version&gt;&lt;/FormDefinition&gt;" sap:VirtualizedContainerService.HintSize="200,49" WorkflowContainerName="Default">
                                <gwa1:DisplayForm.Body>
                                  <ActivityAction x:TypeArguments="gcx:FormDefinition">
                                    <ActivityAction.Argument>
                                      <DelegateInArgument x:TypeArguments="gcx:FormDefinition" Name="form" />
                                    </ActivityAction.Argument>
                                    <Sequence DisplayName="RuntimeModifications" sap:VirtualizedContainerService.HintSize="486,422">
                                      <sap:WorkflowViewStateService.ViewState>
                                        <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                          <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                          <x:Boolean x:Key="IsPinned">False</x:Boolean>
                                        </scg:Dictionary>
                                      </sap:WorkflowViewStateService.ViewState>
                                      <Assign sap:VirtualizedContainerService.HintSize="464,57">
                                        <Assign.To>
                                          <OutArgument x:TypeArguments="x:String">[form.Find(Of TextBoxFormItem)("TextBox1").DefaultText]</OutArgument>
                                        </Assign.To>
                                        <Assign.Value>
                                          <InArgument x:TypeArguments="x:String">[distance]</InArgument>
                                        </Assign.Value>
                                      </Assign>
                                      <If Condition="[selectedUnit IsNot Nothing]" sap:VirtualizedContainerService.HintSize="464,201">
                                        <If.Then>
                                          <Assign sap:VirtualizedContainerService.HintSize="291,100">
                                            <Assign.To>
                                              <OutArgument x:TypeArguments="x:String">[form.Find(Of ComboBoxFormItem)("ComboBox1").SelectText]</OutArgument>
                                            </Assign.To>
                                            <Assign.Value>
                                              <InArgument x:TypeArguments="x:String">[selectedUnit]</InArgument>
                                            </Assign.Value>
                                          </Assign>
                                        </If.Then>
                                      </If>
                                    </Sequence>
                                  </ActivityAction>
                                </gwa1:DisplayForm.Body>
                                <gwa1:DisplayForm.Buttons>
                                  <gcx:FormButton CausesValidation="True" IsDefault="False" Label="Preview" Value="Preview" />
                                  <gcx:FormButton CausesValidation="True" IsDefault="False" Label="Continue" Value="Continue" />
                                </gwa1:DisplayForm.Buttons>
                                <gwa1:DisplayForm.FormInArguments>
                                  <gwa:ArgumentWrapper x:TypeArguments="InArgument(scg:IEnumerable(gcx:DataItem))" Argument="{x:Null}" IsRequired="False" Name="ComboBox1" />
                                </gwa1:DisplayForm.FormInArguments>
                                <gwa1:DisplayForm.FormOutArguments>
                                  <gwa:ArgumentWrapper x:TypeArguments="OutArgument" IsRequired="False" Name="Distance">
                                    <gwa:ArgumentWrapper.Argument>
                                      <OutArgument x:TypeArguments="x:String">[distance]</OutArgument>
                                    </gwa:ArgumentWrapper.Argument>
                                  </gwa:ArgumentWrapper>
                                  <gwa:ArgumentWrapper x:TypeArguments="OutArgument" IsRequired="False" Name="Units">
                                    <gwa:ArgumentWrapper.Argument>
                                      <OutArgument x:TypeArguments="x:Object">[unit]</OutArgument>
                                    </gwa:ArgumentWrapper.Argument>
                                  </gwa:ArgumentWrapper>
                                </gwa1:DisplayForm.FormOutArguments>
                                <sap:WorkflowViewStateService.ViewState>
                                  <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                    <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                  </scg:Dictionary>
                                </sap:WorkflowViewStateService.ViewState>
                              </gwa1:DisplayForm>
                              <FlowStep.Next>
                                <FlowDecision x:Name="__ReferenceID12" Condition="[Double.Parse(distance) &gt; 0]" sap:VirtualizedContainerService.HintSize="70,87">
                                  <sap:WorkflowViewStateService.ViewState>
                                    <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                      <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                      <av:Point x:Key="ShapeLocation">265,866.5</av:Point>
                                      <av:Size x:Key="ShapeSize">70,87</av:Size>
                                      <av:PointCollection x:Key="TrueConnector">265,910 240,910 240,974.5 300,974.5 300,1004.5</av:PointCollection>
                                      <av:PointCollection x:Key="FalseConnector">335,910 440,910 440,1328.52 410,1328.52</av:PointCollection>
                                      <x:String x:Key="TrueLabel">Buffer</x:String>
                                      <x:String x:Key="FalseLabel">No Buffer</x:String>
                                    </scg:Dictionary>
                                  </sap:WorkflowViewStateService.ViewState>
                                  <FlowDecision.True>
                                    <FlowStep x:Name="__ReferenceID10">
                                      <sap:WorkflowViewStateService.ViewState>
                                        <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                          <av:Point x:Key="ShapeLocation">200,1004.5</av:Point>
                                          <av:Size x:Key="ShapeSize">200,49</av:Size>
                                          <av:PointCollection x:Key="ConnectorLocation">300,1053.5 300,1086.5</av:PointCollection>
                                        </scg:Dictionary>
                                      </sap:WorkflowViewStateService.ViewState>
                                      <Sequence DisplayName="Display Buffer" sap:VirtualizedContainerService.HintSize="200,49">
                                        <sap:WorkflowViewStateService.ViewState>
                                          <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                          </scg:Dictionary>
                                        </sap:WorkflowViewStateService.ViewState>
                                        <gwa1:RunExternalCommand CommandName="ClearTemporaryMarkup" sap:VirtualizedContainerService.HintSize="464,86" />
                                        <gwa1:UnionTask FeatureSet="[Selection]" GeometryServiceUrl="[_geometryServerUrl]" sap:VirtualizedContainerService.HintSize="464,136" Result="[selectedGeometry]" />
                                        <If Condition="[unit IsNot Nothing]" sap:VirtualizedContainerService.HintSize="464,208">
                                          <If.Then>
                                            <Assign sap:VirtualizedContainerService.HintSize="242,60">
                                              <Assign.To>
                                                <OutArgument x:TypeArguments="x:String">[selectedUnit]</OutArgument>
                                              </Assign.To>
                                              <Assign.Value>
                                                <InArgument x:TypeArguments="x:String">[unit.ToString]</InArgument>
                                              </Assign.Value>
                                            </Assign>
                                          </If.Then>
                                        </If>
                                        <gwa1:BufferTask Distance="[Double.Parse(distance)]" Geometry="[selectedGeometry]" GeometryServiceUrl="[_geometryServerUrl]" sap:VirtualizedContainerService.HintSize="464,261" Results="[bufferGraphics]" Unit="[unitList(selectedUnit)]" />
                                        <ParallelForEach x:TypeArguments="esri:Graphic" DisplayName="ParallelForEach&lt;Graphic&gt;" sap:VirtualizedContainerService.HintSize="464,208" Values="[bufferGraphics]">
                                          <ActivityAction x:TypeArguments="esri:Graphic">
                                            <ActivityAction.Argument>
                                              <DelegateInArgument x:TypeArguments="esri:Graphic" Name="graphic" />
                                            </ActivityAction.Argument>
                                            <gwa1:RunExternalCommand CommandName="AddTemporaryMarkupGeometry" CommandParameter="[graphic.Geometry]" sap:VirtualizedContainerService.HintSize="303,86" />
                                          </ActivityAction>
                                        </ParallelForEach>
                                      </Sequence>
                                      <FlowStep.Next>
                                        <FlowDecision x:Name="__ReferenceID11" Condition="[buttonValue = &quot;Preview&quot;]" sap:VirtualizedContainerService.HintSize="70,87" True="{x:Reference __ReferenceID2}">
                                          <sap:WorkflowViewStateService.ViewState>
                                            <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                              <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                              <av:Point x:Key="ShapeLocation">265,1086.5</av:Point>
                                              <av:Size x:Key="ShapeSize">70,87</av:Size>
                                              <av:PointCollection x:Key="TrueConnector">265,1130 170,1130 170,818.52 200,818.52</av:PointCollection>
                                              <av:PointCollection x:Key="FalseConnector">335,1130 365,1130 365,1194.5 310,1194.5 310,1224.5</av:PointCollection>
                                              <x:String x:Key="TrueLabel">Preview</x:String>
                                              <x:String x:Key="FalseLabel">Select</x:String>
                                            </scg:Dictionary>
                                          </sap:WorkflowViewStateService.ViewState>
                                          <FlowDecision.False>
                                            <FlowStep x:Name="__ReferenceID13">
                                              <sap:WorkflowViewStateService.ViewState>
                                                <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                                  <av:Point x:Key="ShapeLocation">210,1224.5</av:Point>
                                                  <av:Size x:Key="ShapeSize">200,49</av:Size>
                                                  <av:PointCollection x:Key="ConnectorLocation">310,1273.5 310,1303.5 310,1304.02</av:PointCollection>
                                                </scg:Dictionary>
                                              </sap:WorkflowViewStateService.ViewState>
                                              <Sequence DisplayName="Select With Buffer" sap:VirtualizedContainerService.HintSize="200,49">
                                                <Sequence.Variables>
                                                  <Variable x:TypeArguments="x:String" Name="what" />
                                                  <Variable x:TypeArguments="x:String" Name="variable2" />
                                                </Sequence.Variables>
                                                <sap:WorkflowViewStateService.ViewState>
                                                  <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                                    <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                                  </scg:Dictionary>
                                                </sap:WorkflowViewStateService.ViewState>
                                                <gwa1:UnionTask FeatureSet="[new ESRI.ArcGIS.Client.Tasks.FeatureSet(bufferGraphics)]" GeometryServiceUrl="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" sap:VirtualizedContainerService.HintSize="330,128" Result="[selectedGeometry]" />
                                                <gwa1:QueryTask Geometry="[selectedGeometry]" sap:VirtualizedContainerService.HintSize="330,227" OutFields="*" OutSpatialReference="[spatialReference]" QueryServiceUrl="[_parcelLayerQueryUrl]" Results="[Selection]" ReturnGeometry="True" SpatialRelationship="esriSpatialRelIntersects" Token="[_parcelToken]" />
                                                <gwa1:SelectFeatures ClearCollectionFirst="True" CollectionName="[_parcelLayerName]" FeatureSet="[Selection]" sap:VirtualizedContainerService.HintSize="330,151" LayerId="[_parcelLayerID]" LayerName="[_parcelLayerName]" MapServiceId="[_mapServiceID]" />
                                                <Sequence DisplayName="Highlight Features" sap:VirtualizedContainerService.HintSize="330,49">
                                                  <sap:WorkflowViewStateService.ViewState>
                                                    <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                                      <x:Boolean x:Key="IsExpanded">False</x:Boolean>
                                                      <x:Boolean x:Key="IsPinned">False</x:Boolean>
                                                    </scg:Dictionary>
                                                  </sap:WorkflowViewStateService.ViewState>
                                                  <gwa1:RunExternalCommand CommandName="SetActiveHighlightLayer" CommandParameter="[&quot;ParcelHighlights&quot;]" sap:VirtualizedContainerService.HintSize="303,86" />
                                                  <gwa1:RunExternalCommand CommandName="ClearHighlights" sap:VirtualizedContainerService.HintSize="303,86" />
                                                  <gwa1:RunExternalCommand CommandName="HighlightEsriFeatureSet" CommandParameter="[Selection]" sap:VirtualizedContainerService.HintSize="303,86">
                                                    <sap:WorkflowViewStateService.ViewState>
                                                      <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                                        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                                        <x:Boolean x:Key="IsPinned">False</x:Boolean>
                                                      </scg:Dictionary>
                                                    </sap:WorkflowViewStateService.ViewState>
                                                  </gwa1:RunExternalCommand>
                                                </Sequence>
                                                <gwa1:RunExternalCommand CommandName="ClearTemporaryMarkup" sap:VirtualizedContainerService.HintSize="330,82" />
                                                <Assign sap:VirtualizedContainerService.HintSize="330,57">
                                                  <Assign.To>
                                                    <OutArgument x:TypeArguments="x:String">[distance]</OutArgument>
                                                  </Assign.To>
                                                  <Assign.Value>
                                                    <InArgument x:TypeArguments="x:String">0</InArgument>
                                                  </Assign.Value>
                                                </Assign>
                                              </Sequence>
                                              <FlowStep.Next>
                                                <FlowStep x:Name="__ReferenceID3">
                                                  <sap:WorkflowViewStateService.ViewState>
                                                    <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                                      <av:Point x:Key="ShapeLocation">210,1304.02</av:Point>
                                                      <av:Size x:Key="ShapeSize">200,49</av:Size>
                                                      <av:PointCollection x:Key="ConnectorLocation">310,1353.02 310,1386.5</av:PointCollection>
                                                    </scg:Dictionary>
                                                  </sap:WorkflowViewStateService.ViewState>
                                                  <gwa1:DisplayForm ButtonResultValue="[buttonValue]" DisplayName="Step 4: Run Report" FormDefinition="&lt;FormDefinition xmlns=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client&quot; xmlns:i=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;ContainerFormItem xmlns:a=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items&quot;&gt;&lt;a:ArgumentName/&gt;&lt;a:ItemID&gt;Group1&lt;/a:ItemID&gt;&lt;a:ToolTip/&gt;&lt;a:ValidationItems xmlns:b=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items.Validation&quot;/&gt;&lt;a:Description&gt;You can continue to modify this selection, or run a parcel report now.&lt;/a:Description&gt;&lt;a:FormItems&gt;&lt;a:FormItem i:type=&quot;a:ComboBoxFormItem&quot;&gt;&lt;a:ArgumentName&gt;ReportID&lt;/a:ArgumentName&gt;&lt;a:ItemID&gt;ComboBox1&lt;/a:ItemID&gt;&lt;a:ToolTip/&gt;&lt;a:ValidationItems xmlns:b=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items.Validation&quot;&gt;&lt;b:ValidationItem i:type=&quot;b:RequiredValidationItem&quot;&gt;&lt;b:Message&gt;Please select a report to run.&lt;/b:Message&gt;&lt;/b:ValidationItem&gt;&lt;/a:ValidationItems&gt;&lt;a:DataItems/&gt;&lt;a:FilterByInputGeometry&gt;false&lt;/a:FilterByInputGeometry&gt;&lt;a:Label&gt;&lt;a:ArgumentName/&gt;&lt;a:ItemID/&gt;&lt;a:ToolTip/&gt;&lt;a:ValidationItems xmlns:b=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items.Validation&quot;/&gt;&lt;a:LabelForItemID&gt;ComboBox1&lt;/a:LabelForItemID&gt;&lt;a:Text&gt;Report:&lt;/a:Text&gt;&lt;/a:Label&gt;&lt;a:ProxyUrl/&gt;&lt;a:QueryCascadingID/&gt;&lt;a:QueryDisplayOutputField/&gt;&lt;a:QueryServiceUrl/&gt;&lt;a:QueryValueOutputField/&gt;&lt;a:QueryWhereClause/&gt;&lt;a:SelectText/&gt;&lt;a:Token/&gt;&lt;/a:FormItem&gt;&lt;/a:FormItems&gt;&lt;a:MaxWidth&gt;INF&lt;/a:MaxWidth&gt;&lt;a:Orientation&gt;Vertical&lt;/a:Orientation&gt;&lt;/ContainerFormItem&gt;&lt;KnownTypes xmlns:a=&quot;http://schemas.microsoft.com/2003/10/Serialization/Arrays&quot;&gt;&lt;a:string&gt;Geocortex.Forms.Client.Items.ContainerFormItem&lt;/a:string&gt;&lt;a:string&gt;Geocortex.Forms.Client.Items.ComboBoxFormItem&lt;/a:string&gt;&lt;a:string&gt;Geocortex.Forms.Client.Items.Validation.RequiredValidationItem&lt;/a:string&gt;&lt;/KnownTypes&gt;&lt;MaxHeight&gt;800&lt;/MaxHeight&gt;&lt;MaxWidth&gt;1000&lt;/MaxWidth&gt;&lt;Title&gt;Step 4: Run Report&lt;/Title&gt;&lt;Version&gt;1.1&lt;/Version&gt;&lt;/FormDefinition&gt;" sap:VirtualizedContainerService.HintSize="200,49" WorkflowContainerName="Default">
                                                    <gwa1:DisplayForm.Body>
                                                      <ActivityAction x:TypeArguments="gcx:FormDefinition">
                                                        <ActivityAction.Argument>
                                                          <DelegateInArgument x:TypeArguments="gcx:FormDefinition" Name="form" />
                                                        </ActivityAction.Argument>
                                                        <Sequence DisplayName="RuntimeModifications" sap:VirtualizedContainerService.HintSize="200,49">
                                                          <sap:WorkflowViewStateService.ViewState>
                                                            <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                                              <x:Boolean x:Key="IsExpanded">False</x:Boolean>
                                                            </scg:Dictionary>
                                                          </sap:WorkflowViewStateService.ViewState>
                                                        </Sequence>
                                                      </ActivityAction>
                                                    </gwa1:DisplayForm.Body>
                                                    <gwa1:DisplayForm.Buttons>
                                                      <gcx:FormButton CausesValidation="False" IsDefault="False" Label="Modify Selection" Value="Modify" />
                                                      <gcx:FormButton CausesValidation="True" IsDefault="True" Label="Run Report" Value="Report" />
                                                    </gwa1:DisplayForm.Buttons>
                                                    <gwa1:DisplayForm.FormInArguments>
                                                      <gwa:ArgumentWrapper x:TypeArguments="InArgument(scg:IEnumerable(gcx:DataItem))" Argument="[reportList]" IsRequired="False" Name="ComboBox1" />
                                                    </gwa1:DisplayForm.FormInArguments>
                                                    <gwa1:DisplayForm.FormOutArguments>
                                                      <gwa:ArgumentWrapper x:TypeArguments="OutArgument" IsRequired="False" Name="ReportID">
                                                        <gwa:ArgumentWrapper.Argument>
                                                          <OutArgument x:TypeArguments="x:Object">[reportId]</OutArgument>
                                                        </gwa:ArgumentWrapper.Argument>
                                                      </gwa:ArgumentWrapper>
                                                    </gwa1:DisplayForm.FormOutArguments>
                                                    <sap:WorkflowViewStateService.ViewState>
                                                      <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                                        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                                      </scg:Dictionary>
                                                    </sap:WorkflowViewStateService.ViewState>
                                                  </gwa1:DisplayForm>
                                                  <FlowStep.Next>
                                                    <FlowDecision x:Name="__ReferenceID14" Condition="[buttonValue = &quot;Modify&quot;]" sap:VirtualizedContainerService.HintSize="70,87" True="{x:Reference __ReferenceID0}">
                                                      <sap:WorkflowViewStateService.ViewState>
                                                        <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                                          <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                                          <av:Point x:Key="ShapeLocation">275,1386.5</av:Point>
                                                          <av:Size x:Key="ShapeSize">70,87</av:Size>
                                                          <av:PointCollection x:Key="TrueConnector">275,1430 0,1430 0,368.52 260,368.52</av:PointCollection>
                                                          <av:PointCollection x:Key="FalseConnector">345,1430 375,1430 375,1429 450,1429</av:PointCollection>
                                                          <x:String x:Key="FalseLabel">Report</x:String>
                                                          <x:String x:Key="TrueLabel">Modify</x:String>
                                                        </scg:Dictionary>
                                                      </sap:WorkflowViewStateService.ViewState>
                                                      <FlowDecision.False>
                                                        <FlowStep x:Name="__ReferenceID15">
                                                          <sap:WorkflowViewStateService.ViewState>
                                                            <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                                              <av:Point x:Key="ShapeLocation">450,1404.5</av:Point>
                                                              <av:Size x:Key="ShapeSize">200,49</av:Size>
                                                            </scg:Dictionary>
                                                          </sap:WorkflowViewStateService.ViewState>
                                                          <Sequence DisplayName="Execute Run Report" sap:VirtualizedContainerService.HintSize="352,1480">
                                                            <Sequence.Variables>
                                                              <Variable x:TypeArguments="x:String" Name="reportUrl" />
                                                              <Variable x:TypeArguments="scg:IList(x:Int32)" Name="labelIDs" />
                                                            </Sequence.Variables>
                                                            <sap:WorkflowViewStateService.ViewState>
                                                              <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                                                <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                                              </scg:Dictionary>
                                                            </sap:WorkflowViewStateService.ViewState>
                                                            <gwa1:UnionTask FeatureSet="[Selection]" GeometryServiceUrl="[_geometryServerUrl]" sap:VirtualizedContainerService.HintSize="330,128" Result="[selectedGeometry]" />
                                                            <gwa1:BufferTask Distance="-1" Geometry="[selectedGeometry]" GeometryServiceUrl="[_geometryServerUrl]" sap:VirtualizedContainerService.HintSize="330,243" OutSpatialReference="[spatialReference]" Results="[bufferGraphics]" Unit="[ESRI.ArcGIS.Client.Tasks.LinearUnit.Meter]" />
                                                            <gwa1:UnionTask FeatureSet="[new ESRI.ArcGIS.Client.Tasks.FeatureSet(bufferGraphics)]" GeometryServiceUrl="[_geometryServerUrl]" sap:VirtualizedContainerService.HintSize="330,128" Result="[selectedGeometry]" />
                                                            <Sequence DisplayName="Clear Highlights" sap:VirtualizedContainerService.HintSize="330,49">
                                                              <sap:WorkflowViewStateService.ViewState>
                                                                <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                                                  <x:Boolean x:Key="IsExpanded">False</x:Boolean>
                                                                  <x:Boolean x:Key="IsPinned">False</x:Boolean>
                                                                </scg:Dictionary>
                                                              </sap:WorkflowViewStateService.ViewState>
                                                              <gwa1:RunExternalCommand CommandName="SetActiveHighlightLayer" CommandParameter="[&quot;ParcelHighlights&quot;]" sap:VirtualizedContainerService.HintSize="305,82" />
                                                              <gwa1:RunExternalCommand CommandName="ClearHighlights" sap:VirtualizedContainerService.HintSize="305,82" />
                                                            </Sequence>
                                                            <gwa1:SelectFeatures ClearCollectionFirst="{x:Null}" FeatureSet="[Selection]" sap:VirtualizedContainerService.HintSize="330,151" LayerId="[_parcelLayerID]" LayerName="[_parcelLayerName]" MapServiceId="[_mapServiceID]" />
                                                            <gwa1:GetObjectIDs FeatureSet="[Selection]" sap:VirtualizedContainerService.HintSize="330,82" ObjectIDs="[labelIDs]" />
                                                            <gwa1:Report sap:VirtualizedContainerService.HintSize="330,335" LayerName="[_parcelLayerName]" MapServiceId="[_mapServiceID]" OutSpatialReference="[spatialReference]" OutputFormat="Pdf" ReportId="[reportId.ToString]" ResultUrl="[reportUrl]" ShowOpenReport="True" SpatialRelationship="[ESRI.ArcGIS.Client.Tasks.SpatialRelationship.esriSpatialRelWithin]" Where="[String.Format(&quot;OBJECTID IN ({0})&quot;, String.Join(&quot;,&quot;, labelIDs))]">
                                                              <sap:WorkflowViewStateService.ViewState>
                                                                <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                                                  <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                                                </scg:Dictionary>
                                                              </sap:WorkflowViewStateService.ViewState>
                                                            </gwa1:Report>
                                                          </Sequence>
                                                        </FlowStep>
                                                      </FlowDecision.False>
                                                    </FlowDecision>
                                                  </FlowStep.Next>
                                                </FlowStep>
                                              </FlowStep.Next>
                                            </FlowStep>
                                          </FlowDecision.False>
                                        </FlowDecision>
                                      </FlowStep.Next>
                                    </FlowStep>
                                  </FlowDecision.True>
                                  <FlowDecision.False>
                                    <x:Reference>__ReferenceID3</x:Reference>
                                  </FlowDecision.False>
                                </FlowDecision>
                              </FlowStep.Next>
                            </FlowStep>
                          </FlowDecision.True>
                          <FlowDecision.False>
                            <FlowStep x:Name="__ReferenceID17">
                              <sap:WorkflowViewStateService.ViewState>
                                <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                  <av:Point x:Key="ShapeLocation">600,694.5</av:Point>
                                  <av:Size x:Key="ShapeSize">200,49</av:Size>
                                  <av:PointCollection x:Key="ConnectorLocation">700,694.5 700,290 460,290</av:PointCollection>
                                </scg:Dictionary>
                              </sap:WorkflowViewStateService.ViewState>
                              <gwa1:Alert sap:VirtualizedContainerService.HintSize="200,49" Text="No features were selected. You must select some valid features to run a report." Title="Warning">
                                <sap:WorkflowViewStateService.ViewState>
                                  <scg:Dictionary x:TypeArguments="x:String, x:Object">
                                    <x:Boolean x:Key="IsExpanded">True</x:Boolean>
                                  </scg:Dictionary>
                                </sap:WorkflowViewStateService.ViewState>
                              </gwa1:Alert>
                              <FlowStep.Next>
                                <x:Reference>__ReferenceID1</x:Reference>
                              </FlowStep.Next>
                            </FlowStep>
                          </FlowDecision.False>
                        </FlowDecision>
                      </FlowSwitch>
                    </FlowStep.Next>
                  </FlowStep>
                </FlowStep.Next>
              </FlowStep>
            </FlowStep.Next>
          </FlowStep>
        </FlowStep.Next>
      </FlowStep>
    </Flowchart.StartNode>
    <x:Reference>__ReferenceID4</x:Reference>
    <x:Reference>__ReferenceID5</x:Reference>
    <x:Reference>__ReferenceID1</x:Reference>
    <x:Reference>__ReferenceID0</x:Reference>
    <x:Reference>__ReferenceID6</x:Reference>
    <x:Reference>__ReferenceID7</x:Reference>
    <x:Reference>__ReferenceID8</x:Reference>
    <x:Reference>__ReferenceID9</x:Reference>
    <x:Reference>__ReferenceID2</x:Reference>
    <x:Reference>__ReferenceID10</x:Reference>
    <x:Reference>__ReferenceID11</x:Reference>
    <x:Reference>__ReferenceID12</x:Reference>
    <x:Reference>__ReferenceID13</x:Reference>
    <x:Reference>__ReferenceID3</x:Reference>
    <x:Reference>__ReferenceID14</x:Reference>
    <x:Reference>__ReferenceID15</x:Reference>
    <x:Reference>__ReferenceID16</x:Reference>
    <x:Reference>__ReferenceID17</x:Reference>
  </Flowchart>
</Activity>