Functions
  • 16 Feb 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Functions

  • Dark
    Light
  • PDF

Functions may be used in next logics: Condition, Copy task, Call Process, API Call, Set Parameter.

Node parameters reading - returns value of counter of tasks in the node

Parameters values - returns value of task parameter from specified process

Time and date - conversion and formatting of date/time

Math - return result of math actions (addition, subtraction, multiplication and division) of constants and/or parameters

$.random(N) - returns a random number depending on the specified N. Can be used, for example, for Set Parameter nodes to easily generate random numbers without adding a code for it. Where:

$.random(0) - always returns 0;
$.random(N), N>1 - returns a positive random number;
$.random(N), N<0 - returns a negative random number.

N is larger than int64

If the N value is larger than int64, the int64 is used by default as the function argument for processing.

$.sha1_hex(content) - returns sha1 in hex from constant or task parameter if it is specified in {{parameter_name}} format

$.base64_encode(content) - convert constant or task parameter in base64 format, if it is specified in {{parameter_name}} format

content - constant or {{parameter_name}}