Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Extracting Actions to a New Actionflow
Action nodes, within an Actionflow, can be re-used by extracting them from their original Actionflow and converting them into a new Actionflow. In the original Actionflow, the actions are transferred to an embedded Actionflow node.
The newly created Actionflow automatically contains:
- input, output and lookup connection points to connections outside of the new Actionflow, e.g. to action nodes and the original Actionflow
- all transferred action nodes
the original attributes, which are mapped to match the original Actionflow setup
Creating a Reusable Actionflow
- To make a reusable Actionflow, select the required action nodes and right-click to choose
Insert excerpt _extract_actionflow _extract_actionflow nopanel true - A new Actionflow is automatically created
- On the original Actionflow, the selected action nodes are replaced with the new embedded Actionflow node - see Actionflow Node
- A new Actionflow is automatically created
Note | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Important Considerations:
|
Moving Actions to Another Actionflow
An action node or group of action nodes can be moved to another Actionflow. This useful where you wish to reverse an action node extraction.
The nodes must be disconnected from the Actionflow's inputs and/or outputs before moving.
How-to Move Actions
- Disconnect the action or group of actions from the Actionflow's inputs and/or outputs
- Right-click on the actions nodes to be moved and choose
Insert excerpt _move_actionflow _move_actionflow nopanel true - On the Select Actionflow popup, use the dropdown to select the Actionflow to move the action nodes to and select OK
- On the Select Action Phase popup, use the dropdown to select the phase within the chosen Actionflow to move the action nodes to and select OK
- The Actionflow that the action node(s) have been moved to will open
Worked Example
Here's a worked example using the Shop the Retail Data (available from the Learning Centre).
In this example, we are using:
- A Customer Form screen containing blank input fields, set up to create a new staff member - this screen was created using the Edit Form template
Tip |
---|
If you are completing this chapter as part of the Actionflow course and using a training instance, the data and screens have already been pre-loaded into the Actionflow Intermediate Application. For this example, we'll be working on the Save button on the Customer Form screen. |
Excerpt | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
Extract Proper Case Calculate ActionIn this example, we'll modify the Actionflow on the Save button for when a customer is created. We'll configure this Actionflow to convert the string entered for the First Name attribute to proper case, for example, if the user enters "JOHN" or "john", this action will convert this string to "John". We'll then extract this Actionflow for use elsewhere in our application. Create Proper Case Calculate Action
Extract Proper Case Calculate Action
|