Package net.pricefx.formulaengine.scripting.inputbuilder


package net.pricefx.formulaengine.scripting.inputbuilder
Provides InputBuilderFactory as a convenient way to create Inputs.

See the Input Builders Knowledge Base article.

Example:

def nameInput = api.inputBuilderFactory()
        .createTextUserEntry("Name")
        .buildContextParameter()

        def colorInpput = api.inputBuilderFactory
                .createOptionsEntry("Color")
                .setLabel("Pick Color")
                .addOption("red")
                .addOption("yellow")
                .addOption("green")
                .setLabels(["red": "Red",
                            "yellow": "Yellow",
                            "green": "Green",
                            ])
                .buildContextParameter()