MENDIX ADVANCED QUESTIONS AND
DETAILED CORRECT ANSWERS
AGRADE 2024
Which of the following is a valid Mendix token? -correct answer✔✔CurrentUser You are creating a microflow where you have a Change Object activity. The change is dependent on a lot of checks and decisions (but, whichever choice, the change always happens). What is the best way to model this microflow? -correct answer✔✔Use Decisions, but place them in a sub-microflow to determine what the new value should be, and then use the return value of that sub-microflow in the Change Object activity.You need to determine what day of the week it is. What is the easiest way to do this? - correct answer✔✔Use the formatDateTime function to achieve this.What is the best approach to retrieve an object over association, while also checking whether the association exists? -correct answer✔✔Use a decision to first check whether the association exists. If it does, retrieve the associated object.Which of the following statements about lists is true? -correct answer✔✔A list can have, among others, the following origins: a retrieve action, the creation of a new list, and the result of an input parameter.You have to determine how many customers are in the database and find that there are at least a couple thousand. How do you handle this? -correct answer✔✔Retrieve all the customers at once and use an aggregate list activity to count them. Because this is an optimized query on the database, it will be very light and safe to use, even for big lists.What does the List Operation tail do? -correct answer✔✔It grabs all elements in the list except the first element. 1 / 2
When would you typically use a List Operation? -correct answer✔✔- To avoid complex XPaths.
- When you are working with objects that only exist in memory.
- When creating report data to view in chart widgets.
- You make sure that there are no commits in the sub-microflow, since it is not good for
- If the sub-microflow uses a return value, you check whether it is really needed.
- To reuse the same bit of logic in multiple microflows.
- To increase readability of large microflows.
- / 2
You've created a microflow that contains a loop. This loop uses the same logic as a microflow you have already built, so you decide to call this microflow as a sub-microflow inside the loop so that you can reuse the functionality. What do you check before doing this? -correct answer✔✔- If there are retrieve activities in the sub-microflow for data you already have available in the main microflow, check whether it can be passed along as an input parameter instead.
your application to commit inside of a loop.
Your application contains a microflow that calls three sub-microflows. Each of these sub-microflows does a retrieve from the database on the same entity. Should you change this? -correct answer✔✔Yes, you should do the retrieve in the main microflow and then pass it along to the three sub-microflows as an input parameter.Which statement about rules is true? -correct answer✔✔A rule can only be called from within a decision.What is a good reason to use a sub microflow? -correct answer✔✔- To use it as a 'get or create' microflow.
To which of the following errors types does the built-in consistency checker in the Modeler alert you? -correct answer✔✔Technical issues in your model.