Change settings
Last updated
Last updated
If you need to keep changed settings, it may be necessary to use the Confirm Session Changes process node...
With the change language process you can change the language of the user's session in the runtime. You can choose languages from the available languages configured in the project settings. You can find a list of all supported languages and their names in the available languages section.
For the change language node, we have the following properties:
Property name | Type | Description |
---|---|---|
Language | Expression, text | Language you want to change to. |
There are different ways in which we can implement and use this node, here we will show a basic example that you can later modify according to the need, and the ideas, that you want to implement in your project.
One of the easiest ways to use it:
Create a field with the Default Language. In this case we use en-US
2. Inside the properties of the change language process node you insert the datafield you just made.
Create an interaction that triggers the change language process, in this case we will use a button that activates the process
For the flowchart, connect from the start node to the interaction node where you want to change the language from. Next is to add the button exit "change" to the process node and connect the default exit back to the interaction screen.
Inside the node properties; put which language the project is going to change into, as the example below shows.
Note: before any languages can be used, they must be available in the project languages in the configuration part of the project.
This process is to change the timezone in the current project. It is important when we handle several timezones within our project. WEM supports the IANA Standard Time zones and uses the tz identifier to name the timezones.
For the change timezone node, we have the following properties:
Property name | Type | description |
---|---|---|
Timezone | Expression, text | Set the timezone in the expression. This can be a text datafield a expression or a string. Use the tzidentifier from the IANA list. |
For the flowchart, connect from the interaction node to the change language node. In the following example we will be using the start node by default; an interaction node, and the change timezone node as shown below.
For the flowchart, connect from the start to the interaction node, from interaction to the change timezone node and back to the interaction again for the result.
Use an interaction node, and put the change timezone node next to the interaction node in the flowchart.
Create a field that hold a the timezone you want to change to or put the name in the process node properties.
Create an exit that will go to the node to execute the process and use the default exit to go back to your interaction node.
Add a button that triggers the exit in your interaction node and a label that shows the current timezone.
Its function is to confirm if a session fields is changed and keep its information during this session without specifically making a post or other update (following an exit from a page). The node can be linked to an exit from another node and needs the default exit to have a next step. It will send the changes in session fields at the client/browser to store them on the server in the current session. Very useful in cases where a change in fields on a page can trigger an execute flowchart (containing the confirm session) but return back to the main page - in which case the session on server is not updated (that would only be when user follows an Exit) and the user wants to navigate away using a Navigation Item (without the Confirm Session, the changes will be lost to this session).
This function is to set a wait time before the runtime goes to the next node.
The properties allow us to connect the elements of our project to the process options. For this sleep node, we have the following propertie:
Property name | Type | Description |
---|---|---|
Seconds (max 5) | Expressions, number | Set the time in the node that will take to sleep the process. |
The following example will show the time in seconds it takes to execute the action of the sleep node.
The objective of this project is basically to visually show the time that the process takes to execute the "sleep" time that is part of the configuration; The process is explained in detail below. For this example project, two values, one initial and one final, are compared, using the assignment of a function type date to give a parameter between both fields. Initial date that starts from one point and ends at another; between this space the time of the sleep node process is calculated.
The interaction node.
Add an assignment node with the advanced function "now()" that will compare the first number.
Add an assignment node with the advanced function "datePart", that will have the start date day, which will compare the first number.
An overlay is added to show the executed process in progress.
The sleep node has been added with 3 seconds in its property max time.
Add an assignment node with the advanced function "now()", that will compare the second number.
Add an assignment node with the advanced function "datePart", that will have the end date day, which will compare the second number.
The next assignment node will receive the information of the time.
Describing the process of the flowchart in the preview. Detailed after executing the project.
Before clicking the sleep button.
The processed overlay, while the node is been executed.
The result of the compared fields within the time and sleep process node.
This processes is to redirect the user/browser to a specific url - without the need to let user click a link to go there. In this use case, we will be showing a simple way to use it, just as an illustration.
The properties allow us to connect the elements of our project to the different process parameters of their function. For this redirect node, we have the following:
Property name | Type | Description |
Url | Expressions, text | Set the url address where the user will be redirected to. |
For the flowchart, connect from the interaction node to the redirect node as shown below.
One of the easiest ways to use it:
Use an interaction node, and put the redirect node on the canvas.
Create an exit that will go to the node to execute the process.
Set up the redirect node properties to a string with the url you want to point to. The property field is a expression and can be used with a text datafield, with expressions or directly with an url string. This example uses "www.google.com"
as string.
Before clicking the "redirect" button, which also is shown as button most of the time.
Then, you will go to the URL set, in this case, "google.com"
Webrequest, is the legacy version of the "HTTP" node , which connects with any action of request, get, put, post, delete, etc... This node is updated to a more user-friendly way, for more information about its improvement, you can visit the documentation page with more details.
Find out more information about web-requests.