<Activity x:Class="XrmWorkflowf18e3b7ef56c4d8cb9f6420d3dccdbc3" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" xmlns:mxs="clr-namespace:Microsoft.Xrm.Sdk;assembly=Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" xmlns:mxsq="clr-namespace:Microsoft.Xrm.Sdk.Query;assembly=Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" xmlns:mxsw="clr-namespace:Microsoft.Xrm.Sdk.Workflow;assembly=Microsoft.Xrm.Sdk.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" xmlns:mxswa="clr-namespace:Microsoft.Xrm.Sdk.Workflow.Activities;assembly=Microsoft.Xrm.Sdk.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" xmlns:s="clr-namespace:System;assembly=mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" xmlns:srs="clr-namespace:System.Runtime.Serialization;assembly=System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" xmlns:this="clr-namespace:" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="InputEntities" Type="InArgument(scg:IDictionary(x:String, mxs:Entity))" />
    <x:Property Name="CreatedEntities" Type="InArgument(scg:IDictionary(x:String, mxs:Entity))" />
  </x:Members>
  <this:XrmWorkflowf18e3b7ef56c4d8cb9f6420d3dccdbc3.InputEntities>
    <InArgument x:TypeArguments="scg:IDictionary(x:String, mxs:Entity)" />
  </this:XrmWorkflowf18e3b7ef56c4d8cb9f6420d3dccdbc3.InputEntities>
  <this:XrmWorkflowf18e3b7ef56c4d8cb9f6420d3dccdbc3.CreatedEntities>
    <InArgument x:TypeArguments="scg:IDictionary(x:String, mxs:Entity)" />
  </this:XrmWorkflowf18e3b7ef56c4d8cb9f6420d3dccdbc3.CreatedEntities>
  <mva:VisualBasic.Settings>Assembly references and imported namespaces for internal implementation</mva:VisualBasic.Settings>
  <mxswa:Workflow>
    <mxswa:Workflow.Variables>
      <Variable x:TypeArguments="x:String" Default="[Nothing]" Name="CustomActivityStep12ResultString_localParameter" />
      <Variable x:TypeArguments="x:Boolean" Default="False" Name="CustomActivityStep12ResultBoolean_localParameter" />
      <Variable x:TypeArguments="s:DateTime" Default="" Name="CustomActivityStep12ResultDateTime_localParameter" />
      <Variable x:TypeArguments="x:Decimal" Default="0" Name="CustomActivityStep12ResultDecimal_localParameter" />
      <Variable x:TypeArguments="x:Double" Default="0" Name="CustomActivityStep12ResultDouble_localParameter" />
      <Variable x:TypeArguments="x:Int32" Default="0" Name="CustomActivityStep12ResultInteger_localParameter" />
      <Variable x:TypeArguments="mxs:Money" Name="CustomActivityStep12ResultMoney_localParameter">
        <Variable.Default>
          <mxswa:ReferenceLiteral x:TypeArguments="mxs:Money">
            <x:Null />
          </mxswa:ReferenceLiteral>
        </Variable.Default>
      </Variable>
      <Variable x:TypeArguments="x:String" Default="[Nothing]" Name="CustomActivityStep11ResultString_localParameter" />
      <Variable x:TypeArguments="x:Boolean" Default="False" Name="CustomActivityStep11ResultBoolean_localParameter" />
      <Variable x:TypeArguments="s:DateTime" Default="" Name="CustomActivityStep11ResultDateTime_localParameter" />
      <Variable x:TypeArguments="x:Decimal" Default="0" Name="CustomActivityStep11ResultDecimal_localParameter" />
      <Variable x:TypeArguments="x:Double" Default="0" Name="CustomActivityStep11ResultDouble_localParameter" />
      <Variable x:TypeArguments="x:Int32" Default="0" Name="CustomActivityStep11ResultInteger_localParameter" />
      <Variable x:TypeArguments="mxs:Money" Name="CustomActivityStep11ResultMoney_localParameter">
        <Variable.Default>
          <mxswa:ReferenceLiteral x:TypeArguments="mxs:Money">
            <x:Null />
          </mxswa:ReferenceLiteral>
        </Variable.Default>
      </Variable>
    </mxswa:Workflow.Variables>
    <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionSequence, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionStep1: If Start Time contains data">
      <mxswa:ActivityReference.Arguments>
        <InArgument x:TypeArguments="x:Boolean" x:Key="Wait">False</InArgument>
      </mxswa:ActivityReference.Arguments>
      <mxswa:ActivityReference.Properties>
        <sco:Collection x:TypeArguments="Variable" x:Key="Variables">
          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep2_condition" />
          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep2_1" />
        </sco:Collection>
        <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
          <mxswa:GetEntityProperty Attribute="vhacrm_starttime_datetime" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="vhacrm_workhours" Value="[ConditionBranchStep2_1]">
            <mxswa:GetEntityProperty.TargetType>
              <InArgument x:TypeArguments="s:Type">
                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                  <x:Null />
                </mxswa:ReferenceLiteral>
              </InArgument>
            </mxswa:GetEntityProperty.TargetType>
          </mxswa:GetEntityProperty>
          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateCondition">
            <mxswa:ActivityReference.Arguments>
              <InArgument x:TypeArguments="mxsq:ConditionOperator" x:Key="ConditionOperator">NotNull</InArgument>
              <x:Null x:Key="Parameters" />
              <InArgument x:TypeArguments="x:Object" x:Key="Operand">[ConditionBranchStep2_1]</InArgument>
              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep2_condition]</OutArgument>
            </mxswa:ActivityReference.Arguments>
          </mxswa:ActivityReference>
          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionBranch, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep2">
            <mxswa:ActivityReference.Arguments>
              <InArgument x:TypeArguments="x:Boolean" x:Key="Condition">[ConditionBranchStep2_condition]</InArgument>
            </mxswa:ActivityReference.Arguments>
            <mxswa:ActivityReference.Properties>
              <mxswa:ActivityReference x:Key="Then" AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.Composite, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep2">
                <mxswa:ActivityReference.Properties>
                  <sco:Collection x:TypeArguments="Variable" x:Key="Variables" />
                  <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                    <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionSequence, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionStep3: if start time is &lt;= execution time (+ 5 minutes) and end time is greater than execution time">
                      <mxswa:ActivityReference.Arguments>
                        <InArgument x:TypeArguments="x:Boolean" x:Key="Wait">False</InArgument>
                      </mxswa:ActivityReference.Arguments>
                      <mxswa:ActivityReference.Properties>
                        <sco:Collection x:TypeArguments="Variable" x:Key="Variables">
                          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep4_condition" />
                          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep4_1" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep4_2" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep4_3" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep4_4" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep4_5" />
                          <Variable x:TypeArguments="mxsw:XrmTimeSpan" Name="ConditionBranchStep4_6">
                            <Variable.Default>
                              <Literal x:TypeArguments="mxsw:XrmTimeSpan">
                                <mxsw:XrmTimeSpan Days="0" Hours="0" Minutes="5" Months="0" Years="0" />
                              </Literal>
                            </Variable.Default>
                          </Variable>
                          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep4_7" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep4_8" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep4_9" />
                        </sco:Collection>
                        <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                          <mxswa:GetEntityProperty Attribute="vhacrm_starttime_datetime" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="vhacrm_workhours" Value="[ConditionBranchStep4_2]">
                            <mxswa:GetEntityProperty.TargetType>
                              <InArgument x:TypeArguments="s:Type">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                            </mxswa:GetEntityProperty.TargetType>
                          </mxswa:GetEntityProperty>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">RetrieveCurrentTime</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters" xml:space="preserve">[New Object() {  }]</InArgument>
                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[ConditionBranchStep4_5]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { ConditionBranchStep4_5 }]</InArgument>
                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[ConditionBranchStep4_4]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">Add</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { ConditionBranchStep4_4, ConditionBranchStep4_6 }]</InArgument>
                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[ConditionBranchStep4_3]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateCondition">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="mxsq:ConditionOperator" x:Key="ConditionOperator">LessEqual</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { ConditionBranchStep4_3 }]</InArgument>
                              <InArgument x:TypeArguments="x:Object" x:Key="Operand">[ConditionBranchStep4_2]</InArgument>
                              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep4_1]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:GetEntityProperty Attribute="vhacrm_endtime_datetime" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="vhacrm_workhours" Value="[ConditionBranchStep4_8]">
                            <mxswa:GetEntityProperty.TargetType>
                              <InArgument x:TypeArguments="s:Type">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                            </mxswa:GetEntityProperty.TargetType>
                          </mxswa:GetEntityProperty>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">RetrieveCurrentTime</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters" xml:space="preserve">[New Object() {  }]</InArgument>
                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[ConditionBranchStep4_9]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateCondition">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="mxsq:ConditionOperator" x:Key="ConditionOperator">GreaterThan</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { ConditionBranchStep4_9 }]</InArgument>
                              <InArgument x:TypeArguments="x:Object" x:Key="Operand">[ConditionBranchStep4_8]</InArgument>
                              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep4_7]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateLogicalCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateLogicalCondition">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="mxsq:LogicalOperator" x:Key="LogicalOperator">And</InArgument>
                              <InArgument x:TypeArguments="x:Boolean" x:Key="LeftOperand">[ConditionBranchStep4_1]</InArgument>
                              <InArgument x:TypeArguments="x:Boolean" x:Key="RightOperand">[ConditionBranchStep4_7]</InArgument>
                              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep4_condition]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionBranch, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep4">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:Boolean" x:Key="Condition">[ConditionBranchStep4_condition]</InArgument>
                            </mxswa:ActivityReference.Arguments>
                            <mxswa:ActivityReference.Properties>
                              <mxswa:ActivityReference x:Key="Then" AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.Composite, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep4">
                                <mxswa:ActivityReference.Properties>
                                  <sco:Collection x:TypeArguments="Variable" x:Key="Variables" />
                                  <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                                    <Sequence DisplayName="UpdateStep5: Update user Work Hours Login to Enable, which fires the plugin to enable the user">
                                      <Sequence.Variables>
                                        <Variable x:TypeArguments="x:Object" Name="UpdateStep5_1" />
                                        <Variable x:TypeArguments="x:Object" Name="UpdateStep5_2" />
                                      </Sequence.Variables>
                                      <Assign x:TypeArguments="mxs:Entity" To="[CreatedEntities(&quot;related_vhacrm_userid#systemuser#Temp&quot;)]" Value="[New Entity(&quot;systemuser&quot;)]" />
                                      <Assign x:TypeArguments="s:Guid" To="[CreatedEntities(&quot;related_vhacrm_userid#systemuser#Temp&quot;).Id]" Value="[InputEntities(&quot;related_vhacrm_userid#systemuser&quot;).Id]" />
                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                        <mxswa:ActivityReference.Arguments>
                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.OptionSetValue, "713770002", "Picklist" }]</InArgument>
                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                          </InArgument>
                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[UpdateStep5_2]</OutArgument>
                                        </mxswa:ActivityReference.Arguments>
                                      </mxswa:ActivityReference>
                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                        <mxswa:ActivityReference.Arguments>
                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { UpdateStep5_2 }]</InArgument>
                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                          </InArgument>
                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[UpdateStep5_1]</OutArgument>
                                        </mxswa:ActivityReference.Arguments>
                                      </mxswa:ActivityReference>
                                      <mxswa:SetEntityProperty Attribute="vhacrm_workhourslogin_code" Entity="[CreatedEntities(&quot;related_vhacrm_userid#systemuser#Temp&quot;)]" EntityName="systemuser" Value="[UpdateStep5_1]">
                                        <mxswa:SetEntityProperty.TargetType>
                                          <InArgument x:TypeArguments="s:Type">
                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                          </InArgument>
                                        </mxswa:SetEntityProperty.TargetType>
                                      </mxswa:SetEntityProperty>
                                      <mxswa:UpdateEntity DisplayName="UpdateStep5" Entity="[CreatedEntities(&quot;related_vhacrm_userid#systemuser#Temp&quot;)]" EntityName="systemuser" />
                                      <Assign x:TypeArguments="mxs:Entity" To="[InputEntities(&quot;related_vhacrm_userid#systemuser&quot;)]" Value="[CreatedEntities(&quot;related_vhacrm_userid#systemuser#Temp&quot;)]" />
                                      <Persist />
                                    </Sequence>
                                    <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.Composite, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="CustomActivityStep12: Call HEC - Enable User Process Genie">
                                      <mxswa:ActivityReference.Properties>
                                        <sco:Collection x:TypeArguments="Variable" x:Key="Variables">
                                          <Variable x:TypeArguments="x:Object" Name="CustomActivityStep12_1" />
                                          <Variable x:TypeArguments="x:Object" Name="CustomActivityStep12_1_converted" />
                                          <Variable x:TypeArguments="x:Object" Name="CustomActivityStep12_2" />
                                          <Variable x:TypeArguments="x:Object" Name="CustomActivityStep12_2_converted" />
                                          <Variable x:TypeArguments="x:Object" Name="CustomActivityStep12_3" />
                                          <Variable x:TypeArguments="x:Object" Name="CustomActivityStep12_3_converted" />
                                        </sco:Collection>
                                        <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                            <mxswa:ActivityReference.Arguments>
                                              <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.String, "580", "String" }]</InArgument>
                                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                              </InArgument>
                                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CustomActivityStep12_1]</OutArgument>
                                            </mxswa:ActivityReference.Arguments>
                                          </mxswa:ActivityReference>
                                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConvertCrmXrmTypes, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConvertCrmXrmTypes">
                                            <mxswa:ActivityReference.Arguments>
                                              <InArgument x:TypeArguments="x:Object" x:Key="Value">[CustomActivityStep12_1]</InArgument>
                                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                              </InArgument>
                                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CustomActivityStep12_1_converted]</OutArgument>
                                            </mxswa:ActivityReference.Arguments>
                                          </mxswa:ActivityReference>
                                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConvertCrmXrmTypes, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConvertCrmXrmTypes">
                                            <mxswa:ActivityReference.Arguments>
                                              <InArgument x:TypeArguments="x:Object" x:Key="Value">[CustomActivityStep12_2]</InArgument>
                                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                              </InArgument>
                                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CustomActivityStep12_2_converted]</OutArgument>
                                            </mxswa:ActivityReference.Arguments>
                                          </mxswa:ActivityReference>
                                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConvertCrmXrmTypes, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConvertCrmXrmTypes">
                                            <mxswa:ActivityReference.Arguments>
                                              <InArgument x:TypeArguments="x:Object" x:Key="Value">[CustomActivityStep12_3]</InArgument>
                                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                              </InArgument>
                                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CustomActivityStep12_3_converted]</OutArgument>
                                            </mxswa:ActivityReference.Arguments>
                                          </mxswa:ActivityReference>
                                          <mxswa:ActivityReference AssemblyQualifiedName="North52.FormulaManager.WorkflowActivities.ExecuteFormula, North52.FormulaManager, Version=1.0.0.518, Culture=neutral, PublicKeyToken=a8878fd7dad60ca1" DisplayName="CustomActivityStep12: Call HEC - Enable User Process Genie">
                                            <mxswa:ActivityReference.Arguments>
                                              <InArgument x:TypeArguments="x:String" x:Key="FormulaShortCode">[DirectCast(CustomActivityStep12_1_converted, System.String)]</InArgument>
                                              <InArgument x:TypeArguments="x:String" x:Key="FormulaParameterXml">[DirectCast(CustomActivityStep12_2_converted, System.String)]</InArgument>
                                              <InArgument x:TypeArguments="x:String" x:Key="PrimaryEntityId">[DirectCast(CustomActivityStep12_3_converted, System.String)]</InArgument>
                                              <OutArgument x:TypeArguments="x:String" x:Key="ResultString">[CustomActivityStep12ResultString_localParameter]</OutArgument>
                                              <OutArgument x:TypeArguments="x:Boolean" x:Key="ResultBoolean">[CustomActivityStep12ResultBoolean_localParameter]</OutArgument>
                                              <OutArgument x:TypeArguments="s:DateTime" x:Key="ResultDateTime">[CustomActivityStep12ResultDateTime_localParameter]</OutArgument>
                                              <OutArgument x:TypeArguments="x:Decimal" x:Key="ResultDecimal">[CustomActivityStep12ResultDecimal_localParameter]</OutArgument>
                                              <OutArgument x:TypeArguments="x:Double" x:Key="ResultDouble">[CustomActivityStep12ResultDouble_localParameter]</OutArgument>
                                              <OutArgument x:TypeArguments="x:Int32" x:Key="ResultInteger">[CustomActivityStep12ResultInteger_localParameter]</OutArgument>
                                              <OutArgument x:TypeArguments="mxs:Money" x:Key="ResultMoney">[CustomActivityStep12ResultMoney_localParameter]</OutArgument>
                                            </mxswa:ActivityReference.Arguments>
                                          </mxswa:ActivityReference>
                                        </sco:Collection>
                                      </mxswa:ActivityReference.Properties>
                                    </mxswa:ActivityReference>
                                  </sco:Collection>
                                </mxswa:ActivityReference.Properties>
                              </mxswa:ActivityReference>
                              <x:Null x:Key="Else" />
                            </mxswa:ActivityReference.Properties>
                          </mxswa:ActivityReference>
                        </sco:Collection>
                      </mxswa:ActivityReference.Properties>
                    </mxswa:ActivityReference>
                  </sco:Collection>
                </mxswa:ActivityReference.Properties>
              </mxswa:ActivityReference>
              <x:Null x:Key="Else" />
            </mxswa:ActivityReference.Properties>
          </mxswa:ActivityReference>
        </sco:Collection>
      </mxswa:ActivityReference.Properties>
    </mxswa:ActivityReference>
    <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionSequence, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionStep6: If OT Start Time contains data">
      <mxswa:ActivityReference.Arguments>
        <InArgument x:TypeArguments="x:Boolean" x:Key="Wait">False</InArgument>
      </mxswa:ActivityReference.Arguments>
      <mxswa:ActivityReference.Properties>
        <sco:Collection x:TypeArguments="Variable" x:Key="Variables">
          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep7_condition" />
          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep7_1" />
        </sco:Collection>
        <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
          <mxswa:GetEntityProperty Attribute="vhacrm_overtimestarttime_datetime" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="vhacrm_workhours" Value="[ConditionBranchStep7_1]">
            <mxswa:GetEntityProperty.TargetType>
              <InArgument x:TypeArguments="s:Type">
                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                  <x:Null />
                </mxswa:ReferenceLiteral>
              </InArgument>
            </mxswa:GetEntityProperty.TargetType>
          </mxswa:GetEntityProperty>
          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateCondition">
            <mxswa:ActivityReference.Arguments>
              <InArgument x:TypeArguments="mxsq:ConditionOperator" x:Key="ConditionOperator">NotNull</InArgument>
              <x:Null x:Key="Parameters" />
              <InArgument x:TypeArguments="x:Object" x:Key="Operand">[ConditionBranchStep7_1]</InArgument>
              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep7_condition]</OutArgument>
            </mxswa:ActivityReference.Arguments>
          </mxswa:ActivityReference>
          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionBranch, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep7">
            <mxswa:ActivityReference.Arguments>
              <InArgument x:TypeArguments="x:Boolean" x:Key="Condition">[ConditionBranchStep7_condition]</InArgument>
            </mxswa:ActivityReference.Arguments>
            <mxswa:ActivityReference.Properties>
              <mxswa:ActivityReference x:Key="Then" AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.Composite, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep7">
                <mxswa:ActivityReference.Properties>
                  <sco:Collection x:TypeArguments="Variable" x:Key="Variables" />
                  <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                    <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionSequence, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionStep8: if OT start time &lt;= execution time (+ 5 minutes) and OT end time is greater than execution time">
                      <mxswa:ActivityReference.Arguments>
                        <InArgument x:TypeArguments="x:Boolean" x:Key="Wait">False</InArgument>
                      </mxswa:ActivityReference.Arguments>
                      <mxswa:ActivityReference.Properties>
                        <sco:Collection x:TypeArguments="Variable" x:Key="Variables">
                          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep9_condition" />
                          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep9_1" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep9_2" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep9_3" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep9_4" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep9_5" />
                          <Variable x:TypeArguments="mxsw:XrmTimeSpan" Name="ConditionBranchStep9_6">
                            <Variable.Default>
                              <Literal x:TypeArguments="mxsw:XrmTimeSpan">
                                <mxsw:XrmTimeSpan Days="0" Hours="0" Minutes="5" Months="0" Years="0" />
                              </Literal>
                            </Variable.Default>
                          </Variable>
                          <Variable x:TypeArguments="x:Boolean" Default="False" Name="ConditionBranchStep9_7" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep9_8" />
                          <Variable x:TypeArguments="x:Object" Name="ConditionBranchStep9_9" />
                        </sco:Collection>
                        <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                          <mxswa:GetEntityProperty Attribute="vhacrm_overtimestarttime_datetime" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="vhacrm_workhours" Value="[ConditionBranchStep9_2]">
                            <mxswa:GetEntityProperty.TargetType>
                              <InArgument x:TypeArguments="s:Type">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                            </mxswa:GetEntityProperty.TargetType>
                          </mxswa:GetEntityProperty>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">RetrieveCurrentTime</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters" xml:space="preserve">[New Object() {  }]</InArgument>
                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[ConditionBranchStep9_5]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { ConditionBranchStep9_5 }]</InArgument>
                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[ConditionBranchStep9_4]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">Add</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { ConditionBranchStep9_4, ConditionBranchStep9_6 }]</InArgument>
                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[ConditionBranchStep9_3]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateCondition">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="mxsq:ConditionOperator" x:Key="ConditionOperator">LessEqual</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { ConditionBranchStep9_3 }]</InArgument>
                              <InArgument x:TypeArguments="x:Object" x:Key="Operand">[ConditionBranchStep9_2]</InArgument>
                              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep9_1]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:GetEntityProperty Attribute="vhacrm_overtimeendtime_datetime" Entity="[InputEntities(&quot;primaryEntity&quot;)]" EntityName="vhacrm_workhours" Value="[ConditionBranchStep9_8]">
                            <mxswa:GetEntityProperty.TargetType>
                              <InArgument x:TypeArguments="s:Type">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                            </mxswa:GetEntityProperty.TargetType>
                          </mxswa:GetEntityProperty>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">RetrieveCurrentTime</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters" xml:space="preserve">[New Object() {  }]</InArgument>
                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type">
                                  <x:Null />
                                </mxswa:ReferenceLiteral>
                              </InArgument>
                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[ConditionBranchStep9_9]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateCondition">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="mxsq:ConditionOperator" x:Key="ConditionOperator">GreaterThan</InArgument>
                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { ConditionBranchStep9_9 }]</InArgument>
                              <InArgument x:TypeArguments="x:Object" x:Key="Operand">[ConditionBranchStep9_8]</InArgument>
                              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep9_7]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateLogicalCondition, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateLogicalCondition">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="mxsq:LogicalOperator" x:Key="LogicalOperator">And</InArgument>
                              <InArgument x:TypeArguments="x:Boolean" x:Key="LeftOperand">[ConditionBranchStep9_1]</InArgument>
                              <InArgument x:TypeArguments="x:Boolean" x:Key="RightOperand">[ConditionBranchStep9_7]</InArgument>
                              <OutArgument x:TypeArguments="x:Boolean" x:Key="Result">[ConditionBranchStep9_condition]</OutArgument>
                            </mxswa:ActivityReference.Arguments>
                          </mxswa:ActivityReference>
                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConditionBranch, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep9">
                            <mxswa:ActivityReference.Arguments>
                              <InArgument x:TypeArguments="x:Boolean" x:Key="Condition">[ConditionBranchStep9_condition]</InArgument>
                            </mxswa:ActivityReference.Arguments>
                            <mxswa:ActivityReference.Properties>
                              <mxswa:ActivityReference x:Key="Then" AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.Composite, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConditionBranchStep9">
                                <mxswa:ActivityReference.Properties>
                                  <sco:Collection x:TypeArguments="Variable" x:Key="Variables" />
                                  <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                                    <Sequence DisplayName="UpdateStep10: Update user Work Hours Login to Enable, which fires the plugin to enable the user">
                                      <Sequence.Variables>
                                        <Variable x:TypeArguments="x:Object" Name="UpdateStep10_1" />
                                        <Variable x:TypeArguments="x:Object" Name="UpdateStep10_2" />
                                      </Sequence.Variables>
                                      <Assign x:TypeArguments="mxs:Entity" To="[CreatedEntities(&quot;related_vhacrm_userid#systemuser#Temp&quot;)]" Value="[New Entity(&quot;systemuser&quot;)]" />
                                      <Assign x:TypeArguments="s:Guid" To="[CreatedEntities(&quot;related_vhacrm_userid#systemuser#Temp&quot;).Id]" Value="[InputEntities(&quot;related_vhacrm_userid#systemuser&quot;).Id]" />
                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                        <mxswa:ActivityReference.Arguments>
                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.OptionSetValue, "713770002", "Picklist" }]</InArgument>
                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                          </InArgument>
                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[UpdateStep10_2]</OutArgument>
                                        </mxswa:ActivityReference.Arguments>
                                      </mxswa:ActivityReference>
                                      <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                        <mxswa:ActivityReference.Arguments>
                                          <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">SelectFirstNonNull</InArgument>
                                          <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { UpdateStep10_2 }]</InArgument>
                                          <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                          </InArgument>
                                          <OutArgument x:TypeArguments="x:Object" x:Key="Result">[UpdateStep10_1]</OutArgument>
                                        </mxswa:ActivityReference.Arguments>
                                      </mxswa:ActivityReference>
                                      <mxswa:SetEntityProperty Attribute="vhacrm_workhourslogin_code" Entity="[CreatedEntities(&quot;related_vhacrm_userid#systemuser#Temp&quot;)]" EntityName="systemuser" Value="[UpdateStep10_1]">
                                        <mxswa:SetEntityProperty.TargetType>
                                          <InArgument x:TypeArguments="s:Type">
                                            <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="mxs:OptionSetValue" />
                                          </InArgument>
                                        </mxswa:SetEntityProperty.TargetType>
                                      </mxswa:SetEntityProperty>
                                      <mxswa:UpdateEntity DisplayName="UpdateStep10" Entity="[CreatedEntities(&quot;related_vhacrm_userid#systemuser#Temp&quot;)]" EntityName="systemuser" />
                                      <Assign x:TypeArguments="mxs:Entity" To="[InputEntities(&quot;related_vhacrm_userid#systemuser&quot;)]" Value="[CreatedEntities(&quot;related_vhacrm_userid#systemuser#Temp&quot;)]" />
                                      <Persist />
                                    </Sequence>
                                    <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.Composite, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="CustomActivityStep11: Call HEC - Enable User Process Genie">
                                      <mxswa:ActivityReference.Properties>
                                        <sco:Collection x:TypeArguments="Variable" x:Key="Variables">
                                          <Variable x:TypeArguments="x:Object" Name="CustomActivityStep11_1" />
                                          <Variable x:TypeArguments="x:Object" Name="CustomActivityStep11_1_converted" />
                                          <Variable x:TypeArguments="x:Object" Name="CustomActivityStep11_2" />
                                          <Variable x:TypeArguments="x:Object" Name="CustomActivityStep11_2_converted" />
                                          <Variable x:TypeArguments="x:Object" Name="CustomActivityStep11_3" />
                                          <Variable x:TypeArguments="x:Object" Name="CustomActivityStep11_3_converted" />
                                        </sco:Collection>
                                        <sco:Collection x:TypeArguments="Activity" x:Key="Activities">
                                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
                                            <mxswa:ActivityReference.Arguments>
                                              <InArgument x:TypeArguments="x:String" x:Key="ExpressionOperator">CreateCrmType</InArgument>
                                              <InArgument x:TypeArguments="s:Object[]" x:Key="Parameters">[New Object() { Microsoft.Xrm.Sdk.Workflow.WorkflowPropertyType.String, "580", "String" }]</InArgument>
                                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                              </InArgument>
                                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CustomActivityStep11_1]</OutArgument>
                                            </mxswa:ActivityReference.Arguments>
                                          </mxswa:ActivityReference>
                                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConvertCrmXrmTypes, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConvertCrmXrmTypes">
                                            <mxswa:ActivityReference.Arguments>
                                              <InArgument x:TypeArguments="x:Object" x:Key="Value">[CustomActivityStep11_1]</InArgument>
                                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                              </InArgument>
                                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CustomActivityStep11_1_converted]</OutArgument>
                                            </mxswa:ActivityReference.Arguments>
                                          </mxswa:ActivityReference>
                                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConvertCrmXrmTypes, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConvertCrmXrmTypes">
                                            <mxswa:ActivityReference.Arguments>
                                              <InArgument x:TypeArguments="x:Object" x:Key="Value">[CustomActivityStep11_2]</InArgument>
                                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                              </InArgument>
                                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CustomActivityStep11_2_converted]</OutArgument>
                                            </mxswa:ActivityReference.Arguments>
                                          </mxswa:ActivityReference>
                                          <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.ConvertCrmXrmTypes, Microsoft.Crm.Workflow, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="ConvertCrmXrmTypes">
                                            <mxswa:ActivityReference.Arguments>
                                              <InArgument x:TypeArguments="x:Object" x:Key="Value">[CustomActivityStep11_3]</InArgument>
                                              <InArgument x:TypeArguments="s:Type" x:Key="TargetType">
                                                <mxswa:ReferenceLiteral x:TypeArguments="s:Type" Value="x:String" />
                                              </InArgument>
                                              <OutArgument x:TypeArguments="x:Object" x:Key="Result">[CustomActivityStep11_3_converted]</OutArgument>
                                            </mxswa:ActivityReference.Arguments>
                                          </mxswa:ActivityReference>
                                          <mxswa:ActivityReference AssemblyQualifiedName="North52.FormulaManager.WorkflowActivities.ExecuteFormula, North52.FormulaManager, Version=1.0.0.518, Culture=neutral, PublicKeyToken=a8878fd7dad60ca1" DisplayName="CustomActivityStep11: Call HEC - Enable User Process Genie">
                                            <mxswa:ActivityReference.Arguments>
                                              <InArgument x:TypeArguments="x:String" x:Key="FormulaShortCode">[DirectCast(CustomActivityStep11_1_converted, System.String)]</InArgument>
                                              <InArgument x:TypeArguments="x:String" x:Key="FormulaParameterXml">[DirectCast(CustomActivityStep11_2_converted, System.String)]</InArgument>
                                              <InArgument x:TypeArguments="x:String" x:Key="PrimaryEntityId">[DirectCast(CustomActivityStep11_3_converted, System.String)]</InArgument>
                                              <OutArgument x:TypeArguments="x:String" x:Key="ResultString">[CustomActivityStep11ResultString_localParameter]</OutArgument>
                                              <OutArgument x:TypeArguments="x:Boolean" x:Key="ResultBoolean">[CustomActivityStep11ResultBoolean_localParameter]</OutArgument>
                                              <OutArgument x:TypeArguments="s:DateTime" x:Key="ResultDateTime">[CustomActivityStep11ResultDateTime_localParameter]</OutArgument>
                                              <OutArgument x:TypeArguments="x:Decimal" x:Key="ResultDecimal">[CustomActivityStep11ResultDecimal_localParameter]</OutArgument>
                                              <OutArgument x:TypeArguments="x:Double" x:Key="ResultDouble">[CustomActivityStep11ResultDouble_localParameter]</OutArgument>
                                              <OutArgument x:TypeArguments="x:Int32" x:Key="ResultInteger">[CustomActivityStep11ResultInteger_localParameter]</OutArgument>
                                              <OutArgument x:TypeArguments="mxs:Money" x:Key="ResultMoney">[CustomActivityStep11ResultMoney_localParameter]</OutArgument>
                                            </mxswa:ActivityReference.Arguments>
                                          </mxswa:ActivityReference>
                                        </sco:Collection>
                                      </mxswa:ActivityReference.Properties>
                                    </mxswa:ActivityReference>
                                  </sco:Collection>
                                </mxswa:ActivityReference.Properties>
                              </mxswa:ActivityReference>
                              <x:Null x:Key="Else" />
                            </mxswa:ActivityReference.Properties>
                          </mxswa:ActivityReference>
                        </sco:Collection>
                      </mxswa:ActivityReference.Properties>
                    </mxswa:ActivityReference>
                  </sco:Collection>
                </mxswa:ActivityReference.Properties>
              </mxswa:ActivityReference>
              <x:Null x:Key="Else" />
            </mxswa:ActivityReference.Properties>
          </mxswa:ActivityReference>
        </sco:Collection>
      </mxswa:ActivityReference.Properties>
    </mxswa:ActivityReference>
  </mxswa:Workflow>
</Activity>