Unleash the power of Mendix SDK part I

Hasan Baydoun
2 min readApr 15, 2024

--

It’s been over than 2 years now since the begin of my journey of working with Mendix and honestly I love the simplicity the Mendix give us with
the development of the applications but of course nothing comes without
a cost , and the cost I have seen in projects that have been for years developed using Mendix version 8 , is the lack of best practice approaches this has produced a huge amount of warnings.
Recently I have been working on improving the performance of our projects (that have been developed using Mendix 8) by reducing the warnings that show from Mendix studio pro modeler from Errors tab and
I have developed many tools using the power of typescript and Mendix SDK together and I’m proud to introduce my first accomplishment.

Erase the warning code CW094:

This warning is related to activities that retrieve data or create variables or even parameter’s objects but none of those have been used in the microflow and had forgotten there.

Impact of Not Used Such Activities in Microflows:
1-Performance Degradation.
2-Increased Complexity.
3-Waste of Resources.
4-Impact on Development and Maintenance Costs.

The new tool erase seamlessly this warning by tracking all and each microflow and do the next:

1-delete all activities that are retrieving data and never been used.
2-delete all activities that are creating variables and never been used.
3- delete all parameters objects that never been used.
4-track all activities in loops and nested loop also.
5-for loops if the deleted activity was in path of conditional flow and it was the last activity in the flow then delete the activity and place a continue event instead so no errors will produced.
6-disable return value for sub microflow that never been used.
7- when delete a not used parameter from microflow update parameters mapping from all sub microflows.
8- exclude all parameters that used in widgets from deletion process.

Input : warning list produced from Mendix modeler

Output : csv file presenting all processed microflow’s deleted activities and disabled return values for sub Microflows

This achievement is only a stepping stone in my ongoing journey of growth and discovery.

--

--