Meta model

Content Type: Module
Categories:

Overview

Get meta-information of your application model and runtime server. This will give developers more flexibility and more control. No tables are added to the database.

Documentation

Demo url

Description

Get meta-information of your application model and runtime server. This will give developers more flexibility and more control. No tables are added to the database.

Typical usage scenario

  • Use the “Meta model” microflow actions via the “Studio Pro” toolbox.
  • Useful when:
    • you want to use the module and/or microflow name in your log message.
    • your user needs to choose an entity/attribute/microflow in your app configuration at runtime.
    • you want the correct microflow name in a String value based on a given microflow selected in the model/project.
    • you want the default language object set in the model/project or the current language used in the microflow user context.
    • you want the current application URL of the runtime server.
    • you want the version of the model/project or the version of the runtime.
    • you want the translated caption for your enumeration value.

Features and limitations

The following Java actions are included.

App/Runtime

  • Get application root url (String)
    • Returns the application root URL of this application.
  • Get default language (Language)
    • Returns the default language of the project.
  • Get model version (String)
    • Returns the model version of the project.
  • Get named user count (Long)
    • Returns the number of named users.
  • Get runtime version (String)
    • Returns the runtime version of this application.
  • Get XAS id (String)
    • Returns the id of this server instance.
  • Is in development (Boolean)
    • Returns true if the environment is a development environment.

Domain Model

  • Get all entity names. (List)
  • Get associations of entity. (List)
  • Get attributes of entity. (List)

Enumeration

  • Get enum caption (String)
    • Get enumeration caption by key with optional language code.

Microflow

  • Get fully qualified name from microflow (String)
    • This action uses a given microflow from the model and returns the fully qualified name as a String value. If the microflow name changes in the model it will be reflected to the return value at runtime. Anything that relies on this value will continue to function, where you used to go wrong if using a static String value.
  • Get language (Language)
    • Get the language from the current microflow context.
  • Get microflow name. (String)
    • Get microflow name from the microflow where it is used in. The fully qualified name is returned so it will contain both module- and microflow- name.
  • Get microflow names. (List)
  • Get module name. (String)
    • Get module name from the microflow where it is used in.

Releases

Version: 1.1.0
Framework Version: 9.0.5
Release Notes: - Mendix 9 compatibility - New GetApplicationRootUrl Java action - New GetDefaultLanguage Java action - New GetModelVersion Java action - New GetNamedUserCount Java action - New GetRuntimeVersion Java action - New GetXASId Java action - New IsInDevelopment Java action - New GetEnumCaption Java action - New GetFullyQualifiedNameFromMicroflow Java action - New GetLanguage Java action
Version: 1.0.0
Framework Version: 7.23.4
Release Notes: Changes: - New appstore image. - "GetModuleName" activity now only returns "String" value to reduce memory usage. - "GetMicroflowName" activity now only returns "String" value to reduce memory usage.
Version: 1.0.0-beta
Framework Version: 7.23.4
Release Notes: Get meta-information of your application without using the MxModelReflection module. This will give developers more flexibility and more control over the information shown in the user interface. Also it doesn’t add any tables to the database and no refreshing is needed.