WidgetSchemeService

Hierarchy

  • WidgetSchemeService

Methods

get

  • get(namespace: string, code: string): Promise<WidgetScheme | undefined>
  • Retrieve widget information by its code and namespace.

    Parameters

    • namespace: string
    • code: string

    Returns Promise<WidgetScheme | undefined>

    An object with widget information.

    const widgetScheme =  await System.scheme.widget.get('my_namespace', 'my_widget');
    

list

  • list(namespace: string): Promise<readonly BaseWidgetScheme[]>
  • Get the list of widgets in the namespace.

    Parameters

    • namespace: string

    Returns Promise<readonly BaseWidgetScheme[]>

    An array of objects with widget information.

    const widgets =  await System.scheme.widget.list('my_namespace');
    

listProcessForms

  • listProcessForms(namespace: string, code: string): Promise<readonly BaseWidgetScheme[]>
  • Get the list of business process forms by its namespace and code.

    Parameters

    • namespace: string
    • code: string

    Returns Promise<readonly BaseWidgetScheme[]>

    An array of objects containing information about business process forms.

    const processForms = await System.scheme.widget.listProcessForms ('my_namespace', 'my_process');
    const appProcessForms = await  System.scheme.widget.listProcessForms('my_namespace.my_app', 'my_process');