Microflow patterns

8
Although I would not like to see the modeller explode with exotic, never used but oh so handy features, ideas keep coming. After quite a few Mendix models and microflows many patterns seems to come back from time to time: Factory, Singleton (A settings object found? no: create one yes: return it). Would it be an idea to have a library of patterns you can insert in a microflow? The only thing you have to change is the entity or other parameter.
asked
3 answers
0

I see that there has not been any update for the possible Design Patterns within Mendix. Currently we have a requirement that there should be just one instance of an Entity across the whole application. Is there a way to ensure that one and only one instance of an entity is created and accessed across the application? There unintended creation of object should be prevented.

answered
0

Great idea! See the Mendix Design Patterns blog of Andrej Gadjuk and have a look at https://mendixdesignpatter-sandbox.mxapps.io for the app MendixDesignPatterns, where we have examples of a strategy and a visitor.

answered
-2

Chris, If you feel you have a reusable service microflow, you should export it and save it. Then just re-import it for the next modeler design you need it for. The problem with producing a library like that is many people model their applications out in their own way.

answered