Interface FunctionDefinition
public interface FunctionDefinition
A function declaration.
Instead of implementing this interface directly, we recommend creating instances of this interface with the builder API.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the asset type.getCode()
Returns the unique code.com.onwbp.base.text.UserMessage
Returns the description.Returns the function execution.default List<InputDefinition>
Returns the list of input definitions.com.onwbp.base.text.UserMessage
getLabel()
Returns the label.Returns the list of output definitions.default FunctionValidation
Returns the function validation.default boolean
Returnstrue
if alert is supported for this function.default boolean
Returnstrue
if filter is supported for this function.default boolean
Returnstrue
if linked record is supported for this function.Returns the builder for a function at the dataset level.onDataspace
(String code) Returns the builder for a function at the dataspace level.Returns the builder for a function at the field level.Returns the builder for a function at the table level.onWorkflow
(String code) Returns the builder for a function at the workflow level.
-
Method Details
-
onDataspace
Returns the builder for a function at the dataspace level.- Parameters:
code
- The unique code representing the function.
-
onDataset
Returns the builder for a function at the dataset level.- Parameters:
code
- The unique code representing the function.
-
onTable
Returns the builder for a function at the table level.- Parameters:
code
- The unique code representing the function.
-
onField
Returns the builder for a function at the field level.- Parameters:
code
- The unique code representing the function.
-
onWorkflow
Returns the builder for a function at the workflow level.- Parameters:
code
- The unique code representing the function.
-
getCode
String getCode()Returns the unique code.Must not be
null
or empty. -
getLabel
com.onwbp.base.text.UserMessage getLabel()Returns the label. -
getDescription
com.onwbp.base.text.UserMessage getDescription()Returns the description. -
getAssetType
AssetType getAssetType()Returns the asset type.Must not be
null
. -
getInputDefinitions
Returns the list of input definitions.Returns an empty list by default.
-
getOutputDefinitions
List<OutputDefinition> getOutputDefinitions()Returns the list of output definitions.Must not be empty.
-
isFilterSupported
default boolean isFilterSupported()Returnstrue
if filter is supported for this function.Returns
false
by default. -
isLinkedRecordSupported
default boolean isLinkedRecordSupported()Returnstrue
if linked record is supported for this function.Returns
false
by default. -
isAlertSupported
default boolean isAlertSupported()Returnstrue
if alert is supported for this function.Returns
true
by default. -
getValidation
Returns the function validation.Returns
null
by default. -
getExecution
FunctionExecution getExecution()Returns the function execution.Must not be
null
.
-