Building an Event app using Microflows
Quiz yourself by thinking what should be in
each of the black spaces below before clicking
on it to display the answer.
Help!
|
|
||||
---|---|---|---|---|---|
show | It allows you to continuously keep improving the app to better suit the user’s needs.
Provide information such as user role, page name and screen resolution
🗑
|
||||
show | Make a snippet.
🗑
|
||||
show | are reusable interface parts that can be used on pages and layouts. Changes you make to a snippet will be applied in all places where this snippet is used. -> DRY
🗑
|
||||
Where can you find the FeedbackWidget? | show 🗑
|
||||
Where can you find the App Id? | show 🗑
|
||||
Where can we find the Account entity (User Object)? | show 🗑
|
||||
Where can we find the Fullname and the Email Attribute? | show 🗑
|
||||
show | ‘Check security’ option set to Yes. in the App security
🗑
|
||||
show | A Mendix app can only run on a licensed environment when the App Security level is set to ‘Production’. Without this security level set correctly, the app will not deploy to non-local environments
🗑
|
||||
show | 1. Go to the App Security and change the security level from ‘Off’ to ‘Production’.
2. Go to the user roles tab. Create a new user role named ’ and let this generate a corresponding module role in the MyFirstModule module.
🗑
|
||||
When changing the app to Production and add a new user role / mole role, what read Access errors do we get? | show 🗑
|
||||
show | No access to entity ‘Administration.Account’ for user role ‘EventManager’ (with no roles defined in module ‘Administration’)’.
🗑
|
||||
show | you can right click on the error and select ‘Show details…’.
This will show you the navigation path of how the user with that user role will be able to navigate to a page where access is not set-up correctly.
🗑
|
||||
To set-up your security properly, you need to perform a few steps. what is the 1 step? | show 🗑
|
||||
We now see that there is a different error which states: At least one allowed role must be selected if the page is used from navigation or a button. | show 🗑
|
||||
show | Open up the security for the DataWidgets module
Go to the entity access tab and click New.
Select the DataGrid entity and click OK.
Select the User module role and set all attributes to read.
🗑
|
||||
show | Right-click on an entity and select the option Generate Overview Pages…. This function will generate the Overview page and NewEdit page for the selected entity.
🗑
|
||||
show | because Mendix will otherwise create a menu snippet for all these pages and add it to the specific pages
🗑
|
||||
How can you make sure that the user can access those pages? | show 🗑
|
||||
show | Because you allow a user role to view pages with information but you haven't configured the entity security yet.
🗑
|
||||
Hoe kan je dit probleem oplossen? | show 🗑
|
||||
show | The microflow should retrieve a single EventInformation object (set the Range to first), then check if anything is found and if not create a new instance.
🗑
|
||||
Hoe kan je er makkelijk voor zorgen dat het mogelijk is om accounts aan te maken? | show 🗑
|
||||
show | Use the Feedback widget.
🗑
|
||||
Where is page access configured?Is it possible limit an entity to only one object? | show 🗑
|
||||
show | Range <= 1000
🗑
|
||||
How can you easily manage accounts for your app? | show 🗑
|
||||
Is it possible limit an entity to only one object? | show 🗑
|
||||
show | use sub-microflows
🗑
|
||||
How do sub-microflows help you? | show 🗑
|
||||
You want to add validation to the program information the event manager will enter. For this reason, you will add a... | show 🗑
|
||||
show | want to give our own notifications and not the default error messages. If you have a different scenario where you are not using your own error messages you can leave this tick box ticked.
🗑
|
||||
Hoe kan je een sub microflow maken: | show 🗑
|
||||
Wanneer kan je een foutmelding krijgen als je probeert om een sub-microflow te extracten? | show 🗑
|
||||
show | Create a maximum of 2 – 3 levels of sub-microflows
🗑
|
||||
Keep track of the functionality you built | show 🗑
|
||||
show | -Properties of Microflows or domain model
-Properties of a entity
🗑
|
||||
show | The level of documentation in the annotations is important because you want the information to say something relevant but not be too long, to the point that it has to be updated with every minor change
🗑
|
||||
show | ➢ The rule is more limited in its capabilities due to the nature of its existence.
➢ Microflows can be used for the same purpose and additionally can delete, commit, call integration operations, have client interaction and much more.
🗑
|
||||
Waarom gebruik je rules vooral? | show 🗑
|
||||
show | • Cast object
• Retrieve
• Aggregate list
• Change list
• Create list
• List operation
• Java action call
• Microflow call
• Change variable
• Create variable
• Log message
🗑
|
||||
show | it will no longer be evaluated by Mendix Studio Pro but you still can see everything in this document. The alternative is to delete a document, but you would no longer be able to see it.
🗑
|
||||
How can you exclude documents from a project? | show 🗑
|
||||
show | you can use the expression: trim($InputString) !=''
🗑
|
||||
Hoe kan je een regel toevoegen aan je project? | show 🗑
|
||||
show | a Boolean or Enumeration
🗑
|
||||
What is a limitation of a sub-microflow compared to a regular microflow? | show 🗑
|
||||
show | Better maintainability
🗑
|
||||
show | Annotations
🗑
|
||||
show | You have a smaller selection of activities.
🗑
|
||||
show | Exclude it from the project.
🗑
|
||||
Licenced environment | show 🗑
|
||||
show | Allows you to show pages and give access to users that are not logged in.
Think of a Webshop
🗑
|
||||
show | The setting to enable the anonymous user can be found in the App security under the tab Anonymous users within Mendix Studio Pro
🗑
|
||||
show | When you have enabled the anonymous user, it is neccessary to add a role-based home page for the Anonymous user role.
This changes the landing page, for every user going to the designated URL, from login page to the designed Anonymous page.
🗑
|
||||
show | Variables can exist as a single object, a list of objects, or a primitive (single) value.
🗑
|
||||
show | Object
A single instance of an entity, defined by an entity in the domain model
Create, change, delete
Purpose – store data
🗑
|
||||
show | A list of the objects of a specific entity
Create, change (set, add)
List functions
o Aggregate a list
o List operation
Purpose – do something with the list of objects
🗑
|
||||
show | Sum, average, count, minimum, maximum
🗑
|
||||
show | Union, intersect, subtract, contains, equals, sort, filter, find, head, tail
🗑
|
||||
show | Can be of different value types: Boolean, date and time, decimal, enumeration, integer/long, string
🗑
|
||||
Primitive Variables purpose | show 🗑
|
||||
show | in microflows are indicated with a dollar sign ($) and are followed by the name of the variable.
🗑
|
||||
show | As an input parameter
Can be retrieved via a Retrieve activity.
Used as an output value for a microflow (return value).
🗑
|
||||
show | is a special type of variable. A token is a system-generated value that can be used in microflows, for example in Exclusive Splits or XPath Constraints.
🗑
|
||||
Welke Tokens zijn er? | show 🗑
|
||||
show | For example, the current moment (accurate to the millisecond) can be identified using ‘[%CurrentDateTime%]’, and the current user ID can be accessed by using ‘[%CurrentUser%]’.
🗑
|
||||
show | ➢ in your microflows and rules.
🗑
|
||||
show | Split conditions
• Create and change object actions
• Create and change of variables
• Output of end events
• Arguments for parameters (Java Actions, sub-microflow calls, etc.)
🗑
|
||||
show | you can work with brackets to determine the priority of the calculations.
🗑
|
||||
show | In a situation where your DateTime input (or output) is in a format different than the one used by Mendix, you can use formatting and parsing.
🗑
|
||||
Formatting is transforming date into text, and parsing is converting text into date. | show 🗑
|
||||
Creating an Anonymous User Role | show 🗑
|
||||
show | we need a Loop to iterate over the found days. With each iteration, we will check the number of bought tickets for that day and compare that to the maximum number of users for a day.
🗑
|
||||
show | [id = ‘[%UserRole_Visitor%]’]
🗑
|
||||
show | Mendix Studio Pro has a built-in consistency checker that validates whether the application you are modeling contains any technical errors.
🗑
|
||||
Place Breakpoint | show 🗑
|
||||
show | Set up anonymous users.
🗑
|
||||
show | A system-generated value.
🗑
|
||||
In a microflow expression, “toUpperCase” is an example of what? | show 🗑
|
||||
show | $Customer
🗑
|
||||
You need to debug a microflow in production but don’t want to impact your users. How can you trigger debugging only when you personally are running the microflow? | show 🗑
|
||||
Scheduled Events | show 🗑
|
||||
Loops | show 🗑
|
||||
Iterator | show 🗑
|
||||
show | can be used to calculate aggregated values such as the maximum, minimum, sum, average, and total amount of objects over a list of objects.
🗑
|
||||
show | can also be used in combination with a retrieve. As you may know, when a retrieve to the database is done, a query is sent to the database.
🗑
|
||||
show | A retrieve from database followed by an aggregate list action will result in an optimized retrieve.
🗑
|
||||
Batches | show 🗑
|
||||
show | Create and enable a scheduled event.
🗑
|
||||
show | A break event
🗑
|
||||
show | Use an aggregate list function.
🗑
|
||||
What are batches used for? | show 🗑
|
||||
What is the list object in a loop called? | show 🗑
|
Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.
Normal Size Small Size show me how
Normal Size Small Size show me how
Created by:
Angeltje1992