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

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
  • Encryption module


Configuration

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


Available Items:

  • Calculations
    1. HaversineCheck
    2. WorkdaysBetween
  • ClassManipulators
    1. DeleteClassOnElement
    2. HasClassOnElement
    3. SetClassOnElement
    4. SetPlaceholderOnTextbox
    5. ToggleClassOnElement
    6. ToggleClassOnParentElement
  • Conversion helpers
  • DocumentManipulation
    1. CropImage
    2. FileFromResourceToFileDocument
    3. MakeFileEmpty
    1. ResizeImage
    1. URLContentToFileDocument
  • Entity Cache
  • Generators
    1. NL IBAN generator
  • GetFileType
  • ListManipulators
  • Logging
  • Microflow
    1. ExecuteUnverifiedMicroflowInOwnTransaction
    2. ExecuteUnverifiedMicroflowSynchronized
    3. ExecuteUnverifiedMicroflowWithGUIDparam
    4. GetCurrentMicroflow
    5. GetCurrentMicroflowStack
  • Misc
    1. CreateAccountIfNotExists
    2. GetIPaddress
    3. OpenURL_WithOptions
    4. WebsocketListener
    5. GenerateUUID
  • Native
    1. Biometric
    2. HapticFeedback
    3. OTP client
    4. GetApplicationURL
    5. OpenSettings
    6. PlaySoundAmbient
    7. Reload
  • ORM
    1. AssertAttributesAndValues
    2. GetEntityFromGUID
    3. GetObjectWithDecryptedAttributes
    4. GetObjectWithId
    5. RefreshByEntity
    6. SetEncryptedAttributesForObject
    7. SetValueForAttribute
  • ProcessQueue
    1. GetOrCreateProcess (default excluded)
    2. GetOrCreateQueueConfig (default excluded)
  • RateLimit
  • Resources
    1. Environment
    2. LogNode
  • StringUtilities
    1. CreatePasswordDigest
    2. DecryptString_AESwithoutSalt
    3. EncryptString_AESwithoutSalt
    4. GetEnumCaptionForLanguage
    5. GetStringFromRegex
    6. ParseHexToFile
    7. ParseHexToString
    8. ParseStringToEnum
    9. ParseStringToHex
    10. SHA1Encrypt
    11. StringReplaceSimple
    12. StringSearchReplaceWithoutRegex
  • Transactions
    1. EndSavePointForTransaction
    2. GetCurrentSessionID
    3. MakeSavePointForTransaction
  • Enitycache
  • Ratelimit










Releases

Version: 10.6.0
Framework Version: 10.24.0
Release Notes:

Java action GetEnumCaptionForLanguage has been adjusted to keep the ENUM values in cashe.

Baseline updated for 10.5.0 in order to correct the Java dependencies versions.

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.7.0
Framework Version: 9.24.31
Release Notes:

Java action GetEnumCaptionForLanguage has been adjusted to keep the ENUM values in cashe.

Java action MergeOverlay has been removed.

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.