HelperUtils

Content Type: Module
Categories: Utility

Overview

Here you can find various Java codes that will handle different repetitive utilities in Mendix that currently do not exist.

Documentation

Description

Helper Utils is a multifunctional module for Mendix designed to provide a set of reusable Java actions for common development tasks.It includes utilities for list operations, enum conversions, string handling, and entity inheritance filtering.

 

Typical usage scenario

This module is useful for developers who need to perform common tasks in Mendix in an efficient and effective way.Typical scenarios include:

  • Converting between Enums and Lists.

  • Retrieving objects from lists by index or size.

  • Splitting strings using regular expressions.

  • Filtering object lists by sub-meta types in inheritance structures.

  • Checking whether an object belongs to a specific sub-meta type.

 

Features and limitations

Features

  • Conversion from Enum to List and vice versa.

  • Function to obtain the size of a list.

  • Function to retrieve an object from a list by index.

  • Function to split by regular expressions.

  • Filter List By Meta Object – filters a mixed object list (base entity + specializations) by the specified meta type.

  • IsSubMetaObject? – checks if an object’s concrete meta type matches the specified sub-meta type.

Limitations

  • Limited handling of custom or complex data types.

  • Filtering actions only make sense when the base entity has specializations; without them, sub-meta checks will always resolve to the base type.

Dependencies [optional]

  • Mendix 10.0.0

Installation [optional]

Installation from the Marketplace

 

Configuration [optional]

There are no additional steps for the configuration of this module.

 

Known bugs [optional]

To date, there are no known bugs.

 

 

 

 

 

Releases

Version: 1.1.0
Framework Version: 10.0.0
Release Notes: New Features Filter List By Meta Object Java action that filters a mixed list of objects (base entity + specializations) by the specified meta object type. Inputs: ObjectList (List of objects) IncludeSubMeta (String) – meta object type to include ExcludeSubMeta (String, optional) – meta object type to exclude Output: filtered list containing only the objects of the included sub-meta type. Use case: Retrieve only Module.Project objects or only Module.BS_Project objects from a general Project list. IsSubMetaObject? Java action that checks if an object’s concrete meta type matches the provided SubMetaName. Inputs: ObjectInspect (Object) – the object to check SubMetaName (String) – meta object name to compare against Output: true if the object’s meta name equals the provided string; otherwise false. Use case: Distinguish between Module.Project and Module.BS_Project objects even when both come from the base entity list. Why these actions? Mendix automatically includes child objects when retrieving a generalized entity (e.g., Project retrieves both Project and BS_Project). These actions solve the limitation by enabling: Exact filtering of object lists by sub-meta type. Exact meta-name checks on individual objects. This makes it easier to work with inheritance-heavy domain models without cluttered microflows or performance-heavy workarounds.
Version: 1.0.0
Framework Version: 10.0.0
Release Notes: - Enum to list. - String to enum. - Get list size. - Get object from list by index - List builder string - Split by regex