Skip to content

Commit 495b4f8

Browse files
authored
Merge pull request mendix#9062 from EnasAbdelrazek/ufc-nf-mf-conversion-improvement
Document Nanoflow and microflow conversion improvement
2 parents 12d988d + 4b1daf6 commit 495b4f8

4 files changed

Lines changed: 36 additions & 4 deletions

File tree

content/en/docs/refguide/modeling/application-logic/microflows-and-nanoflows/microflows/_index.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,27 @@ If you want to see what happens while a microflow is executing, you can use the
112112

113113
## Converting a Microflow to a Nanoflow {#convert-to-nanoflow}
114114

115-
To convert a microflow to a nanoflow, you have two options. The first option is to right-click anywhere in the microflow editor and select **Convert to nanoflow**. Alternatively, in the **App Explorer**, right-click on the name of the microflow you want to convert, and select **Convert to nanoflow**.
115+
In Studio Pro 10.19 and below, you can use the **Convert to nanoflow** functionality to create a new nanoflow based on the original microflow. There are two ways to find this option:
116+
117+
* Right-click anywhere in the microflow editor and click **Convert to nanoflow**.
118+
* Alternatively, in the **App Explorer**, right-click on the name of the microflow you want to convert, and click **Convert to nanoflow**.
116119

117120
{{< figure src="/attachments/refguide/modeling/application-logic/microflows-and-nanoflows/microflows/convert-to-nanoflow.PNG" alt="Convert to nanoflow" width="550px" class="no-border" >}}
118121

119-
A new nanoflow is created and added to the same directory, and you can get consistency errors if there are actions that are not supported by nanoflows.
122+
Afterwards, a new nanoflow is created and added to the same directory, and you can get consistency errors if there are actions that are not supported by nanoflows.
123+
124+
Starting from Studio Pro 10.20, there are two options available:
125+
126+
* **Duplicate as nanoflow**: This option creates a new nanoflow based on the original microflow. This works the same as the **Convert to nanoflow** functionality in Studio Pro 10.19 and below.
127+
* **Convert to nanoflow**: This option removes the original microflow and replaces it with a new nanoflow. All possible usages throughout your app are updated and any non-replaceable usages remain as they are. When some usages cannot be replaced because they are not allowing nanoflows, a warning dialog appears. See below as an example:
128+
129+
{{< figure src="/attachments/refguide/modeling/application-logic/microflows-and-nanoflows/microflows/warning-dialog.png" alt="Conversion warning dialog" width="550px" >}}
130+
131+
In the warning dialog, you have the following options:
132+
133+
* **Convert**: The original microflow is removed, only replaceable usages are updated, and any non-replaceable usages remain as they are.
134+
* **Find usages**: Stops the conversion and finds usages of the original microflow.
135+
* **Cancel**: The conversion is cancelled and no changes are made.
120136

121137
## Canvas Interaction {#canvas-interaction}
122138

content/en/docs/refguide/modeling/application-logic/microflows-and-nanoflows/nanoflows/_index.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,27 @@ Nanoflows are executed in the context of the current user. Any operation for whi
140140

141141
## Converting a Nanoflow to a Microflow {#convert-to-microflow}
142142

143-
To convert a nanoflow to a microflow, you have two options. The first option is to right-click anywhere in the nanoflow editor and select **Convert to microflow**. Alternatively, in the **App Explorer**, right-click on the name of the nanoflow you want to convert, and select **Convert to microflow**.
143+
In Studio Pro 10.19 and below, you can use the **Convert to microflow** functionality to create a new microflow based on the original nanoflow. There are two ways to find this option:
144+
145+
* Right-click anywhere in the nanoflow editor and click **Convert to microflow**.
146+
* Alternatively, in the **App Explorer**, right-click on the name of the nanoflow you want to convert, and click **Convert to microflow**.
144147

145148
{{< figure src="/attachments/refguide/modeling/application-logic/microflows-and-nanoflows/nanoflows/convert-to-microflow.PNG" alt="Convert to microflow" width="550px" class="no-border" >}}
146149

147-
A new microflow is created and added to the same directory, and you can get consistency errors if there are elements that are not supported by microflows.
150+
Afterwards, a new microflow is created and added to the same directory, and you can get consistency errors if there are elements that are not supported by microflows.
151+
152+
Starting from Studio Pro 10.20, there are two options available:
153+
154+
* **Duplicate as microflow**: This option creates a new microflow based on the original nanoflow. This works the same as the **Convert to microflow** functionality in Studio Pro 10.19 and below.
155+
* **Convert to microflow**: This option removes the original nanoflow and replaces it with a new microflow. All possible usages throughout your app are updated and any non-replaceable usages remain as they are. When some usages cannot be replaced because they are not allowing microflows, a warning dialog appears. See below as an example:
156+
157+
{{< figure src="/attachments/refguide/modeling/application-logic/microflows-and-nanoflows/nanoflows/warning-dialog.png" alt="Conversion warning dialog" width="550px" >}}
158+
159+
In the warning dialog, you have the following options:
160+
161+
* **Convert**: The original nanoflow is removed, only replaceable usages are updated, and any non-replaceable usages remain as they are.
162+
* **Find usages**: Stops the conversion and finds usages of the original nanoflow.
163+
* **Cancel**: The conversion is cancelled and no changes are made.
148164

149165
## Canvas Interaction
150166

79.4 KB
Loading
61.1 KB
Loading

0 commit comments

Comments
 (0)