Miscellaneous

These are the models representing various static resources.

Enumerations

A typical application has several enum-types and is defined in one or more JSON files. Each enum is referred to by its name in the HTML templates as an attribute. For example, a 'select' element for account type can be specified by the following HTML code:

<select nm="accountType" enum-name="account-type"></select>
{
  "account-type" : [
    {
      "v" : "1",
      "n" : "Active"
    },
    {
      "v" : "2",
      "n" : "Suspended"
    },
    {
      "v" : "3",
      "n" : "Cancelled"
    }
  ]
}

Here is how front-end uses the specified enum:

  • An enum-name can be used with any other element such as 'span,' 'text,' 'radio.'
  • Displays the internal value of the attribute after converting it using the enum table.
  • The framework at runtime retrieves the definition of 'enum-name.'
  • Enum is used to render 'option' elements of the select.

Domain Metadata

It provides a easy way to integrate with external services like email, chat and phone. A generic JSON can also be stored and read using API, referred in the script. It has lots of other purposes including message templates and json configs. They are consumed by both frontend and backend. Domain metadata is comprised of files and templates.

Files

Files provides data dictionary capabilities with application and workspace level visibility. A sample of such file is shown below.

{
  "name" : "actionPanel",
  "type" : "system",
  "msgs" : [
    {
      "creator" : "__bot__",
      "content" : "What can I help you accomplish today?",
      "template" : "MainActionButtons",
      "delay" : 0.1,
      "requiresAction" : true
    }
  ]
}
Templates

Apache FreeMarker Templates can be specified for email, chat, SMS. The templates are made available to the entire application (and workspace). The template file can have any textual content. For example, a snippet of an html template is shown below.

...
Thank you for insuring with us. Your <strong>${PolicyTitle}</strong> documents are ready to be reviewed. You may manage your policy, view your paperwork, and perform billing functions.
...

Strings

The "Strings" perspective shows the string files used in the application. These string files are used for the internationalization of the application.