Emixa Commons

Content Type: Module
Categories: Utility

Overview

This module is used by several other modules of Emixa and contains some handy functions around e-mail, Crop image Resize Image, transactions, execution microflows, hashing utils, string utils, enum parser, javascript actions to set classes and manipulate selected listview items, and a nice after-startup conversion helper We have helpers and functions for the following categories: Calculations ClassManipulators Conversion DocumentManipulation Microflow ORM ProcessQueue StringUtilities Transactions, haptic feedback for native, detecting Biometric type, Entity caching, Ratelimiter and much more

- Update 10: removed mergeoverlay (outdated libraries), added entity cache and ratelimiter.

Documentation

Demo urlhttps://www.emixa.com

Description

This module is used by several other modules of Emixa and contains some handy functions.

 

Typical usage scenario

  • In combination with other appronto modules
  • For some handy actions as listed above

 

Dependencies

 

  • MxModelReflection module(required for Microflow actions)
  • CommunityCommons module

 

Configuration

  • Define your constants in your user configuration. Settings->Configurations

 

Available Items:

  • Calculations
    • HaversineCheck
    • WorkdaysBetween
  • ClassManipulators
    • DeleteClassOnElement
    • HasClassOnElement
    • SetClassOnElement
    • SetPlaceholderOnTextbox
    • ToggleClassOnElement
    • ToggleClassOnParentElement
  • Conversion helpers
  • DocumentManipulation
    • CropImage
    • ImageResize
    • FileFromResourceToFileDocument
    • MakeFileEmpty
    • URLContentToFileDocument
  • Microflow
    • ExecuteMicroflowInOwnTransaction
    • ExecuteMicroflowSynchronized
    • ExecuteMicroflowWithGUIDparam
    • GetCurrentMicroflow
    • GetCurrentMicroflowStack
  • Misc
    • CreateAccountIfNotExists
    • GenerateUUID
  • Native
    • Biometric
    • HapticFeedback
    • OTP client
  • ORM
    • GetObjectWithId
    • RefreshByEntity
  • ProcessQueue
    • GetOrCreateProcess (default excluded)
    • GetOrCreateQueueConfig (default excluded)
  • Resources
    • Environment
  • StringUtilities
    • CreatePasswordDigest
    • GetStringFromRegex
    • ParseStringToEnum
    • SHA1Encrypt
    • ParseStringToHex
    • ParseHexToString
    • ParseHexToFile
  • Transactions
    • EndSavePointForTransaction
    • GetCurrentSessionID
    • MakeSavePointForTransaction
  • Enitycache
  • Ratelimit

Releases

Version: 10.2.0
Framework Version: 10.18.7
Release Notes: New: Hex/String converters & hex → FileDocument We’ve added utilities to convert between plain text and hexadecimal, plus a direct import from hex into a Mendix FileDocument. What’s included • ParseStringToHex – Convert a String to its hexadecimal representation (UTF-8). • ParseHexToString – Convert a hexadecimal string back to text. Validates input (even length, hex chars) and accepts optional 0x and whitespace separators. • ParseHexToFile – Convert a hexadecimal string to a FileDocument. If you don’t supply a filename/extension, the action auto-detects the file type (e.g., DOCX/XLSX/PPTX, PDF, JPG/PNG/GIF/BMP/TIFF, MP3/WAV, MP4/AVI, ZIP/7z/RAR/GZIP/BZIP2/XZ/TAR, etc.) using magic-byte signatures. Why this matters • Useful when upstream systems send payloads as hex (e.g., DOCX or PDFs) and you want to store them directly as files rather than as text. • Safer defaults: input validation prevents malformed hex from being decoded. Java actions added • ParseHexToFile • ParseHexToString • ParseStringToHex Dependency • commons-codec 1.19.0
Version: 10.1.0
Framework Version: 10.18.7
Release Notes: We’ve updated the java files to resolve some CVE’s in the tika libraries: - commons-logging-1.2 -> commons-logging-1.3.5 - slf4j-api-2.0.9 -> slf4j-api-2.0.17 - tika-core-2.9.0 -> tika-core-3.2.2 - tika-parsers-standard-package-2.9.0 -> tika-parsers-standard-package-3.2.2 Added a tika dependency: - commons-io-2.2.0 - vorbis-java-tika - vorbis-java-core Breaking Changes: - The MicroflowTimer widget is depricated and been replaced with the Events widget. (Part of MonitorQueueTaskSnippet_Timer Snippet) - Mendix 1018.7 or higher is required.
Version: 10.0.0
Framework Version: 10.18.1
Release Notes: Removed mergeoverlay (outdated libraries), added entity cache and ratelimiter.
Version: 9.5.0
Framework Version: 9.24.31
Release Notes: We’ve updated the java files to resolve some CVE’s in the tika libraries: - commons-logging-1.2 -> commons-logging-1.3.5 - slf4j-api-2.0.9 -> slf4j-api-2.0.17 - tika-core-2.9.0 -> tika-core-3.2.2 - tika-parsers-standard-package-2.9.0 -> tika-parsers-standard-package-3.2.2 Added a tika dependency: - commons-io-2.2.0 Breaking Changes: - The MicroflowTimer widget is depricated and been replaced with the Events widget. (Part of MonitorQueueTaskSnippet_Timer Snippet) - Mendix 9.24.31 or higher is required.
Version: 9.4.3
Framework Version: 9.18.0
Release Notes: Improved memory management with Resizing Images Add new URL Content to FileDocument action
Version: 9.4.2
Framework Version: 9.18.0
Release Notes: The new GetCurrentMicroflowStack Java action allows you to get a string containing the current Microflow stack. This could be used, for example, in a debug log to determine via which path a subflow was called. The GenerateUUID logic can be used to generate a Version4 UUID.
Version: 9.4.1
Framework Version: 9.18.0
Release Notes: The Image Resize Java action allows you to resize an Image object by specifying a new width and/or height. You can choose to maintain the image's aspect ratio by providing either the width or height, with automatic adjustment of the other dimension. Additionally, you have full control over the quality of the resized image to balance between file size and visual fidelity.
Version: 9.4.0
Framework Version: 9.18.0
Release Notes: Update of IText Core Java library from 5.5.13.2 to 5.5.13.4 to fix CVE-2021-43113
Version: 9.3.0
Framework Version: 9.18.0
Release Notes: Added GetEnumCaptionForLanguage java action to get translated value for enum key. Changed the default Environment constant value to empty instead of DEV to prevent wrong settings on live environments.
Version: 9.2.0
Framework Version: 9.18.0
Release Notes: Adjusted the GetFileType action to prevent warnings about files not fully being read on S3