Fabric Built-in Functions

Fabric offers several Built-in functions which can be used for different types of data transformation. Built-in functions can be either connected to other Fabric objects in a map or invoked from another function by Java coding.
Built-in functions are grouped into different categories. The following table displays a list of categories and examples for each category.

Date

  • k2_breakDate – break the given date into year, month, day, etc.
  • k2_currentDate – return the current date in "yyyy/MM/dd" format.

FileSystem

  • k2_find_files – return the list of all files matching a regular expression in a specific path.

Math

Functions that perform various mathematical manipulations. For example:

  • k2_multiply – multiply two numbers and returns the result.
  • k2_round – round an input value to a specified precision.

String

Functions that perform manipulations on strings. For example:

  • k2_concat5 – concatenate up to 5 strings into 1 string using the provided delimiter.
  • k2_ltrim – strip whitespace (or other characters) from the beginning of a string.

Utilities

  • k2_IF – check a condition and set a value when True or False.

Previous

Fabric Built-in Functions

Fabric offers several Built-in functions which can be used for different types of data transformation. Built-in functions can be either connected to other Fabric objects in a map or invoked from another function by Java coding.
Built-in functions are grouped into different categories. The following table displays a list of categories and examples for each category.

Date

  • k2_breakDate – break the given date into year, month, day, etc.
  • k2_currentDate – return the current date in "yyyy/MM/dd" format.

FileSystem

  • k2_find_files – return the list of all files matching a regular expression in a specific path.

Math

Functions that perform various mathematical manipulations. For example:

  • k2_multiply – multiply two numbers and returns the result.
  • k2_round – round an input value to a specified precision.

String

Functions that perform manipulations on strings. For example:

  • k2_concat5 – concatenate up to 5 strings into 1 string using the provided delimiter.
  • k2_ltrim – strip whitespace (or other characters) from the beginning of a string.

Utilities

  • k2_IF – check a condition and set a value when True or False.

Previous