Search

User Defined functions

Articles

User Defined functions are the functions which are created during the time of development. Jiffy has the capability to allow the users to create custom Python expressions and use them in the UI nodes steps.

A Newly created user defined functions will be added in the drop down list next to the user-defined lable in Actions pane as shown below.

Image description

Creating An User Defined Function

User defined function are created under the functions pane as shown below.

Image description

Upon clicking on the ‘+’ icon, new pop window will appear to create a user defined functions as shown below.

Image description

Developer has to provide the following attributes to create a user defined functions.

  • Name - Name of the function
  • Function Type - Type of the function (For User defined function it should be other function)
  • Description - Description about the functions
  • Type - ———Need to explain–

Refer the below sample user defined function called “Func1” created.

Image description

Newly created function will be get listed in the functions pane as shown below.

Image description

Post creation of function, developer has to edit the newly created function by clicking on the edit icon to write code into it based on the requirement. Following window will appear to write a code to the newly created function.

Image description

while coding the function , developer can create new variables for the function using the “+” icon provided next to the variable keyword. Refer the sample variable created as shown in the below. By defaut during variable creation Out variable toggle button will be on in order to return the value.

Image description

Once after coding the function, developer can save the function using the save button. Created function will be listed in the Actions pane as shown below. Developer can choose the function and assign value to it.

Image description

Image description

Did you find what you were looking for?