﻿<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  <!-- EF Runtime content -->
  <edmx:Runtime>
    <!-- SSDL content -->
    <edmx:StorageModels>
    <Schema Namespace="Model.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2008" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
        <EntityContainer Name="ModelStoreContainer">
          <EntitySet Name="CommandTypes" EntityType="Model.Store.CommandTypes" store:Type="Tables" Schema="Integration" />
          <EntitySet Name="Connections" EntityType="Model.Store.Connections" store:Type="Tables" Schema="Integration" />
          <EntitySet Name="ConnectionTypes" EntityType="Model.Store.ConnectionTypes" store:Type="Tables" Schema="Integration" />
          <EntitySet Name="DataSources" EntityType="Model.Store.DataSources" store:Type="Tables" Schema="Integration" />
          <EntitySet Name="Systems" EntityType="Model.Store.Systems" store:Type="Tables" Schema="Integration" />
          <AssociationSet Name="FK_Connections_DataSources" Association="Model.Store.FK_Connections_DataSources">
            <End Role="Connections" EntitySet="Connections" />
            <End Role="DataSources" EntitySet="DataSources" />
          </AssociationSet>
          <AssociationSet Name="FK_ConnectionTypes_Connections" Association="Model.Store.FK_ConnectionTypes_Connections">
            <End Role="ConnectionTypes" EntitySet="ConnectionTypes" />
            <End Role="Connections" EntitySet="Connections" />
          </AssociationSet>
          <AssociationSet Name="FK_DataSources_CommandTypes" Association="Model.Store.FK_DataSources_CommandTypes">
            <End Role="CommandTypes" EntitySet="CommandTypes" />
            <End Role="DataSources" EntitySet="DataSources" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="CommandTypes">
          <Key>
            <PropertyRef Name="CommandTypeID" />
          </Key>
          <Property Name="CommandTypeID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" Nullable="false" MaxLength="50" />
        </EntityType>
        <EntityType Name="Connections">
          <Key>
            <PropertyRef Name="ConnectionID" />
          </Key>
          <Property Name="ConnectionID" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="ConnectionName" Type="varchar" MaxLength="50" />
          <Property Name="ConnectionTypeID" Type="smallint" Nullable="false" />
          <Property Name="ConnectionString" Type="varchar" Nullable="false" MaxLength="500" />
          <Property Name="AuthTypeID" Type="smallint" Nullable="false" />
          <Property Name="AuthDomain" Type="varchar" MaxLength="50" />
          <Property Name="AuthUser" Type="varchar" MaxLength="50" />
          <Property Name="AuthPassword" Type="varchar" MaxLength="50" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="UpdatedByID" Type="bigint" Nullable="false" />
          <Property Name="UpdatedDate" Type="datetime" Nullable="false" />
        </EntityType>
        <EntityType Name="ConnectionTypes">
          <Key>
            <PropertyRef Name="ConnectionTypeID" />
          </Key>
          <Property Name="ConnectionTypeID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" Nullable="false" MaxLength="50" />
        </EntityType>
        <EntityType Name="DataSources">
          <Key>
            <PropertyRef Name="DataSourceID" />
          </Key>
          <Property Name="DataSourceID" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="DataSourceName" Type="varchar" Nullable="false" MaxLength="50" />
          <Property Name="ConnectionID" Type="int" Nullable="false" />
          <Property Name="CommandTypeID" Type="smallint" Nullable="false" />
          <Property Name="RequestQuery" Type="varchar(max)" />
          <Property Name="RequestHeaders" Type="xml" />
          <Property Name="ResponseXsl" Type="xml" />
          <Property Name="EntitySchema" Type="xml" />
          <Property Name="IsCacheEnabled" Type="bit" Nullable="false" />
          <Property Name="CacheMinutes" Type="int" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="UpdatedByID" Type="bigint" Nullable="false" />
          <Property Name="UpdatedDate" Type="datetime" Nullable="false" />
        </EntityType>
        <EntityType Name="Systems">
          <Key>
            <PropertyRef Name="IntegrationSystemID" />
          </Key>
          <Property Name="IntegrationSystemID" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="WorkflowID" Type="bigint" Nullable="false" />
          <Property Name="Description" Type="varchar" Nullable="false" MaxLength="255" />
          <Property Name="DatabaseName" Type="varchar" MaxLength="100" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <Association Name="FK_Connections_DataSources">
          <End Role="Connections" Type="Model.Store.Connections" Multiplicity="1" />
          <End Role="DataSources" Type="Model.Store.DataSources" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Connections">
              <PropertyRef Name="ConnectionID" />
            </Principal>
            <Dependent Role="DataSources">
              <PropertyRef Name="ConnectionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ConnectionTypes_Connections">
          <End Role="ConnectionTypes" Type="Model.Store.ConnectionTypes" Multiplicity="1" />
          <End Role="Connections" Type="Model.Store.Connections" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ConnectionTypes">
              <PropertyRef Name="ConnectionTypeID" />
            </Principal>
            <Dependent Role="Connections">
              <PropertyRef Name="ConnectionTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DataSources_CommandTypes">
          <End Role="CommandTypes" Type="Model.Store.CommandTypes" Multiplicity="1" />
          <End Role="DataSources" Type="Model.Store.DataSources" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="CommandTypes">
              <PropertyRef Name="CommandTypeID" />
            </Principal>
            <Dependent Role="DataSources">
              <PropertyRef Name="CommandTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Function Name="Pr_SystemBulkReAssignMatrixGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Integration">
          <Parameter Name="SystemIDs" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="WorkflowID" Type="bigint" Mode="In" />
          <Parameter Name="FromUserID" Type="bigint" Mode="In" />
          <Parameter Name="ToUserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_SystemBulkReAssignTasksAndParticipants" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Integration">
          <Parameter Name="SystemIDs" Type="varchar" Mode="In" />
          <Parameter Name="WorkflowID" Type="bigint" Mode="In" />
          <Parameter Name="WorkflowTemplateStepID" Type="bigint" Mode="In" />
          <Parameter Name="ReAssignFromUserID" Type="bigint" Mode="In" />
          <Parameter Name="ReAssignToUserID" Type="bigint" Mode="In" />
          <Parameter Name="Comments" Type="varchar(max)" Mode="In" />
        </Function>
        <Function Name="Pr_SystemWorkflowInstanceCancel" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Integration">
          <Parameter Name="SystemIDs" Type="varchar" Mode="In" />
          <Parameter Name="WorkflowInstanceID" Type="bigint" Mode="In" />
          <Parameter Name="CancelledByID" Type="bigint" Mode="In" />
          <Parameter Name="Comments" Type="varchar(max)" Mode="In" />
        </Function>
        <Function Name="Pr_SystemWorkflowInstanceSearcher" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Integration">
          <Parameter Name="SystemIDs" Type="varchar" Mode="In" />
          <Parameter Name="SearchedByUserID" Type="bigint" Mode="In" />
          <Parameter Name="Reference" Type="varchar" Mode="In" />
        </Function>
      </Schema></edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="Model" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
        <EntityContainer Name="AfxAdminIntegrationContext" annotation:LazyLoadingEnabled="false">
          <EntitySet Name="CommandTypes" EntityType="Model.CommandType" />
          <EntitySet Name="Connections" EntityType="Model.Connection" />
          <EntitySet Name="ConnectionTypes" EntityType="Model.ConnectionType" />
          <EntitySet Name="DataSources" EntityType="Model.DataSource" />
          <AssociationSet Name="FK_DataSources_CommandTypes" Association="Model.FK_DataSources_CommandTypes">
            <End Role="CommandTypes" EntitySet="CommandTypes" />
            <End Role="DataSources" EntitySet="DataSources" />
          </AssociationSet>
          <AssociationSet Name="FK_Connections_DataSources" Association="Model.FK_Connections_DataSources">
            <End Role="Connections" EntitySet="Connections" />
            <End Role="DataSources" EntitySet="DataSources" />
          </AssociationSet>
          <AssociationSet Name="FK_ConnectionTypes_Connections" Association="Model.FK_ConnectionTypes_Connections">
            <End Role="ConnectionTypes" EntitySet="ConnectionTypes" />
            <End Role="Connections" EntitySet="Connections" />
          </AssociationSet>
          <EntitySet Name="IntegrationSystems" EntityType="Model.IntegrationSystem" />
          <FunctionImport Name="Pr_SystemBulkReAssignTasksAndParticipants">
            <Parameter Name="SystemIDs" Mode="In" Type="String" />
            <Parameter Name="WorkflowID" Mode="In" Type="Int64" />
            <Parameter Name="WorkflowTemplateStepID" Mode="In" Type="Int64" />
            <Parameter Name="ReAssignFromUserID" Mode="In" Type="Int64" />
            <Parameter Name="ReAssignToUserID" Mode="In" Type="Int64" />
            <Parameter Name="Comments" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_SystemWorkflowInstanceCancel">
            <Parameter Name="SystemIDs" Mode="In" Type="String" />
            <Parameter Name="WorkflowInstanceID" Mode="In" Type="Int64" />
            <Parameter Name="CancelledByID" Mode="In" Type="Int64" />
            <Parameter Name="Comments" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_SystemBulkReAssignMatrixGet" ReturnType="Collection(Model.SystemBulkReAssignMatrixRecord)">
            <Parameter Name="SystemIDs" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="WorkflowID" Mode="In" Type="Int64" />
            <Parameter Name="FromUserID" Mode="In" Type="Int64" />
            <Parameter Name="ToUserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_SystemWorkflowInstanceSearcher" ReturnType="Collection(Model.SystemWorkflowInstanceSearchRecord)">
            <Parameter Name="SystemIDs" Mode="In" Type="String" />
            <Parameter Name="SearchedByUserID" Mode="In" Type="Int64" />
            <Parameter Name="Reference" Mode="In" Type="String" />
          </FunctionImport>
        </EntityContainer>
        <EntityType Name="CommandType">
          <Key>
            <PropertyRef Name="CommandTypeID" />
          </Key>
          <Property Name="CommandTypeID" Type="Int16" Nullable="false" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="DataSources" Relationship="Model.FK_DataSources_CommandTypes" FromRole="CommandTypes" ToRole="DataSources" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" a:SetterAccess="Internal" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="Connection">
          <Key>
            <PropertyRef Name="ConnectionID" />
          </Key>
          <Property Name="ConnectionID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ConnectionName" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="ConnectionTypeID" Type="Int16" Nullable="false" />
          <Property Name="ConnectionString" Type="String" Nullable="false" MaxLength="500" Unicode="false" FixedLength="false" />
          <Property Name="AuthTypeID" Type="Int16" Nullable="false" />
          <Property Name="AuthDomain" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="AuthUser" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="AuthPassword" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="CreatedByID" Type="Int64" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="UpdatedByID" Type="Int64" Nullable="false" />
          <Property Name="UpdatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <NavigationProperty Name="DataSources" Relationship="Model.FK_Connections_DataSources" FromRole="Connections" ToRole="DataSources" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="ConnectionType" Relationship="Model.FK_ConnectionTypes_Connections" FromRole="Connections" ToRole="ConnectionTypes" />
        </EntityType>
        <EntityType Name="ConnectionType">
          <Key>
            <PropertyRef Name="ConnectionTypeID" />
          </Key>
          <Property Name="ConnectionTypeID" Type="Int16" Nullable="false" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="Connections" Relationship="Model.FK_ConnectionTypes_Connections" FromRole="ConnectionTypes" ToRole="Connections" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" a:SetterAccess="Internal" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="DataSource">
          <Key>
            <PropertyRef Name="DataSourceID" />
          </Key>
          <Property Name="DataSourceID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="DataSourceName" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="ConnectionID" Type="Int32" Nullable="false" />
          <Property Name="CommandTypeID" Type="Int16" Nullable="false" />
          <Property Name="RequestQuery" Type="String" MaxLength="Max" Unicode="false" FixedLength="false" />
          <Property Name="RequestHeaders" Type="String" MaxLength="Max" Unicode="true" FixedLength="false" />
          <Property Name="ResponseXsl" Type="String" MaxLength="Max" Unicode="true" FixedLength="false" />
          <Property Name="EntitySchema" Type="String" MaxLength="Max" Unicode="true" FixedLength="false" >
          </Property>
          <Property Name="IsCacheEnabled" Type="Boolean" Nullable="false" />
          <Property Name="CacheMinutes" Type="Int32" Nullable="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="CreatedByID" Nullable="false" Type="Int64" />
          <Property Name="CreatedDate" Nullable="false" Type="DateTime" Precision="3" />
          <Property Name="UpdatedByID" Nullable="false" Type="Int64" />
          <Property Name="UpdatedDate" Nullable="false" Type="DateTime" Precision="3" />
          <NavigationProperty Name="CommandType" Relationship="Model.FK_DataSources_CommandTypes" FromRole="DataSources" ToRole="CommandTypes" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="Connection" Relationship="Model.FK_Connections_DataSources" FromRole="DataSources" ToRole="Connections" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" a:SetterAccess="Internal" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_DataSources_CommandTypes">
          <End Role="CommandTypes" Type="Model.CommandType" Multiplicity="1" />
          <End Role="DataSources" Type="Model.DataSource" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="CommandTypes">
              <PropertyRef Name="CommandTypeID" />
            </Principal>
            <Dependent Role="DataSources">
              <PropertyRef Name="CommandTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Connections_DataSources">
          <End Role="Connections" Type="Model.Connection" Multiplicity="1" />
          <End Role="DataSources" Type="Model.DataSource" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Connections">
              <PropertyRef Name="ConnectionID" />
            </Principal>
            <Dependent Role="DataSources">
              <PropertyRef Name="ConnectionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ConnectionTypes_Connections">
          <End Role="ConnectionTypes" Type="Model.ConnectionType" Multiplicity="1" />
          <End Role="Connections" Type="Model.Connection" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ConnectionTypes">
              <PropertyRef Name="ConnectionTypeID" />
            </Principal>
            <Dependent Role="Connections">
              <PropertyRef Name="ConnectionTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="IntegrationSystem">
          <Key>
            <PropertyRef Name="IntegrationSystemID" />
          </Key>
          <Property Type="Int32" Name="IntegrationSystemID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <Property Type="Int64" Name="WorkflowID" Nullable="false" />
          <Property Type="String" Name="DatabaseName" MaxLength="100" FixedLength="false" Unicode="false" />
          </EntityType>
        <ComplexType Name="SystemBulkReAssignMatrixRecord">
          <Property Type="Int32" Name="IntegrationSystemID" Nullable="true" />
          <Property Type="Int64" Name="WorkflowID" Nullable="true" />
          <Property Type="String" Name="DashboardControllerName" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="WorkflowControllerName" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="WorkflowFriendlyName" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="WorkflowDescription" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="AdministratorRoles" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="InitiatorRoles" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="ViewerRoles" Nullable="true" MaxLength="100" />
          <Property Type="Double" Name="Step" Nullable="true" />
          <Property Type="String" Name="StepTitle" Nullable="true" MaxLength="255" />
          <Property Type="Int64" Name="WorkflowTemplateStepID" Nullable="true" />
          <Property Type="Int16" Name="WorkflowTemplateStepTypeID" Nullable="true" />
          <Property Type="String" Name="StepApplicationRoles" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="StepReAssignRoles" Nullable="true" MaxLength="1000" />
          <Property Type="Int16" Name="RoleID" Nullable="true" />
          <Property Type="String" Name="RoleName" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="FromUserTaskCount" Nullable="true" />
          <Property Type="Boolean" Name="FromUserHasRole" Nullable="true" />
          <Property Type="Boolean" Name="ToUserHasRole" Nullable="true" />
          <Property Type="Boolean" Name="IsWorkflowAdmin" Nullable="true" />
          <Property Type="Int32" Name="FromUserWorkflowCount" Nullable="true" />
        </ComplexType>
        <ComplexType Name="SystemWorkflowInstanceSearchRecord">
          <Property Type="Int32" Name="IntegrationSystemID" Nullable="true" />
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="true" />
          <Property Type="DateTime" Name="WorkflowStartDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="WorkflowEndDate" Nullable="true" Precision="23" />
          <Property Type="Int64" Name="CreatedByID" Nullable="true" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="true" Precision="23" />
          <Property Type="Int16" Name="WorkflowInstanceStatusID" Nullable="true" />
          <Property Type="String" Name="WorkflowInstanceStatus" Nullable="true" MaxLength="50" />
          <Property Type="Int64" Name="WorkflowTemplateID" Nullable="true" />
          <Property Type="Int64" Name="WorkflowTemplateStepID" Nullable="true" />
          <Property Type="Double" Name="WorkflowTemplateStep" Nullable="true" />
          <Property Type="String" Name="WorkflowTemplateStepTitle" Nullable="true" MaxLength="255" />
          <Property Type="Int32" Name="EntityID" Nullable="true" />
          <Property Type="Int64" Name="ItemID" Nullable="true" />
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="10" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="1" />
          <Property Type="Int64" Name="WorkflowID" Nullable="true" />
          <Property Type="String" Name="DashboardControllerName" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="WorkflowControllerName" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Reference" Nullable="true" MaxLength="10" />
          <Property Type="DateTime" Name="WarningDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="DueDate" Nullable="true" Precision="23" />
          <Property Type="String" Name="WorkflowFriendlyName" Nullable="true" MaxLength="50" />
          <Property Type="Int64" Name="UpdatedByID" Nullable="true" />
          <Property Type="DateTime" Name="UpdatedDate" Nullable="true" Precision="23" />
          <Property Type="String" Name="AssignedTo" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="CreatedByName" Nullable="true" MaxLength="101" />
          <Property Type="Int16" Name="WorkflowInstanceStateID" Nullable="true" />
          <Property Type="String" Name="WorkflowInstanceState" Nullable="true" MaxLength="50" />
          <Property Type="Boolean" Name="IsWorkflowAdmin" Nullable="false" />
          <Property Type="Boolean" Name="IsWorkflowViewer" Nullable="false" />
          <Property Type="String" Name="ConsoleUrl" Nullable="true" MaxLength="1000" />
        </ComplexType>
      </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
        <EntityContainerMapping StorageEntityContainer="ModelStoreContainer" CdmEntityContainer="AfxAdminIntegrationContext">
          <EntitySetMapping Name="CommandTypes">
            <EntityTypeMapping TypeName="Model.CommandType">
              <MappingFragment StoreEntitySet="CommandTypes">
                <ScalarProperty Name="CommandTypeID" ColumnName="CommandTypeID" />
                <ScalarProperty Name="Title" ColumnName="Title" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Connections">
            <EntityTypeMapping TypeName="Model.Connection">
              <MappingFragment StoreEntitySet="Connections">
                <ScalarProperty Name="ConnectionID" ColumnName="ConnectionID" />
                <ScalarProperty Name="ConnectionName" ColumnName="ConnectionName" />
                <ScalarProperty Name="ConnectionTypeID" ColumnName="ConnectionTypeID" />
                <ScalarProperty Name="ConnectionString" ColumnName="ConnectionString" />
                <ScalarProperty Name="AuthTypeID" ColumnName="AuthTypeID" />
                <ScalarProperty Name="AuthDomain" ColumnName="AuthDomain" />
                <ScalarProperty Name="AuthUser" ColumnName="AuthUser" />
                <ScalarProperty Name="AuthPassword" ColumnName="AuthPassword" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ConnectionTypes">
            <EntityTypeMapping TypeName="Model.ConnectionType">
              <MappingFragment StoreEntitySet="ConnectionTypes">
                <ScalarProperty Name="ConnectionTypeID" ColumnName="ConnectionTypeID" />
                <ScalarProperty Name="Title" ColumnName="Title" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="DataSources">
            <EntityTypeMapping TypeName="Model.DataSource">
              <MappingFragment StoreEntitySet="DataSources">
                <ScalarProperty Name="DataSourceID" ColumnName="DataSourceID" />
                <ScalarProperty Name="DataSourceName" ColumnName="DataSourceName" />
                <ScalarProperty Name="ConnectionID" ColumnName="ConnectionID" />
                <ScalarProperty Name="CommandTypeID" ColumnName="CommandTypeID" />
                <ScalarProperty Name="RequestQuery" ColumnName="RequestQuery" />
                <ScalarProperty Name="RequestHeaders" ColumnName="RequestHeaders" />
                <ScalarProperty Name="ResponseXsl" ColumnName="ResponseXsl" />
                <ScalarProperty Name="EntitySchema" ColumnName="EntitySchema" />
                <ScalarProperty Name="IsCacheEnabled" ColumnName="IsCacheEnabled" />
                <ScalarProperty Name="CacheMinutes" ColumnName="CacheMinutes" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="IntegrationSystems">
            <EntityTypeMapping TypeName="Model.IntegrationSystem">
              <MappingFragment StoreEntitySet="Systems">
                <ScalarProperty Name="DatabaseName" ColumnName="DatabaseName" />
                <ScalarProperty Name="WorkflowID" ColumnName="WorkflowID" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="IntegrationSystemID" ColumnName="IntegrationSystemID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_SystemBulkReAssignTasksAndParticipants" FunctionName="Model.Store.Pr_SystemBulkReAssignTasksAndParticipants" />
          <FunctionImportMapping FunctionImportName="Pr_SystemWorkflowInstanceCancel" FunctionName="Model.Store.Pr_SystemWorkflowInstanceCancel" />
          <FunctionImportMapping FunctionImportName="Pr_SystemBulkReAssignMatrixGet" FunctionName="Model.Store.Pr_SystemBulkReAssignMatrixGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.SystemBulkReAssignMatrixRecord">
                <ScalarProperty Name="IntegrationSystemID" ColumnName="IntegrationSystemID" />
                <ScalarProperty Name="WorkflowID" ColumnName="WorkflowID" />
                <ScalarProperty Name="DashboardControllerName" ColumnName="DashboardControllerName" />
                <ScalarProperty Name="WorkflowControllerName" ColumnName="WorkflowControllerName" />
                <ScalarProperty Name="WorkflowFriendlyName" ColumnName="WorkflowFriendlyName" />
                <ScalarProperty Name="WorkflowDescription" ColumnName="WorkflowDescription" />
                <ScalarProperty Name="AdministratorRoles" ColumnName="AdministratorRoles" />
                <ScalarProperty Name="InitiatorRoles" ColumnName="InitiatorRoles" />
                <ScalarProperty Name="ViewerRoles" ColumnName="ViewerRoles" />
                <ScalarProperty Name="Step" ColumnName="Step" />
                <ScalarProperty Name="StepTitle" ColumnName="StepTitle" />
                <ScalarProperty Name="WorkflowTemplateStepID" ColumnName="WorkflowTemplateStepID" />
                <ScalarProperty Name="WorkflowTemplateStepTypeID" ColumnName="WorkflowTemplateStepTypeID" />
                <ScalarProperty Name="StepApplicationRoles" ColumnName="StepApplicationRoles" />
                <ScalarProperty Name="StepReAssignRoles" ColumnName="StepReAssignRoles" />
                <ScalarProperty Name="RoleID" ColumnName="RoleID" />
                <ScalarProperty Name="RoleName" ColumnName="RoleName" />
                <ScalarProperty Name="FromUserTaskCount" ColumnName="FromUserTaskCount" />
                <ScalarProperty Name="FromUserHasRole" ColumnName="FromUserHasRole" />
                <ScalarProperty Name="ToUserHasRole" ColumnName="ToUserHasRole" />
                <ScalarProperty Name="IsWorkflowAdmin" ColumnName="IsWorkflowAdmin" />
                <ScalarProperty Name="FromUserWorkflowCount" ColumnName="FromUserWorkflowCount" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_SystemWorkflowInstanceSearcher" FunctionName="Model.Store.Pr_SystemWorkflowInstanceSearcher">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.SystemWorkflowInstanceSearchRecord">
                <ScalarProperty Name="IntegrationSystemID" ColumnName="IntegrationSystemID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="WorkflowStartDate" ColumnName="WorkflowStartDate" />
                <ScalarProperty Name="WorkflowEndDate" ColumnName="WorkflowEndDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="WorkflowInstanceStatusID" ColumnName="WorkflowInstanceStatusID" />
                <ScalarProperty Name="WorkflowInstanceStatus" ColumnName="WorkflowInstanceStatus" />
                <ScalarProperty Name="WorkflowTemplateID" ColumnName="WorkflowTemplateID" />
                <ScalarProperty Name="WorkflowTemplateStepID" ColumnName="WorkflowTemplateStepID" />
                <ScalarProperty Name="WorkflowTemplateStep" ColumnName="WorkflowTemplateStep" />
                <ScalarProperty Name="WorkflowTemplateStepTitle" ColumnName="WorkflowTemplateStepTitle" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="WorkflowID" ColumnName="WorkflowID" />
                <ScalarProperty Name="DashboardControllerName" ColumnName="DashboardControllerName" />
                <ScalarProperty Name="WorkflowControllerName" ColumnName="WorkflowControllerName" />
                <ScalarProperty Name="Reference" ColumnName="Reference" />
                <ScalarProperty Name="WarningDate" ColumnName="WarningDate" />
                <ScalarProperty Name="DueDate" ColumnName="DueDate" />
                <ScalarProperty Name="WorkflowFriendlyName" ColumnName="WorkflowFriendlyName" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="AssignedTo" ColumnName="AssignedTo" />
                <ScalarProperty Name="CreatedByName" ColumnName="CreatedByName" />
                <ScalarProperty Name="WorkflowInstanceStateID" ColumnName="WorkflowInstanceStateID" />
                <ScalarProperty Name="WorkflowInstanceState" ColumnName="WorkflowInstanceState" />
                <ScalarProperty Name="IsWorkflowAdmin" ColumnName="IsWorkflowAdmin" />
                <ScalarProperty Name="IsWorkflowViewer" ColumnName="IsWorkflowViewer" />
                <ScalarProperty Name="ConsoleUrl" ColumnName="ConsoleUrl" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
        </EntityContainerMapping>
      </Mapping>
    </edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
    <Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </Connection>
    <Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="True" />
        <DesignerProperty Name="IncludeForeignKeysInModel" Value="True" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="None" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams>
      <Diagram Name="IntegrationModel">
        <EntityTypeShape EntityType="Model.CommandType" Width="1.75" PointX="7.75" PointY="1.875" Height="1.5956835937499996" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.Connection" Width="1.75" PointX="2.875" PointY="0.625" Height="3.9033007812499996" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.ConnectionType" Width="1.875" PointX="0.5" PointY="1.75" Height="1.5956835937499996" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.DataSource" Width="1.875" PointX="5.25" PointY="0.5" Height="4.2879036458333335" IsExpanded="true" />
        <AssociationConnector Association="Model.FK_DataSources_CommandTypes" ManuallyRouted="false">
          <ConnectorPoint PointX="7.75" PointY="2.672841796875" />
          <ConnectorPoint PointX="7.125" PointY="2.672841796875" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_Connections_DataSources" ManuallyRouted="false">
          <ConnectorPoint PointX="4.625" PointY="2.576650390625" />
          <ConnectorPoint PointX="5.25" PointY="2.576650390625" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_ConnectionTypes_Connections" ManuallyRouted="false">
          <ConnectorPoint PointX="2.375" PointY="2.547841796875" />
          <ConnectorPoint PointX="2.875" PointY="2.547841796875" />
        </AssociationConnector>
        <EntityTypeShape EntityType="Model.IntegrationSystem" Width="2.625" PointX="10.625" PointY="1.875" Height="2.3648893229166656" />
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>