@Target(value={FIELD,PARAMETER}) @Retention(value=RUNTIME) @Documented @Inherited public @interface Parameter
Flow designer user interface rendering will use this annotation to present the user interface controls to provide
the input for the configured parameters/fields. This annotation can be used in classes which represent processors
where they are annotated with Processor
annotation of connectors where they are either annotated with
IngressConnector
or EgressConnector
annotations or connector operations where they are annotated
with ConnectorOperation
annotation, to provide the information on its input fields
Modifier and Type | Required Element and Description |
---|---|
String |
displayName
The display name to be used for the input control label in the flow designer
|
Modifier and Type | Optional Element and Description |
---|---|
String |
category
Category to which this parameter belongs to for the belonging processor, connector or the connector operation.
|
String |
defaultValue
The default value assigned for this parameter if it is not provided by the user.
|
String |
dependentPropertyName
This field and
hideOnDependentPropValue() properties can be used toggle the availability of a
particular parameter in the property pane based on the user specified value of another parameter. |
String |
description
Description of the parameter to be used for rendering of the input controls.
|
String[] |
hideOnDependentPropValue
This property is used in conjunction with
dependentPropertyName() to hide the parameter in the
property pane for the specified value(s) of the dependentPropertyName() |
InputType |
inputType
Type of the form input to be used for the input controls
|
boolean |
isOptional
Specifies whether this parameter is optional or mandatory to the operations of the processor, connector or the
connector operation that this parameter is associated with
|
MetaType |
metaType
The meta-type of the parameter which is used to identify certain meta-information related to the configuration
parameters of the processors, connectors or connector operations.
|
int |
order
Order in which the parameters annotated with this annotation are rendered in the input form of the processor,
connectors or connector operations
|
String |
placeHolder
The place holder to be used in the input controls if applicable.
|
String[] |
possibleValues
Possible values that can be used for the parameter, which is generally used in conjunction with the
inputType() specified as InputType.SELECT to specify the values rendered in the select control |
String |
propertyName
Name of the property key to be used if the value of the parameter should be externalized.
|
String[] |
showOnDependentPropValue
This property is used in conjunction with
dependentPropertyName() to show the parameter in the
property pane for the specified value(s) of the dependentPropertyName() |
String |
validator
Input validator as a regular expression for this parameter input validation.
|
public abstract String displayName
public abstract int order
public abstract InputType inputType
public abstract String description
public abstract String placeHolder
public abstract String[] possibleValues
inputType()
specified as InputType.SELECT
to specify the values rendered in the select controlpublic abstract String validator
public abstract boolean isOptional
public abstract String category
public abstract String defaultValue
placeHolder()
would not be useful.public abstract MetaType metaType
MetaType.NONE
public abstract String propertyName
public abstract String dependentPropertyName
hideOnDependentPropValue()
properties can be used toggle the availability of a
particular parameter in the property pane based on the user specified value of another parameter.
As an example suppose there are two InputType.SELECT
parameters. One to select the Country and other one to
select the State. But the State drop down list should be shown only when USA is selected from the Country
list. In this case for the State parameter, you can specify the actual variable name of the Country parameter
as dependentPropertyName and specify String array with "USA" for showOnDependentPropValue.
Similarly if you want to hide a parameter for a specific property value, specify that under the hideOnDependentPropValue.
You cannot use both hideOnDependentPropValue()
and showOnDependentPropValue()
at the
same time for a given parameter. You have to use the most appropriate one.
NOTE: This dynamic toggling the visibility of parameters only works when the dependent property is of type
InputType.SELECT
, InputType.CHECK_BOX
public abstract String[] hideOnDependentPropValue
dependentPropertyName()
to hide the parameter in the
property pane for the specified value(s) of the dependentPropertyName()
dependentPropertyName()
where the parameter
should be hidden from the property pane.public abstract String[] showOnDependentPropValue
dependentPropertyName()
to show the parameter in the
property pane for the specified value(s) of the dependentPropertyName()
dependentPropertyName()
where the parameter
should be shown on the property pane.Copyright © 2016–2019 AdroitLogic. All rights reserved.