This page is for application designers who need to configure functionality for components or events. It explains the properties for the calculate node and associated expressions, which is part of an actionflow.
Overview
Use a Calculate node to manipulate data that is passed to it. Calculate nodes have their own attributes, which can reference incoming data via expressions using one or more of the 115+ functionsavailable in PhixFlow.
Example
Click to play the following video that shows an example of using a calculate node in an actionflow.
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 Open Screen node from the Driving interface connection point.
Connect the Driving interface connection point to the Calculate node.
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:
"You have successfully set up a calculate node"
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.
After configuring an actionflow, always test the actionflow to make sure it works.
Properties Tab
Property Pane Toolbar
For information about the toolbar options, see the Common Properties page, Toolbars and Controls section.
Parent Details
If this item is within or belongs to another, its parent name is shown here. See the Parent Details section on the Common Properties page for more details.
Basic Settings
Field
Description
Name
Enter the name for the action node.
Description
We recommend that you always enter a description to explain the purpose of this item.
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 Add New to open a new expression and set the properties.
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 Delete.
To reorder an attribute, drag and drop the attribute into the desired position. Alternatively, double-click to open its properties and update the Order field.