Uses of Class
net.pricefx.server.dto.calculation.ContextParameter
Package
Description
Provides API related to scripting, including interface
PublicGroovyAPI
, that represents what can be reached in the Groovy element syntax as api
.Provides
InputBuilderFactory
as a convenient way to create Inputs.Defines set of data transfer object (DTO) classes related to Calculations.
-
Uses of ContextParameter in net.pricefx.formulaengine.scripting
Modifier and TypeMethodDescriptionPublicGroovyAPI.getParameter
(String parameterName) Retrieves an already generated (in the previous logic code) input parameter in the form of aContextParameter
object. -
Uses of ContextParameter in net.pricefx.formulaengine.scripting.inputbuilder
Modifier and TypeMethodDescriptionAbstractInputBuilder.buildContextParameter()
Builds and returns the input field definition object.Modifier and TypeMethodDescriptionCollapseInputBuilder.addInput
(ContextParameter contextParameter) Add parameter to the ContextParameters list Example:RowInputBuilder.addInput
(ContextParameter contextParameter) Adds a new input for InputBuilder. -
Uses of ContextParameter in net.pricefx.server.dto.calculation
Modifier and TypeMethodDescriptionContextParameter.copyWithoutValue()
ConfiguratorEntry.createParameter
(InputType type, String name) Creates a parameter and adds it to the list of inputs.ConfiguratorEntry.createParameter
(InputType type, String name, Date targetDate) Creates a parameter and adds it to the list of inputs.ConfiguratorEntry.getFirstInput()
Gets the first context parameter.ConfiguratorEntry.getInputByName
(String name) GetContextParameter
by provided nameContextParameter.setAddUnknownValues
(Boolean addUnknownValues) ContextParameter.setAlwaysEditable
(Boolean alwaysEditable) ContextParameter.setConfigParameter
(String paramName, Object value) Adds an additional configuration parameter/option to the input – aparameterConfig
property.ContextParameter.setFilters
(Filter... filters) ContextParameter.setFormattingOption
(String optionName, Object value) Sets (adds or updates) a formatting option (how the input field is displayed) within the formattingOptions map.Sets the label of the input parameter to the given text.ContextParameter.setLabelTranslations
(String labelTranslations) ContextParameter.setLabelTranslationsFromMap
(Map<String, String> translations) ContextParameter.setParameterConfig
(Map<String, Object> parameterConfig) Sets the behavior of the input field.ContextParameter.setParameterGroup
(String parameterGroup) Allows you to create collapsible sections that organize inputs in the UI.ContextParameter.setReadOnly
(Boolean readOnly) ContextParameter.setRequired
(Boolean required) Sets, if it's mandatory for the input parameter to have a value.ConfiguratorEntry.setTrackedValue
(String name, Object value) Sets theContextParameter
value, enriched by the groovy logic value tracking feature.ContextParameter.setTypedId
(String typedId) Set initial/default value of the input parameter.ContextParameter.setValueHint
(String hint) ContextParameter.setValueOptions
(String[] valueOptions) Sets list of options used in the dropdown input field.ContextParameter.setValueOptions
(List<String> valueOptions) Modifier and TypeMethodDescriptionConfiguratorEntry.getInputs()
Gets the list of context parameters.ContextParameter.getInputs()
Modifier and TypeMethodDescriptionvoid
ContextParameter.addInput
(ContextParameter contextParameter) Adds a nested input.ConfiguratorEntry.addParameter
(ContextParameter input) Deprecated.ConfiguratorEntry.createParameter
(ContextParameter input) Creates a parameter and adds it to the list of inputs.ConfiguratorEntry.createParameter
(ContextParameter input, Closure<?> defaultValue) Creates a parameter and adds it to the list of inputs.void
ContextParameter.setIfNotNull
(ContextParameter original) Copy attributes from the originalContextParameter
apart from:name
,lookupTableId
,type
,inputs
andvalueHint
void
ContextParameter.update
(ContextParameter cp) Modifier and TypeMethodDescriptionvoid
ConfiguratorEntry.setInputs
(List<ContextParameter> inputs) Sets the list of context parameters.