Model SDK Examples

23
As many of you may or may not have heard, Mendix has recently released the Model SDK & Platform SDK: https://developers.mendix.com/sdk/. The Mendix Model API provides you with a whole new way to interact with your app. Through this API you get full access to all aspects of your app model, enabling you to both read from and write to it. I have been using the API/SDK for sometime now and produced several useful scripts, which I wanted to share. One of my most recent developments is a script that helps you visualise all the routes possible for a user role through your application using the projects navigation. https://github.com/simo101/sdkuservisualisation It will produce a d3.js graph, which allows you to drill down through the application to see what a user can reach using the navigation in the application. I would be really interested to find out how others in the community are using the Model SDK. Or if anyone has some good ideas that you would like to see built using the SDK.
asked
5 answers
5

I am developing script that autolayout microflows in your project.

https://github.com/vietduc1441/mfautolayout

answered
2

Hi Simon,

I am trying to install it using the readme. md. The npm install goes well, things are happening in the node js command prompt. But when trying tsd install nothing happens, not in command prompt and not in node js. I don't know how to open the folder in the node.js. What am I missing here?

answered
2

Jasper Van Der Hoek created a sdk script to visualise dependencies of microflows:

https://github.com/jaspervanderhoek/SDK-mf-hierarchy

https://github.com/jaspervanderhoek/MFHierarchyNetwork

answered
2

Here is another great example of a model SDK script which may help you with documenting entities, microflows and pages.

https://github.com/simo101/MendixCountEntities

answered
2

I built another useful script which I thought I would share.

http://github.com/simo101/MendixSecurityAudit

This script allows you to generate a excel file with all the user roles mapped with their module roles. It will also tell you which entities, microflows and pages these roles have access to.

It's a really great way to do a quick security audit of your apps.

 

Enjoy :)

answered