Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
What is
an Actionflow?An Actionan Embedded Actionflow?
Embedding Actionflows allows an action node or group of action nodes to be nested within an
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
For reusing entire Actionflows, see 1.17 Instances and Reusability. For extracting or moving an action(s) to another Actionflow, see 2.13 Extracting and Moving Actions.
Note | ||
---|---|---|
| ||
When an attempt is made to embed an actionflow a number of checks should be made
An error plink will be displayed if the embedded Actionflow is incompatible (e.g. has phases, confirmation dialogs). When editing an action flow which has been embedded it will prevent the creation of phases etc. |
Embedding Actionflows
An action(s) can be embedded by using the
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
- Click the
option in the toolbarInsert excerpt _actionflow _actionflow nopanel true - Drag and drop an Actionflow from the Repository onto the canvas
- An embedded Actionflow node is created
- If any edits 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 edits are required to the functionality within the embedded Actionflow, right-click on the embedded node and choose
HTML Comment | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
Worked Example
Here's a worked example using the Shop 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. |
GIF/SCREENSHOT OF FINISHED RESULT
Prerequisites
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
|
Embed Proper Case Actionflow
In this example, we'll embed an extracted action node that converts a string entered for a First Name attribute 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 Insert excerpt _repository _repository nopanel true - Drag it onto the connector between the input and Save action
- Choose the out_ProperCase connection point from the Select Connection Point pop up
- Click on the connector between the Proper Case and Save action
- Map across the ProperCase attribute from the embedded action node to the firstName attribute on the Save action