<?xml version="1.0" encoding="utf-8"?><finDecisionCard version="1.00" exportedUtcDate="2013-05-20T02:16:17.0000000"><CreatedUtcDate>2013-05-16T23:17:00.0000000</CreatedUtcDate><CreatedUserId>Admin</CreatedUserId><UpdatedUtcDate>2013-05-20T02:16:05.0000000</UpdatedUtcDate><UpdatedUserId>Admin</UpdatedUserId><Active>true</Active><AllowReferStatus>false</AllowReferStatus><BaseScore>0</BaseScore><Category /><Code>Option Explicit On

' #################################################################
' Sample Australian 100 Point Check (based on a sub-set of form 201)

' Version: 1.00 (20/12/2011)

' Usage: Can be used by Workflows or defined on the Client Group,
'        Identification page.
'
' NOTE: Uses the global Client Identification Verification Method,
'       i.e., will not include a passport that thas not been
'       correctly verified and/or approved unless the Question Type
'       is 'Ignore Approval'.
' #################################################################

' Identification Type Ids for sections 1 and 2
Private Const BirthCertificate As String = "BIRTH"
Private Const Passport As String = "PP"
Private Const CitizenshipCertificate As String = "CITI"
Private Const WellKnown As String = "WK"

' Identification Type Id lists for other sections (see form 201 for examples)
Private Const Section3List As String = ""
Private Const Section4List As String = "DL,FE,GUN,PSID"
Private Const Section5List As String = ""
Private Const Section6List As String = "RATES"
Private Const Section7List As String = ""
Private Const Section8List As String = "BILL,LIB,MEDIC,OCRD,STORE,VIDEO"
Private Const Section9List As String = "BANK,ODOC,RENT"
Private Const Section10List As String = "UNION"

' Objects
Private Client As finClient

' Other
Private mIgnoreApproval As Boolean

Public Function Main(ByVal source As Object, ByVal decisionOutcome As finDecisionOutcome, ByVal questionType As String, ByVal questionId As String, ByVal parameters As ISKeyValueList) As Boolean

  Dim s As String

  ' Parameters:
  '   source - The Client
  '   decisionOutcome - The decision outcome that this script should modify
  '   questionType - The question type being asked
  '   questionId - The question Id
  '   parameters - Other values passed to the Script

  ' Assume Success
  Main = True

  ' Initialise
  Client = DirectCast(source, finClient)

  ' Disclaimer
  decisionOutcome.Items.AddInformation("", "", "**** WARNING: You must ensure this sample Decision Card suits your requirements and modify it accordingly ****", "")

  ' Ignore Approval?
  mIgnoreApproval = (strcomp(questionType, "Ignore Approval") = 0)
  If mIgnoreApproval AndAlso finBL.Settings.ClientIdentificationVerificationOption &lt;&gt; isefinVerificationOption.None Then
    decisionOutcome.Items.AddInformation("", "APPROVAL", "Verification and Approval has been ignored when performing this 100 Point Check")
  End If

  ' ====================
  ' 1. PRIMARY DOCUMENTS
  ' ====================
  If GetValidIdentificationItem(BirthCertificate) IsNot Nothing Then
    ' Birth Certificate
    decisionOutcome.Items.AddRuleTrue("1." &amp; BirthCertificate, "Birth certificate", "", 70, "Valid birth certificate provided")
  ElseIf GetValidIdentificationItem(Passport, "2y") IsNot Nothing Then
    ' Passport (current or up expired within the last 2 years)
    decisionOutcome.Items.AddRuleTrue("1." &amp; Passport, "Passport", "", 70, "Valid passport provided")
  ElseIf GetValidIdentificationItem(CitizenshipCertificate) IsNot Nothing Then
    ' Citizenship Certificate
    decisionOutcome.Items.AddRuleTrue("1." &amp; CitizenshipCertificate, "Citizenship Certificate", "", 70, "Valid citizenship certificate provided")
  Else
    decisionOutcome.Items.AddInformation("1.None", "", "A valid passport, birth certificate or citizenship certificate would score 70 points.")
  End If

  ' ===============================================================
  ' 2. Signatory is a known customer of at least 12 months standing
  ' ===============================================================
  If Client.IdentificationItems.HasValidIdentification(WellKnown) Then
    decisionOutcome.Items.AddRuleTrue("2." &amp; WellKnown, "Well known", "", 40, "Well known customer of at least 12 months standing")
  End If

  ' ================================================================
  ' 3. NAME and ADDRESS of signatory verified from written reference
  ' ================================================================
  ' E.g. another financial body
  '      an acceptable referee
  For Each s In New ISList(Section3List)
    If finBL.IdentificationTypes.Exists(s) Then
      With finBL.IdentificationTypes(s)
        If GetValidIdentificationItem(s) IsNot Nothing Then
          decisionOutcome.Items.AddRuleTrue("3." &amp; s, CStr(IIf(Len(.DescriptionShort) = 0, .Description, .DescriptionShort)), "", 40, "Valid " &amp; .Description &amp; " provided and name of signatory verified including signature of referee")
        End If
      End With
    End If
  Next

  ' =======================================================================
  ' 4. NAME of signatory verified (where photo or signature can be matched)
  ' =======================================================================
  ' E.g. drivers licence
  '      public services identification card
  For Each s In New ISList(Section4List)
    If finBL.IdentificationTypes.Exists(s) Then
      With finBL.IdentificationTypes(s)
        If GetValidIdentificationItem(s) IsNot Nothing Then
          decisionOutcome.Items.AddRuleTrue("4." &amp; s, CStr(IIf(Len(.DescriptionShort) = 0, .Description, .DescriptionShort)), "", 40, "Valid " &amp; .Description &amp; " provided and name of signatory verified and matched with photo")
        End If
      End With
    End If
  Next

  ' =========================================
  ' 5. NAME and ADDRESS of signatory verified
  ' =========================================
  ' E.g. A mortgage or other instrument of security held by another financial body
  For Each s In New ISList(Section5List)
    If finBL.IdentificationTypes.Exists(s) Then
      With finBL.IdentificationTypes(s)
        If GetValidIdentificationItem(s) IsNot Nothing Then
          decisionOutcome.Items.AddRuleTrue("5." &amp; s, CStr(IIf(Len(.DescriptionShort) = 0, .Description, .DescriptionShort)), "", 35, "Valid " &amp; .Description &amp; " provided and name and address of signatory verified")
        End If
      End With
    End If
  Next

  ' =========================================
  ' 6. NAME and ADDRESS of signatory verified
  ' =========================================
  ' E.g. A current employer or previous employer within the last 2 years
  '      Land Titles Office Records
  For Each s In New ISList(Section6List)
    If finBL.IdentificationTypes.Exists(s) Then
      With finBL.IdentificationTypes(s)
        If GetValidIdentificationItem(s) IsNot Nothing Then
          decisionOutcome.Items.AddRuleTrue("6." &amp; s, CStr(IIf(Len(.DescriptionShort) = 0, .Description, .DescriptionShort)), "", 35, "Valid " &amp; .Description &amp; " provided and name and address of signatory verified")
        End If
      End With
    End If
  Next

  ' ==============================================
  ' 7. NAME, ADDRESS and TELEPHONE NUMBER verified
  ' ==============================================
  ' E.g. By reference to the latest telephone directory published by Telstra
  '      By telephone contact with the signatory on that telephone number
  For Each s In New ISList(Section7List)
    If finBL.IdentificationTypes.Exists(s) Then
      With finBL.IdentificationTypes(s)
        If GetValidIdentificationItem(s) IsNot Nothing Then
          decisionOutcome.Items.AddRuleTrue("7." &amp; s, CStr(IIf(Len(.DescriptionShort) = 0, .Description, .DescriptionShort)), "", 25, "Valid " &amp; .Description &amp; " provided and name, address and telephone number of signatory verified")
        End If
      End With
    End If
  Next

  ' =====================================================================
  ' 8. NAME of signatory verified from any other secondary identification
  ' =====================================================================
  ' E.g. Marriage certificate
  '      Credit card
  '      Medicare card
  For Each s In New ISList(Section8List)
    If finBL.IdentificationTypes.Exists(s) Then
      With finBL.IdentificationTypes(s)
        If GetValidIdentificationItem(s) IsNot Nothing Then
          decisionOutcome.Items.AddRuleTrue("8." &amp; s, CStr(IIf(Len(.DescriptionShort) = 0, .Description, .DescriptionShort)), "", 25, "Valid " &amp; .Description &amp; " provided and name of signatory verified")
        End If
      End With
    End If
  Next

  ' =========================================
  ' 9. NAME and ADDRESS of signatory verified
  ' =========================================
  ' E.g. Electoral role
  '      Name and address verified by landlord
  For Each s In New ISList(Section9List)
    If finBL.IdentificationTypes.Exists(s) Then
      With finBL.IdentificationTypes(s)
        If GetValidIdentificationItem(s) IsNot Nothing Then
          decisionOutcome.Items.AddRuleTrue("9." &amp; s, CStr(IIf(Len(.DescriptionShort) = 0, .Description, .DescriptionShort)), "", 25, "Valid " &amp; .Description &amp; " provided and name and address of signatory verified")
        End If
      End With
    End If
  Next

  ' ================================================
  ' 10. NAME and DATE OF BIRTH of signatory verified
  ' ================================================
  ' E.g. School records from within the last 10 years
  '      Trade association records
  For Each s In New ISList(Section10List)
    If finBL.IdentificationTypes.Exists(s) Then
      With finBL.IdentificationTypes(s)
        If GetValidIdentificationItem(s) IsNot Nothing Then
          decisionOutcome.Items.AddRuleTrue("10." &amp; s, CStr(IIf(Len(.DescriptionShort) = 0, .Description, .DescriptionShort)), "", 25, "Valid " &amp; .Description &amp; " provided and name and date of birth of signatory verified")
        End If
      End With
    End If
  Next

End Function

Private Function GetValidIdentificationItem(ByVal identificationTypeId As String, _
                                   Optional ByVal maxAgePeriod As String = "") As finClientIdentificationItem

  Dim ClientIdentificationItem As finClientIdentificationItem
  Dim Found As Boolean

  For Each ClientIdentificationItem In Client.IdentificationItems
    With ClientIdentificationItem
      If StrComp(identificationTypeId, .IdentificationTypeId, CompareMethod.Text) = 0 Then
        If .IsCurrent Then
          ' Current
          Found = True
        ElseIf Len(maxAgePeriod) = 0 Then
          Found = False
        ElseIf .DateExpiry = Nothing Then
          ' Historic (no idea when it expired so cannot use)
        Else
          If finBL.Utilities.DateCycleGetTermEndDate(maxAgePeriod, .DateExpiry) &gt;= Now.Date Then
            ' Expired within the allowable time limit
            Found = True
          Else
            ' Expired
            Found = False
          End If
        End If

        ' Verfied or Approved (as required)?
        If Found Then
          If mIgnoreApproval Then
            Return ClientIdentificationItem
          Else
            Select Case finBL.Settings.ClientIdentificationVerificationOption
              Case isefinVerificationOption.ApprovalOnly : If .IsApproved Then Return ClientIdentificationItem
              Case isefinVerificationOption.None : Return ClientIdentificationItem
              Case isefinVerificationOption.VerificationAndApproval : If .IsApproved Then Return ClientIdentificationItem
            End Select
        End If
        End If
      End If
    End With
  Next

  Return Nothing

End Function</Code><DecisionCardId>ID.100PT</DecisionCardId><DecisionCardBasis>Script</DecisionCardBasis><DecisionOutcomeSummaryScriptId /><DecisionSource>Client</DecisionSource><Description>Sample Australian 100 Point Check</Description><FailMessage>Failed 100 point check.</FailMessage><Language>VisualBasic</Language><Notes>This sample is based upon a sub-set of the Australian 100 Point Check Form (201).</Notes><PassMessage>Passed 100 point check.</PassMessage><PassScore>100</PassScore><PermissionKeyExecute /><ReferMessage>Too close to call. Please make a manual decision.</ReferMessage><ReferScore>80</ReferScore><TimeoutSeconds>60</TimeoutSeconds></finDecisionCard>