...
Expand | |||||
---|---|---|---|---|---|
| |||||
❶ the processor can be one of the quoteProcessor, cProcessor, etc., which references subclasses of the CalculableLineItemCollectionBuilder |
Reading input value in a line item logic
...
Code Block | ||
---|---|---|
| ||
final datePattern = 'yyyy-MM-dd' def date = api.parseDate(datePattern, input.date) |
...
Expand | |||||
---|---|---|---|---|---|
| |||||
❶ the processor can be one of the quoteProcessor, cProcessor, etc., which references subclasses of the CalculableLineItemCollectionBuilder |
Reading input value in a line item logic
...
Code Block | ||
---|---|---|
| ||
def matcher = input.time =~ /(?<hour>[0-9]{2}):(?<minute>[0-9]{2})/ matcher.matches() // ❶ def hour = matcher.group('hour') as Integer def minute = matcher.group('minute') as Integer |
...
Expand | |||||
---|---|---|---|---|---|
| |||||
❶ the processor can be one of the quoteProcessor, cProcessor, etc., which references subclasses of the CalculableLineItemCollectionBuilder |
Reading input value in a line item logic
...
Code Block | ||
---|---|---|
| ||
final dateTimePattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" def dateTime = api.parseDateTime(dateTimePattern, input.dateTime) |
...
Expand | |||||
---|---|---|---|---|---|
| |||||
❶ the processor can be one of the quoteProcessor, cProcessor, etc., which references subclasses of the CalculableLineItemCollectionBuilder |
Reading input value in a line-item logic
...
Code Block | ||
---|---|---|
| ||
final datePattern = 'yyyy-MM-dd' def dateFrom = api.parseDate(datePattern, input.dateRange[0]) def dateTo = api.parseDate(datePattern, input.dateRange[1]) |
...