Interface StepProperty<T>
- Type Parameters:
T
- The type of value this step property use
- All Known Subinterfaces:
BooleanStepProperty
,ColumnChooserStepProperty
,CustomChooserStepProperty
,InputLabelStepProperty
,InputTextStepProperty<T>
,NumberStepProperty
,StringStepProperty
public interface StepProperty<T>
Defines the property of a step configured in a workflow.
A step property is linked from UI (Data Studio) to
UserOption
through 2 methods here:
-
onValueChanged
: UI ->UserOption
-
getValue
: UI <-UserOption
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptioncom.experian.datastudio.sdk.api.step.configuration.StepPropertyConfig
Creates aStepPropertyConfig
to be used to render the step UI.Gets the default value.getDefaultValue
(DefaultValueContext context) Gets the default value.getId()
Gets the step property id.getValue
(UICallbackContext context) Gets the value from theUserOption
, viacontext.getUserOption()
, to be used in rendering UI.default boolean
Specifies whether this property has default value defined or not.default boolean
isDisabled
(UICallbackContext context) Specifies whether this property is disabled or not.boolean
Specifies whether this property is required to defined or not.onValueChanged
(UserOption oldOption, T value) Updates the option by creating a newUserOption
based on the previous state and a new value from UI.default boolean
Indicates whether to rebuild the index when the property value has changed Default value of rebuildIndex is true - Assume any change to the property value will affect the index by default Allows for 'opting out' of re-indexing for performance reasonsvalidateState
(UICallbackContext context) Validates the state of this property (e,g: the value) and return error messages if invalid.
-
Method Details
-
getId
String getId()Gets the step property id.- Returns:
- the id.
-
onValueChanged
Updates the option by creating a newUserOption
based on the previous state and a new value from UI.- Parameters:
oldOption
- the oldUserOption
value
- the new value- Returns:
- the new
UserOption
-
getValue
Gets the value from theUserOption
, viacontext.getUserOption()
, to be used in rendering UI.- Parameters:
context
- the UI context from where theUserOption
could be retrieved.- Returns:
- The value.
-
getDefaultValue
Gets the default value.- Returns:
- the value.
-
getDefaultValue
Gets the default value.- Parameters:
context
- the context from where theUserOption
could be retrieved.- Returns:
- The value.
- Since:
- 2.4.0
-
hasDefaultValue
default boolean hasDefaultValue()Specifies whether this property has default value defined or not.- Returns:
true
if required, otherwisefalse
.
-
createConfig
com.experian.datastudio.sdk.api.step.configuration.StepPropertyConfig createConfig()Creates aStepPropertyConfig
to be used to render the step UI.- Returns:
- the config.
-
isRequired
boolean isRequired()Specifies whether this property is required to defined or not.- Returns:
true
if required, otherwisefalse
.
-
validateState
Validates the state of this property (e,g: the value) and return error messages if invalid.- Parameters:
context
- the UI context from where theUserOption
could be retrieved.- Returns:
- List of error messages if this step property is invalid.
-
isDisabled
Specifies whether this property is disabled or not.- Parameters:
context
- the UI context from where theUserOption
could be retrieved.- Returns:
true
if disabled, otherwisefalse
.
-
shouldRebuildIndex
default boolean shouldRebuildIndex()Indicates whether to rebuild the index when the property value has changed Default value of rebuildIndex is true - Assume any change to the property value will affect the index by default Allows for 'opting out' of re-indexing for performance reasons- Returns:
true
if index should be rebuilt, otherwisefalse
.
-