Deciding which type of form to open in Microflow

7
Is there a way in a microflow to tell what platform a user is viewing the application in. So for instance if they are viewing the application using the mobile forms then we should open the form in the mobile browser. Otherwise we will have to create duplicate microflows for many of the functionality.
asked
1 answers
5

A microflow does not know if it's called from a mobile client, web client, another microflow or some java action.

Basically you should try to detach your user interface functionality from your business logic. So a microflow handling some logic would not also deal with opening forms, but gets called by both the mobile and web microflow. This means you'd only have to recreate very small parts of flows. This is a very common design pattern called Model-View-Controller (a very brief summary can be found at http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller)

answered