Interface FunctionDefinition
-
public interface FunctionDefinitionA function declaration.Instead of implementing this interface directly, we recommend creating instances of this interface with the builder API.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AssetTypegetAssetType()Returns the asset type.java.lang.StringgetCode()Returns the unique code.com.onwbp.base.text.UserMessagegetDescription()Returns the description.FunctionExecutiongetExecution()Returns the function execution.default java.util.List<InputDefinition>getInputDefinitions()Returns the list of input definitions.com.onwbp.base.text.UserMessagegetLabel()Returns the label.java.util.List<OutputDefinition>getOutputDefinitions()Returns the list of output definitions.default FunctionValidationgetValidation()Returns the function validation.default booleanisAlertSupported()Returnstrueif alert is supported for this function.default booleanisFilterSupported()Returnstrueif filter is supported for this function.default booleanisLinkedRecordSupported()Returnstrueif linked record is supported for this function.static FunctionDefinitionOnDatasetBuilderonDataset(java.lang.String code)Returns the builder for a function at the dataset level.static FunctionDefinitionOnDataspaceBuilderonDataspace(java.lang.String code)Returns the builder for a function at the dataspace level.static FunctionDefinitionOnFieldBuilderonField(java.lang.String code)Returns the builder for a function at the field level.static FunctionDefinitionOnTableBuilderonTable(java.lang.String code)Returns the builder for a function at the table level.static FunctionDefinitionOnWorkflowBuilderonWorkflow(java.lang.String code)Returns the builder for a function at the workflow level.
-
-
-
Method Detail
-
onDataspace
static FunctionDefinitionOnDataspaceBuilder onDataspace(java.lang.String code)
Returns the builder for a function at the dataspace level.- Parameters:
code- The unique code representing the function.
-
onDataset
static FunctionDefinitionOnDatasetBuilder onDataset(java.lang.String code)
Returns the builder for a function at the dataset level.- Parameters:
code- The unique code representing the function.
-
onTable
static FunctionDefinitionOnTableBuilder onTable(java.lang.String code)
Returns the builder for a function at the table level.- Parameters:
code- The unique code representing the function.
-
onField
static FunctionDefinitionOnFieldBuilder onField(java.lang.String code)
Returns the builder for a function at the field level.- Parameters:
code- The unique code representing the function.
-
onWorkflow
static FunctionDefinitionOnWorkflowBuilder onWorkflow(java.lang.String code)
Returns the builder for a function at the workflow level.- Parameters:
code- The unique code representing the function.
-
getCode
java.lang.String getCode()
Returns the unique code.Must not be
nullor 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
default java.util.List<InputDefinition> getInputDefinitions()
Returns the list of input definitions.Returns an empty list by default.
-
getOutputDefinitions
java.util.List<OutputDefinition> getOutputDefinitions()
Returns the list of output definitions.Must not be empty.
-
isFilterSupported
default boolean isFilterSupported()
Returnstrueif filter is supported for this function.Returns
falseby default.
-
isLinkedRecordSupported
default boolean isLinkedRecordSupported()
Returnstrueif linked record is supported for this function.Returns
falseby default.
-
isAlertSupported
default boolean isAlertSupported()
Returnstrueif alert is supported for this function.Returns
trueby default.
-
getValidation
default FunctionValidation getValidation()
Returns the function validation.Returns
nullby default.
-
getExecution
FunctionExecution getExecution()
Returns the function execution.Must not be
null.
-
-