Activities

Last update: Edit

1 Introduction

Activities represent the actions that are executed in a microflow or a nanoflow.

Available types of activities are described below.

2 Object Activities

Object activities can be used to create and manipulate objects. The domain model defines the object types (entities) that can be used.

Graphic Name Description
cast object Cast object Can be used in combination with an object type decision to use the specialized members of the object. For more information on the specialized members of an object, see Entities
change object Change object Can be used to change the members of an object. This can be done with or without commiting, and with or without events.
commit object Commit object(s) Can be used to commit changes to one or more objects.
create object Create object Can be used to create an object.
delete object Delete object(s) Can be used to delete an object.
retrieve Retrieve Can be used to get one (or more) associated objects of another object. Furthermore, this activity can also get one or more objects directly from a database.
rollback object Rollback object Can be used to undo uncommitted changes 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.

Graphic Name Description
aggregate list Aggregate list Can be used to calculate aggregated values such as the maximum, minimum, sum, average, and total amount of objects over a list of objects.
change list Change list Can be used to change the content of a list variable.
create list Create list Can be used to create a (empty) list variable.
list operation List operation Can be used to combine or compare 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.

Graphic Name Description
java action call Java Action call Can be used to call a Java action. Arguments can be passed to the action and the result can be stored in a variable.
microflow call Microflow call Can be used to call another microflow. Arguments can be passed to the microflow and the result can be stored in a variable.
javascript action call JavaScript action call Can be used to call a JavaScript action. Arguments can be passed to the action and the result can be stored in a variable.
nanoflow call Call nanoflow Can be used to call another nanoflow. Arguments can be passed to the nanoflow 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.

Graphic Name Description
change variable Change variable Can be used to change the value of a variable.
create variable Create variable Can be used to create 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.

Graphic Name Description
close page Close page Closes the page that was opened last by the user who called the microflow in which this activity is used.
download file Download file 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 message Show message Can be used to show a blocking or non-blocking message to the user that calls the microflow in which this activity is used.
show page Show page Can be used to show a page to the user that calls the microflow in which this activity is used.
validation feedback Validation feedback Can be used to display a red text below a widget that displays an attribute or association.
show home page Show home page Can be used to navigate to the home page for the current user.

7 Integration Activities

Integration activities can be used to integrate with other systems, for example by calling a web service.

Graphic Name Description
call rest action Call REST action Call rest action 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 action Call web service Call web service action 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 Import with mapping 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 Export with mapping 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 Document Generation Activities

Graphic Name Description
generate document Generate document Generate document can be used to create a document of a certain type based on a template.