package
0.0.0-20200821104852-f76c6d292a95
Repository: https://github.com/jvanderl/flogo-components.git
Documentation: pkg.go.dev

# README

Check IBAN

This activity provides your flogo application the ability to check an International Bank Account Number.

Installation

flogo install github.com/jvanderl/flogo-components/activity/checkiban

Link for flogo web:

https://github.com/jvanderl/flogo-components/activity/checkiban

Schema

Inputs and Outputs:

{
  "input":[
    {
      "name": "iban",
      "type": "string"
    }
  ],
  "output": [
    {
      "name": "result",
      "type": "string"
    },
    {
      "name": "printcode",
      "type": "string"
    },
    {
      "name": "code",
      "type": "string"
    },
    {
      "name": "countrycode",
      "type": "string"
    },
    {
      "name": "checkdigits",
      "type": "string"
    },
    {
      "name": "bban",
      "type": "string"
    },
    {
      "name": "ibanobj",
      "type": "object"
    }        
  ]
}

Inputs

InputDescription
ibanInternational Bank Account Number

Output Descriptions

OutputDescription
resultValidation result, OK when valid IBAN
printcodePrintable version of the IBAN code, when valid
codeIBAN code returned when valid
countrycodeThe country code section of a valid IBAN
checkdigitsThe check digits section of a valid IBAN
bbanThe Basic Bank Account Number section of a valid IBAN
ibanobjThe complete returned object of a valid IBAN

Configuration Examples

Simple

Configure a task in flow to check an IBAN number, then map the printcode returned to 'message' in a log task":

{  
  "activityType":"checkiban",
  "id":3,
  "name":"checkiban",
  "type":1,
  "attributes":[
    {
        "name":"iban",
        "value":"NL40ABNA0517552264",
        "type":"string"
    }
  ]
},
{  
  "activityType":"tibco-log",
  "id":4,
  "name":"Logger",
  "type":1,
  "attributes":[  
     {  
        "name":"message",
        "value":"Message sent to eFTL Server",
        "type":"string"
     },
     {  
        "name":"flowInfo",
        "value":"true",
        "type":"boolean"
     },
     {  
        "name":"addToFlow",
        "value":"true",
        "type":"boolean"
     }
  ],
  "inputMappings": [
    { "type": 1, "value": "{A3.printcode}", "mapTo": "message" }
  ]         
}