Function Meta Data

Overview

Function Metadata is now automatically generated during function creation and exposed through a read-only listing interface. This change simplifies metadata management by removing manual create, update, and delete operations, allowing users to focus solely on defining functions while metadata is derived implicitly.


Key Concepts

1. Automatic Metadata Generation

Function metadata is generated at the time of function creation, provided the function name follows a predefined naming convention.

2. Naming Convention

To enable metadata generation, the function name must use the following prefix:

citta_metadata_*.* 

Only functions following this pattern will appear in the Function Metadata listing.

3. Read-Only Metadata

Once generated, function metadata is non-editable from the UI. The listing page is strictly for viewing purposes.

4. Metadata Fields

For each eligible function, the following information is displayed:

  • Function Name

  • Function Parameters

  • Description

  • Return Type


Steps to create function meta data

Step 1: Create a Function

Create a new function and ensure the name starts with the required prefix.

Example:

Step 2: Run Generate App Extension Schema Diff

In application, where you created the function run Generate App Extension Schema Diff option once. This will reflect the changes in the function meta data listing screen.

Navigate to the Function Metadata Listing page.

You will see the newly created function listed along with its metadata details.


Examples

Example 1: Valid Function (Metadata Generated)

Function Name

Result

  • Metadata is generated automatically

  • Function appears in the metadata listing

  • Parameters, description, and return type are visible


Example 2: Invalid Function (Metadata Not Generated)

Function Name

Result

  • Metadata is not generated

  • Function does not appear in the metadata listing

Last updated