Fake Data

Content Type: Module
Categories: Import/Export

Overview

Need to mock data in your app and tired of modeling out a lot of the random attributes using microflows? This module helps you create fake data, using Java Actions. This module is easy to extend with the JavaFaker library that is included. See Documentation for more information.

Documentation

Support Studio GitHub release GitHub issues

Fake Data Module for Mendix

Icon

Want to generate fake data in Mendix? The Fake Data Module for Mendix does this for you. It uses the popular Faker library.

screenshot

Java Actions

Dates

  • GenerateDateBetween - generate a date between two dates

Numbers

  • GenerateDecimalBetween - generate a decimal between two numbers
  • GenerateNumberBetween - generate an integer/long between two numbers
  • GenerateNumberDigits - generate an long number with an X amount of digits

Objects

The following Entities can be created:

  • App
  • Artist
  • Cat
  • Commerce
  • Name

Please have a look at the Domain Model in the module for all attributes that are set.

Strings

  • GenerateFakeString - generate a string from a predefined list of types, like hashes, quotes
  • GenerateQuote - generate a string that holds a quote from one of the predefined movies/characters
  • GenerateRandomColorHex - generate a color in HEX format
  • GenerateRandomRegexString - generate a string based on a Regex. More information can be found here: https://github.com/mifmif/Generex
  • GenerateRandomString - generate a string based on a mask. This mask will replace any ? with a letter and any # with a number.

Libraries used

  • Apache Commons Lang
    • Version 3.7
    • License: Apache 2.0
    • link
  • SnakeYAML
    • Version 1.30
    • License: Apache 2.0
    • link
  • JavaFaker
    • Version 1.0.2
    • License: Apache 2.0
    • link

Adding new Java Actions

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

License

Apache 2

Releases

Version: 2.0.0
Framework Version: 9.0.5
Release Notes: - Upgrade to MX 9 (9.0.5) - Update libraries
Version: 1.4.0
Framework Version: 8.0.0
Release Notes: - Add UUID generator
Version: 1.3.1
Framework Version: 8.0.0
Release Notes: - Fix issue where random data wasn't all random (numbers)
Version: 1.3.0
Framework Version: 8.0.0
Release Notes: - Updated documentation, create overview - Minor text-changes to exposed actions - Added **GenerateNumberDigits** & **GenerateRandomStringFromFaker**
Version: 1.2.0
Framework Version: 8.0.0
Release Notes: - Refactor small changes in Java Actions - Add Tree Data structure for example TreeTable/TreeView projects - Add microflows for Tree Data, including comments