Parameter | Description | Type |
---|---|---|
excelDocument |
input file |
|
Result is a java.util.List
.
[excelData:
[
[customer: "john", "date of birth": "Tue Mar 20 00:00:00 CET 1956", income: 4561.0],
[customer: "jack", "date of birth": "Mon Sep 06 00:00:00 CET 1948", income: 8652.0],
[customer: "helen", "date of birth": "Sun Dec 06 00:00:00 CET 1970", income: 6587.0]
]
]
excelResult.each { excelLine ->
def customer = excelLine.customer
def dateOfBirth = excelLine.'date of birth'(1)
def income = excelLine.income
// add your business logic
}
-
Be aware of time zone issue since it’s a
java.util.Date