Lisitng & Editing User Defined Appresource Functions

Tags:

Updated:

3 minute read

End Users will be listed with the Functions that they have created in the UDF Listing window. Every functions listed will be editable for users to modify changes and configurations to the existing functions.

This document will enable you to work with the Listing structure for the users to edit existing User Defined Appresource Functions.

Functions Listing

1) Navigate to the designer page and click on the Functions Icon in the Header Panel.

2) The UDF Listing Window Opens. Click on the EXPAND (+) button beside the FUNCTIONS text.

UDFlisting1

3) You will be listed with all the functions created, for that ProcessFlow.

UDFlisting

4) Clicking over individual listed function, will allow you to view the Function Name and Function Description in EDIT mode. Users can any time alter and modify the Name and its Description.

UDFListing3

4) You will have Context Menus beside each listed functions that will allow you to Modify Code & DELETE the existing functions.

UDFlisting2

5) The following options will be listed in the Context menu of each existing functions.

  • Modify Code - This lets you modify the function code written in the code editor of the function.
  • Delete - This lets you delete the function permanently. However, you will be unable to delete, if the defined function is in use.

Functions - EDIT:

To Edit the existing functions, you need to navigate to the UDF Listing Window. Follow the steps given below to edit the existing functions:

1) Navigate to the UDF Listing Window. All your created functions will be listed below.

2) Click over the individual functions to view the function information on your RIGHT in EDIT View.

3) You will be able to view the following details of the functions:

  • Function Name - Will display the name of the function.
  • Function Description - Will display the description of the function.
  • Function Return Type - Will display the return type of the function used in the code.

4) You can anytime edit the function information Function Name & Function Description.

UDFedit2

5) You can SAVE the function informations directly. Also, you can navigate to the Code Editor page, if required to modify the same.

UDFedit3

Following the above steps, you successfully Edit and modify the Function Informations. Along with editing the function details, you will be able to debug the function code in the code editor as well.

Note:

  • You need to Redeploy your Processflow to reflect changes, if already deployed to your environment with previous configurations.

Function - Modify Code:

1) Navigate to the UDF Listing Window.

2) Click on the Context Menus available beside each of the existing function.

3) Select the Modify Code option available in the Context Menu.

UDFdebug

4) The Code Editor panel opens on the Right Side of the window. You can anytime Update and Modify the code within the code editor, whenever required.

UDFdebug1

5) You need to Validate the code to view its validation. Click on the VALIDATE & SAVE button.

Validation Status: Successful

a) If your function code validation is successful, you get its success message.

b) Your function gets SAVED immediately after the successful validation.

Validation Status: Failed

a) If your function code validation has failed, you’ll be notified with the errors and error position within the function code.

UDFdebug5

b) Clicking on the errors, will navigate you to individual error positions. Click on DEBUG button.

UDFdebug6

c) You will be navigated to the Code Editor tab, to debug all the listed errors. The Code Editor Window will be highlighted with the areas in RED where the modifications is required.

UDFdebug7

d) Click on the VALIDATE & SAVE button once debugged.

Following the above process, you can successfully debug or modify the function code.

Note:

  • You need to Redeploy your Processflow to reflect the new modifications, if already deployed to your environment with previous configurations.

Function - DELETE

1) Navigate to the UDF (User Defined Functions) Listing Window.

2) Click on the Context Menus available beside each of the existing function to find the DELETE option.

udfdelete1

3) Clicking on the DELETE option, you’ll get confirmation message for the deletion process.

udfdelete2

4) Clicking on the YES will successfully delete the function.

Note: You cannot delete the function if its already in use. You need to remove the function from its area of usage to proceed with the delete process.

Following the above process, you can successfully EDIT, Modify and DELETE functions from UDF Listing.

Comments