﻿<IntegrationFile Version="4" ID="46840522-e529-4895-9bc2-30c144163956">
  <ActionGroup Name="IntegrationFileActionGroup" ID="71e120cc-b60b-4682-89eb-02e3f2c06a3d" RunMethod="Sequential" MessagingEnabled="false">
    <Actions>
      <SocketIntegration Name="Network Socket Integration" ID="edcb1971-005b-406b-bf11-eb5c427a986b" IgnoreErrors="true" Port="5170">
        <Variables>
          <Variable Name="Result" Type="System.String">
            <Value></Value>
          </Variable>
          <Variable Name="SecondScan" Type="System.String">
            <Value></Value>
          </Variable>
        </Variables>
        <ActionGroup ID="2ef33b97-d6a3-4a46-82ba-e42c0307b887" RunMethod="Sequential" MessagingEnabled="false">
          <Actions>
            <ReadSocketAction Name="Read from Network Socket" ID="6c1ca9a8-c009-4171-bba2-a7c21c699d8d" IgnoreErrors="false" Port="5171" DataContentVariable="SecondScan">
              <TriggerEvent.CharacterNumber CharacterCount="5" />
              <ContentData />
            </ReadSocketAction>
            <PowerShellCommandAction Name="Power Shell Command" ID="122ea8d8-16e0-46a3-84a5-e2fe1e9631c8" IgnoreErrors="false" CommandOutputVariable="Result">
              <Command>
                <Value>$First = "%EventData%"&#xD;
$Second = "%SecondScan%"&#xD;
&#xD;
$Result = $First.equals($Second)&#xD;
$Result</Value>
              </Command>
            </PowerShellCommandAction>
            <PrintAction Name="Print Document" ID="7e2c3462-ec66-4223-93b7-d7f58ada2fcc" RunType="UseConditionVariable" IgnoreErrors="false" Document="C:\Users\drodriguez\Documents\BarTender\BarTender Documents\EU Energy Labels\EU Energy Washing Machine 2010-1061.btw" Printer="\\srvspmdprint01\PRTSPMD205-TechSupport LaserJet 3052" UseDatabase="false">
              <ConditionExpression>
                <Expression>StartsWith([%Result%], 'T')</Expression>
                <VariableDataTypes>(Result:Text)</VariableDataTypes>
              </ConditionExpression>
            </PrintAction>
          </Actions>
        </ActionGroup>
        <TriggerEvent.CharacterNumber CharacterCount="5" />
      </SocketIntegration>
    </Actions>
  </ActionGroup>
  <Metadata>
    <Properties>
      <Properties Name="MostRecentlyUsedVariables" Type="System.String">
        <Value>SecondScan;ErsterStrichcode</Value>
      </Properties>
      <Properties Name="SelectedIntegration" Type="System.Int32">
        <Value>0</Value>
      </Properties>
      <Properties Name="SelectedOptionsPage" Type="System.String">
        <Value>1;2</Value>
      </Properties>
    </Properties>
  </Metadata>
  <SourcePath>C:\Users\drodriguez\Downloads\ScanBarCodesOverTCP.btin</SourcePath>
</IntegrationFile>