Activities define the actions that are executed in a microflow or a nanoflow.
There are different types of activity, and these are grouped together in the Studio Pro toolbox. All the activities are listed below, follow the links for more information.
Most activities can be used in both microflows and nanoflows. However, some can only be used in one of these types of flow, or the behavior may differ between microflows and nanoflows. Follow the links for more information.
2 Object Activities
|Cast object (microflows only)||In combination with an object type decision allows you to use the specialized members of the object. For more information on the specialized members of an object, see Entities.|
|Change object||Allows you to change the members of an object. This can be done with or without committing, and with or without events.|
|Commit object(s)||Allows you to commit changes to one or more objects.|
|Create object||Creates an object.|
|Delete object(s) (microflows only)||Deletes an object.|
|Retrieve||Gets one (or more) associated objects of another object. Furthermore, this activity can also get one or more objects directly from a database.|
|Rollback object||Rolls uncommitted changes back that were made to an object in the part of the microflow preceding the activity. Furthermore, it deletes objects that have been created but have never been committed.|
3 List Activities
List activities can be used to create and manipulate lists of objects.
|Aggregate list||Allows you to calculate aggregated values such as the maximum, minimum, sum, average, and total amount of objects over a list of objects.|
|Change list||Allows you to change the content of a list variable.|
|Create list||Creates a (empty) list variable.|
|List operation||Combines or compares two lists with objects of the same entity.|
4 Action Call Activities
Action call activities can be used to call another microflow or to call a Java action.
|Call Java action (only in microflows)||Calls a Java action. Arguments can be passed to the action and the result can be stored in a variable.|
|Microflow call||Calls a microflow. Arguments can be passed to the microflow and the result can be stored in a variable.|
5 Variable Activities
Variable activities can be used to create or change a variable within a microflow.
|Change variable||Allows you to changes the value of a variable.|
|Create variable||Allows you to creates a new variable.|
6 Client Activities
Client activities can be used to have the web client of your application perform an action, such as showing a different page or downloading a file.
|Call nanoflow (only in nanoflows)||Calls another nanoflow. Arguments can be passed to the nanoflow and the result can be stored in a variable.|
|Close page||Closes the page that was opened last by the user who called the microflow in which this activity is used.|
|Download file (only in microflows)||Can be used to enable the browser to download a specific file. The user who calls the microflow in which this activity is used gets a download pop-up window, or the file is shown directly in the browser.|
|Show home page (only in microflows)||Navigates to the home page for the current user.|
|Show message||Allows you to show a blocking or non-blocking message to the user that calls the microflow in which this activity is used.|
|Show page||Allows you to show a page to the user that calls the microflow in which this activity is used.|
|Synchronize to device (only in microflows)||Can be used to selectively synchronize one or more objects or lists to a device and store them in the offline database.|
|Synchronize (only in nanoflows)||Synchronizes data.|
|Validation feedback||Allows you to display a red text below a widget that displays an attribute or association.|
7 Integration Activities
Integration activities can be used to integrate with other systems, for example by calling a web service.
|Call REST service||Can be used to call a REST endpoint. You can use mappings to map results to entities or entities to requests. You can also use string templates and store the result in a string variable.|
|Call web service||Can be used to call one of the imported web services. The content of the request can be edited. Furthermore the response of the webservice can be mapped to entities, stored in a variable or be ignored.|
|Import with mapping||Can be used to parse the data in a string variable or data stored in a file document, and store them to entities defined in the domain model of the database. An import mapping is used to map the incoming XML or JSON to entities.|
|Export with mapping||Can be used to export the data stored in domain model entities into an XML or JSON string. It can also be stored in a file document. An export mapping is used to map domain model entities into XML or JSON.|
8 Logging Activities
|Log message||Allows you to create messages that appear in the log of your Mendix application.|
9 Document Generation Activities
|Generate document (only in nanoflows)||Allows you to create a document of a certain type based on a template.|