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
  • Entity Cache
  • Generators
    • NL IBAN generator
  • GetFileType
  • ListManipulators
  • Microflow
    • ExecuteUnverifiedMicroflowInOwnTransaction
    • ExecuteUnverifiedMicroflowSynchronized
    • ExecuteUnverifiedMicroflowWithGUIDparam
    • GetCurrentMicroflow
    • GetCurrentMicroflowStack
  • Misc
    • CreateAccountIfNotExists
    • GetIPaddress
    • OpenURL_WithOptions
    • WebsocketListener
    • GenerateUUID
  • Native
    • Biometric
    • HapticFeedback
    • OTP client
    • GetApplicationURL
    • OpenSettings
    • PlaySoundAmbient
    • Reload
  • ORM
    • GetObjectWithId
    • RefreshByEntity
  • ProcessQueue
    • GetOrCreateProcess (default excluded)
    • GetOrCreateQueueConfig (default excluded)
  • RateLimit
  • Resources
    • Environment
  • StringUtilities
    • CreatePasswordDigest
    • GetStringFromRegex
    • ParseStringToEnum
    • SHA1Encrypt
    • ParseStringToHex
    • ParseHexToString
    • ParseHexToFile
  • Transactions
    • EndSavePointForTransaction
    • GetCurrentSessionID
    • MakeSavePointForTransaction
  • Enitycache
  • Ratelimit

 

 

 

 

 

 

 

 

 

Releases

Version: 10.5.0
Framework Version: 10.24.0
Release Notes:

Added java action to encrypt/decrypt attributes.

Added default log message for datadog.

Version: 10.4.1
Framework Version: 10.24.0
Release Notes:

Updated to include input parameter checks and zero-division prevention.

Addressed Omnext alerts and refactored deprecated methods.

Converted conversion datagrid to datagrid2

Version: 10.3.0
Framework Version: 10.24.0
Release Notes:

Update tot 10.24.0

Updated descriptions of java actions

Version: 10.2.1
Framework Version: 10.18.7
Release Notes: - Microflow Timer widget was still part of the package and MT_RefreshQueueActionStatus. This has been corrected. - Added IBAN Generator for NL Bank accounts. Let us know if you want generators for more Countries or Banks!
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.6.0
Framework Version: 9.24.31
Release Notes:

Updated to include input parameter checks and zero-division prevention. Also addressed Omnext alerts and refactored deprecated methods.

Version: 9.5.1
Framework Version: 9.24.31
Release Notes:

Updated to include input parameter checks and zero-division prevention. Also addressed Omnext alerts and refactored deprecated methods.

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.