...
Code Block |
---|
def endCustomerList = [ "customer1", "customer2", "customer3" ] quoteProcessor.addOrUpdateInput("ROOT", [ "name" : "endCustomer", "label" : "End Customer", "type" : InputType.OPTION, "valueOptions" : endCustomerList, ]) |
If you want to add labels, you need to assign a map with key "labels" to a field "parameterConfig". The "labels" will contain your map with key-value pairs, where key is the name of the option and value is the label.
Code Block |
---|
def mapWithLabels = [ "customer1" : "First Customer", "customer2" : "Second Customer", "customer3" : "Third Customer" ] quoteProcessor.addOrUpdateInput("ROOT", [ "name" : "endCustomer", "label" : "End Customer", "type" : InputType.OPTION, "valueOptions" : endCustomerList, "parameterConfig" : [ "labels": mapWithLabels ] ]) |
...