This page provides details of the properties for the calculate node and associated expressions. These are part of actionflows.
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.
edc
Always remember to test the actionflow to make sure it works.
Properties Tab
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.
Show in the Repository
An application can have many actionflows, and an individual actionflow can have many nodes. This can lead to many items being listed under Actionflow in the repository. Use this option to omit the node from the repository.
to display this node in the repository.
to omit this node from the repository.
Pass Through
Specify whether or not to allow data that has not been processed to pass through to the next action node.
Untick to prevent data that is not processed by this node from passing to the next action node.
Tick to allow data that is not processed to pass through to the next action node.
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 should run before an expression that uses the value.
Description
We recommend that you always enter a description to explain the purpose of this item.