ABOUT THE WEBINAR
You may already be familiar with the power and flexibility of using microflows to express application logic visually. With the introduction of nanoflows, Mendix extends the power of visually modeled applications to the client-side by running actions directly on mobile devices or in the browser. Nanoflows make it easy to create more dynamic and responsive apps by providing a way to model complex validation or calculations with instant feedback, build interactive and dynamic users interfaces on top of intelligent navigation, and create smooth, state-to-state UI transitions. Because nanoflows run on the client, they don’t require an Internet connection and are perfect for use in offline apps too! While nanoflows are great for offline and hybrid apps, in this webinar we'll be showcasing use cases for nanoflows in online applications.
During this webinar we will cover the following topics:
- When to use nanoflows
- Working examples of nanoflows
- Performance benefits of nanoflows
QUESTIONS & ANSWERS
What happens if an error occurs after an update/change in a nanoflow?
Nanoflows do not roll back in the same way as microflows, this is something that you need to be aware of when building your app. With nanoflows, each step is directly executed at the client, so if an error occurs during a nanoflow it will not roll back previous changes. This is different from microflows where logic execution is contained within a transaction and any error during the flow, by default, will roll back all changes during that transaction.
Do you mix microflows and nanoflows in your workflow?
It depends on the use case. When you are carrying out a more complicated task, like retrieving and manipulating data, then I would recommend microflows. You can use nanoflows for simpler tasks like viewing data in a list view. Nanoflows are great for when you need to do a quick validation. So you could end up with a mix of microflows and nanoflows, depending on whether you need your app to rely on servers and to then provide a rapid feedback in the client application.
How did you create the pop-up message in the nanoflow? This is normally not possible in a nanoflow unless you navigate to an actual page.
Yes, you cannot use the show message action in a nanoflow in the way you can in microflows. From a nanoflow, you can implement a pop-up window using a show page action.
Can I show a user information message pop-up using a nanoflow?
You can use templates already in Mendix which let you mix messages and data (for example, user information). See the previous question for how to create a pop-up message in nanoflows.
What happens when you retrieve from database in a nanoflow when you are not in offline mode?
Retrieving data from a database is like a microflow, but a nanoflows executes every step as a separate request instead of using a single transaction. This can lead to a lot of server traffic, so it is best practice to use microflows to retrieve from the database.
View more webinars on-demand at developers.mendix.com.