MX microflow could be as strong as JAVA if the Polymorphism mechanism implemented in our studio pro and runtime - Mendix Forum

MX microflow could be as strong as JAVA if the Polymorphism mechanism implemented in our studio pro and runtime

0

MX microflow could be as strong as JAVA if the "Polymorphism" mechanism implemented in our studio pro and runtime.

 

Similar to the spring framework's IOC or DI features, the creation of different beans results in different behaviors.

For example, Order.placeOrder() API, which is usually called a PromotionStrategy.Calculate()  to deal with promotion.

 

Then, by means of the IOC, DiscountPromotionstrategy and BuyandGetFreePromotionstrategy, they two Calculate () would be different.Such flexibility is a must in the Java world. The same capability should be available for mendix's microstreams.

 

Therefore, I suggest that microflow should create a new activity called abstract or virtual Acton. Other microflows can then "implement" it.

asked
0 answers