Create microflows for a Mendix application based on existing ones.
Use it to automate the routine work, copy microflows to other entities or migrate other software logic to Mendix.
This project requires NodeJS (version 14 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.
$ npm -v
8.9.0
$ node -v
v16.14.0
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
BEFORE YOU INSTALL: please read the prerequisites
Get a Personal Access Token and an API username and password from Mendix. Place them in Environment Variables as described in the documentation. They should be named
- MENDIX_API_KEY
- MENIDX_API_USER
- MENDIX_TOKEN
Start with cloning this repo on your local machine:
$ git clone https://github.com/ChrisdeG/mendilangelo.git
$ cd mendilangelo
To install and set up the library, run:
$ npm install
compile the code
$ tsc
run the app
$ npm start
$ npm start
Select a project and module. Making a online working copy takes some time (10-30 seconds). The application will create a module named Mendilangelo in your project. For every entity in the domain model a folder with a set of microflows is created.
- {Entity}_FindOrCreate.
- {Entity}_DeleteAll.
- {Entity}_Save
- {Entity}_Validate
Open Studio Pro. Update you project and the module should appeared. It is marked in history as a SDK commit. Copy or move the ones you need to your module, but never use them in the Mendilangelo module. This module should be thrown away in the end.
This is meant for settings and other entities has have one instance or instance per user. Modify the filters and the input if required.
Convenience microflow for development functions. Never place this in Production environments. It deletes all data in batches.
This will call the validate and if validated commit the object and close the page.
Validates the attributes in an entity. Latest version of Mendix have this as an AI option in Studio Pro.
Start with cloning this repo on your local machine:
$ git clone https://github.com/ChrisDeG/Mendilangelo.git
$ cd PROJECT
If you have for example a set of microflows to import data from Excel sheets you can export them to a folder. Adapt the generated typescript to pass the entity, adapt Mendilangelo and let it generate it for all entities.
Run this command to export all microflows to typescript.
$ npm run export
This will generate a folder called GeneratedMicroflows. Copy the ones you need to the project folder and delete the rest. Deleting is important because the compiler will see the files as incorrect.
Look for entities in the file, replace them with the parameters.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Add your changes:
git add .
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
- Visual Studio Code
- Mendix Studio Pro
- Chris de Gelder - Initial work - Chris de Gelder
See also the list of contributors who participated in this project.
MIT License © Chris de Gelder