Versions Compared
Version | Old Version 32 | New Version 33 |
---|---|---|
Changes made by | ||
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
This page provides details of the properties for the calculate node and associated expressions. These are part of actionflows.
Overview
Use a
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Example
Click to play the following video that shows an example of using a calculate node in an actionflow.
View file name Open Calculate Example.mp4 height 250
The video shows an actionflow that opens a new screen containing a dynamic text field. It then populates the dynamic text field with a message, which is set in a calculate node attribute. The steps for are:
- Drag a calculate node from the toolbar and drop it into the actionflow diagram.
- Name the calculate something meaningful, e.g.
Set Message
- Disconnect the
node from theInsert excerpt _action_screen _action_screen nopanel true
.Insert excerpt _driving_interface_connection_point _driving_interface_connection_point nopanel true - Connect the
to theInsert excerpt _driving_interface_connection_point _driving_interface_connection_point nopanel true
node.Insert excerpt _action_calculate _action_calculate nopanel true - To pass data into the actionflow, go to the Inputs section on the left. Connect the component input connection point ScreenToOpen to the calculate node.
- Click on the calculate node to open its properties.
- In the Attributes section, add a new calculate attribute and set:
- Name to
Message
Expression to:
Code Block "You have successfully set up a calculate node"
- Name to
- Map the calculate attribute to the dynamic text field on the screen as follows:
Right-click on the connection and click Configure Mappings.
- Drag the Message attribute from the calculate node, on the left, to the Message attribute on the open screen, on the right.
- Close the mapping screen.
- The actionflow configuration is complete.
Tip |
---|
After configuring an actionflow, always test the actionflow to make sure it works. |
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Basic Settings
Field | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | Enter the name for the action node. | ||||||||||||||||||||
|
| ||||||||||||||||||||
Pass Through | Specify whether or not to allow data that has not been processed to pass through to the next action node.
|
Calculate Attributes
Calculate actions process data using expressions; see pages in the topic Expressions and PhixScripts.
This section has a toolbar with standard buttons. The grid contains a list of the expressions that the calculate action will perform.
- To add a new expression, in the section toolbar click
to open a new expression and set the properties.Insert excerpt _add _add nopanel true - To edit an existing expression, double-click it in the list to open its properties.
- To remove an expression, select one and in the section toolbar click
.Insert excerpt _delete _delete nopanel true - Click
. PhixFlow opens the properties for a new calculate attribute; see Calculate Attributes Properties, below.Insert excerpt _add _add nopanel true
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Calculate Attributes Properties Anchor attribute attribute
attribute | |
attribute |
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Basic Settings
Field | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | Enter the name of the calculate attribute. | ||||||||||||||||
Type | Select one of the data types:
| ||||||||||||||||
Attribute Name |
| ||||||||||||||||
Expression | Enter an expression. To work in a larger pop-up window, click
See also: | ||||||||||||||||
Order | Where the calculate action runs multiple expressions, enter a number to indicate the order in which this expression will be run. Remember that an expression that generates a value must run before any expression that uses the value. |
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Save and close the calculate attribute properties to return to the calculate properties.
Live Search | ||||||||
---|---|---|---|---|---|---|---|---|
|
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
Learn More
For links to all pages in this topic, see Understanding Actionflows.
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|