Math Module for Mendix
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
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)
forf(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