Math Module

Content Type: Module
Categories: Import/Export

Overview

Do you feel the need to do more complex calculations in Mendix, but see a lack in capabilities in your Microflows? No worries, the Math Module is here to help you out. This uses the excellent mXparser libary to extend your workflows with more complex calculations. See documentation & demo for more info

Documentation

Demo urlhttps://mathenginetestapp-sandbox.mxapps.io/

Apache License Support Studio GitHub release GitHub issues

Math Module for Mendix

Icon

Do you feel the need to do more complex calculations in Mendix, but see a lack in capabilities in your Microflows? No worries, the Math Module is here to help you out. This uses the excellent mXparser libary to extend your workflows with more complex calculations.

See a demo in action HERE!

I am looking for skilled Mendix+Java developers to help me make this even greater. The current set of Java actions are very flexible, but we can make more complex and dedicated actions available in the future. Feel free to contact me on Gitthub or through my Mendix Developer profile

screenshot screenshot

Java Actions

Expressions

  • SimpleExpression - calculate a simple expression that uses a formula you define as a String
  • ComplexExpression - calculate a more complex expression that uses Arguments

Function

  • RecursiveFunction - Do you need to calculate f(10) for f(n)=f(n-2)+f(n-1)? A recursive function might help you out

Decimals

  • MoveDecimalPoint - Move a decimal point in a Decimal

Conversion

  • ConvertIntToBaseString - Do you need to represent an Integer (base10) into another form, for example Octal (base8) or Hex (base16)?

Validation

  • ValidateComplexExpression - If you are saving a complex expression, for example for later use, you might want to validate this beforehand. Also, over association you can find the used arguments for this expression.

Syntax

The expressions and functions you write can use a whole range of built-in functions and constants. These can be found at https://github.com/mariuszgromada/MathParser.org-mXparser#built-in-tokens

Libraries used

  • mXparser library
    • Version 4.4.2
    • License: Simplified BSD - Mariusz Gromada
    • link

Adding new Java Actions

You can create new Java Actions using the mXparser library. See API docs.

License

Apache 2

Releases

Version: 2.0.0
Framework Version: 9.0.5
Release Notes: - Update module to MX 9.0.5 - Update mXparser to 4.4.2
Version: 1.1.0
Framework Version: 8.0.0
Release Notes: - Update Domain model for clear distinction between results, but overlapping attributes for validation - Added ComplexExpression validation, for when you might want to save your expressions
Version: 1.0.0
Framework Version: 8.0.0
Release Notes: - First release