Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
What is
an Actionflowan Embedded Actionflow?
An action node or group of action nodes can be nested within an
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
For reusing entire Actionflows, see Instances and Reusability. For extracting or moving an action(s) to another Actionflow, see Extracting and Moving Actions.
Embedding Actionflows
An action(s) can be embedded after using the
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
- Click the
option in the toolbarInsert excerpt _actionflow _actionflow nopanel true - Drag and drop an
from the Repository onto the canvasInsert excerpt _actionflow _actionflow nopanel true - An embedded
node is createdInsert excerpt _actionflow _actionflow nopanel true - If any changes are required to the functionality within the embedded Actionflow, right-click on the embedded node and choose
DisplayInsert excerpt _actionflow_icon _actionflow_icon nopanel true
- If any changes are required to the functionality within the embedded Actionflow, right-click on the embedded node and choose
Note | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||
|
HTML Comment | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
Worked Example
Here's a worked example using the Retail Data (available from the Learning Centre).
In this example, we are using:
- A Staff 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 Staff Form screen. |
Prerequisites
.
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
Embed Proper Case Actionflow
In this example, we'll embed an extracted action node that converts a First Name string to proper case. We'll embed this within the Save action on the Staff Form.
Embed Extracted Action in Actionflow
- Open the Actionflow on the Save button on the Staff Form
- Click
in the toolbar and drag the Proper Case Actionflow from theInsert excerpt _actionflow _actionflow nopanel true
onto the canvasInsert excerpt _repository _repository nopanel true - Click and drag
node onto the connector between theInsert excerpt _actionflow _actionflow nopanel true
andInsert excerpt _input _input nopanel true
action and drop it when theInsert excerpt _action_gateway _action_gateway nopanel true
icon appearsInsert excerpt _add_icon _add_icon nopanel true - Choose the out_ProperCase connection point from the Select Connection Point pop up
- Click on the connector between the input and embedded node and map across the attribute first_name
- Click on both connectors between the
node andInsert excerpt _action_gateway _action_gateway nopanel true
actionsInsert excerpt _action_save _action_save nopanel true On both connectors, map across the ProperCase attribute from the embedded
node to the first_name attribute on the tableInsert excerpt _actionflow _actionflow nopanel true Expand title Checkpoint
Testing
- To test the Actionflow, open the Shop Staff screen
- Select an existing staff member from the grid and press Edit
- Change their first name to be in capitals and click Save
- You should see on the Staff grid that their first name has saved in proper case