You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/durable/durable-functions-orchestrations.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,11 +20,6 @@ Durable Functions is an extension of [Azure Functions](../functions-overview.md)
20
20
21
21
This article gives you an overview of orchestrator functions and how they can help you solve various app development challenges. If you are not already familiar with the types of functions available in a Durable Functions app, read the [Durable Function types](durable-functions-types-features-overview.md) article first.
22
22
23
-
> [!NOTE]
24
-
> The new programming model for authoring Functions in Node.js (V4) is currently in preview. Compared to the current model, the new experience is designed to be more idiomatic and intuitive for JavaScript and TypeScript developers. To learn more, see the Azure Functions Node.js [developer guide](../functions-reference-node.md?pivots=nodejs-model-v4).
25
-
>
26
-
> In the following code snippets, JavaScript (PM4) denotes programming model V4, the new experience.
27
-
28
23
## Orchestration identity
29
24
30
25
Each *instance* of an orchestration has an instance identifier (also known as an *instance ID*). By default, each instance ID is an autogenerated GUID. However, instance IDs can also be any user-generated string value. Each orchestration instance ID must be unique within a [task hub](durable-functions-task-hubs.md).
@@ -59,6 +54,11 @@ When an orchestration function is given more work to do (for example, a response
59
54
60
55
The event-sourcing behavior of the Durable Task Framework is closely coupled with the orchestrator function code you write. Suppose you have an activity-chaining orchestrator function, like the following orchestrator function:
61
56
57
+
> [!NOTE]
58
+
> The new programming model for authoring Functions in Node.js (V4) is currently in preview. Compared to the current model, the new experience is designed to be more idiomatic and intuitive for JavaScript and TypeScript developers. To learn more, see the Azure Functions Node.js [developer guide](../functions-reference-node.md?pivots=nodejs-model-v4).
59
+
>
60
+
> In the following code snippets, JavaScript (PM4) denotes programming model V4, the new experience.
All JavaScript orchestration functions must include the [`durable-functions` module](https://www.npmjs.com/package/durable-functions). This module enables you to write Durable Functions in JavaScript. To use the V4 node programming model, you need to install the preview `v3.x` of `durable-functions`.
71
+
All JavaScript orchestration functions must include the [`durable-functions` module](https://www.npmjs.com/package/durable-functions). This module enables you to write Durable Functions in JavaScript. To use the V4 node programming model, you need to install the preview `v3.x`version of `durable-functions`.
72
72
73
73
There are two significant differences between an orchestrator function and other JavaScript functions:
Copy file name to clipboardExpand all lines: articles/azure-functions/durable/quickstart-js-vscode.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,12 @@ To complete this tutorial:
30
30
31
31
* Install [Visual Studio Code](https://code.visualstudio.com/download).
32
32
33
+
::: zone pivot="nodejs-model-v3"
33
34
* Install the [Azure Functions](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) VS Code extension
35
+
::: zone-end
36
+
::: zone pivot="nodejs-model-v4"
37
+
* Install the [Azure Functions](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) VS Code extension version `1.10.4` or above.
38
+
::: zone-end
34
39
35
40
::: zone pivot="nodejs-model-v3"
36
41
* Make sure you have the latest version of the [Azure Functions Core Tools](../functions-run-local.md).
@@ -87,7 +92,7 @@ In this section, you use Visual Studio Code to create a local Azure Functions pr
87
92
88
93
Visual Studio Code installs the Azure Functions Core Tools, if needed. It also creates a function app project in a folder. This project contains the [host.json](../functions-host-json.md) and [local.settings.json](../functions-develop-local.md#local-settings-file) configuration files.
89
94
90
-
A package.json file is also created in the root folder.
95
+
A `package.json` file is also created in the root folder.
91
96
92
97
## Install the Durable Functions npm package
93
98
@@ -96,7 +101,7 @@ To work with Durable Functions in a Node.js function app, you use a library call
96
101
To use the V4 programming model, you need to install the preview `v3.x` version of `durable-functions`.
97
102
::: zone-end
98
103
99
-
1. Use the *View* menu or <kbd>Ctrl+Shift+`</kbd> to open a new terminal in VS Code.
104
+
1. Use the *View* menu or <kbd>Ctrl + Shift + `</kbd> to open a new terminal in VS Code.
100
105
101
106
::: zone pivot="nodejs-model-v3"
102
107
2. Install the `durable-functions` npm package by running `npm install durable-functions` in the root directory of the function app.
@@ -195,7 +200,7 @@ You now have a Durable Functions app that can be run locally and deployed to Azu
195
200
::: zone pivot="nodejs-model-v4"
196
201
197
202
> [!NOTE]
198
-
> To run the V4 programming model, your app needs to have the `EnableWorkerIndexing` feature flag set. When running locally, this should have already been set in your `local.settings.json` filewhen creating your project. To verify, check the following line exists in your `local.settings.json` file. If it doesn't, add it to your file.
203
+
> To run the V4 programming model, your app needs to have the `EnableWorkerIndexing` feature flag set. When running locally, you need to set `AzureWebJobsFeaturesFlags` to value of `EnableWorkerIndexing`in your `local.settings.json` file. This should already be set when creating your project. To verify, check the following line exists in your `local.settings.json` file, and add it if it doesn't.
@@ -298,7 +303,7 @@ After you've verified that the function runs correctly on your local computer, i
298
303
To enable your V4 programming model app to run in Azure, you need to add the `EnableWorkerIndexing` flag under the `AzureWebJobsFeatureFlags` app setting.
299
304
300
305
1. In Visual Studio Code, press <kbd>F1</kbd> to open the command palette. In the command palette, search for and select `Azure Functions: Add New Setting...`.
301
-
2. Choose your new function app, type `AzureWebJobsFeatureFlags` for the new app setting name, and press <kbd>Enter</kbd>.
306
+
2. Choose your new function app, then type `AzureWebJobsFeatureFlags` for the new app setting name, and press <kbd>Enter</kbd>.
302
307
3. For the value, type `EnableWorkerIndexing` and press <kbd>Enter</kbd>.
Copy file name to clipboardExpand all lines: articles/azure-functions/durable/quickstart-ts-vscode.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,12 @@ To complete this tutorial:
30
30
31
31
* Install [Visual Studio Code](https://code.visualstudio.com/download).
32
32
33
+
::: zone pivot="nodejs-model-v3"
33
34
* Install the [Azure Functions](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) VS Code extension
35
+
::: zone-end
36
+
::: zone pivot="nodejs-model-v4"
37
+
* Install the [Azure Functions](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) VS Code extension version `1.10.4` or above.
38
+
::: zone-end
34
39
35
40
::: zone pivot="nodejs-model-v3"
36
41
* Make sure you have the latest version of the [Azure Functions Core Tools](../functions-run-local.md).
@@ -55,7 +60,7 @@ To complete this tutorial:
55
60
56
61
In this section, you use Visual Studio Code to create a local Azure Functions project.
57
62
58
-
1. In Visual Studio Code, press <kbd>F1</kbd> (or <kbd>Ctrl/Cmd+Shift+P</kbd>) to open the command palette. In the command palette, search for and select `Azure Functions: Create New Project...`.
63
+
1. In Visual Studio Code, press <kbd>F1</kbd> (or <kbd>Ctrl/Cmd + Shift + P</kbd>) to open the command palette. In the command palette, search for and select `Azure Functions: Create New Project...`.
59
64
60
65

61
66
@@ -88,7 +93,7 @@ In this section, you use Visual Studio Code to create a local Azure Functions pr
88
93
89
94
Visual Studio Code installs the Azure Functions Core Tools, if needed. It also creates a function app project in a folder. This project contains the [host.json](../functions-host-json.md) and [local.settings.json](../functions-develop-local.md#local-settings-file) configuration files.
90
95
91
-
A `package.json` and a `tsconfig.json` file are also created in the root folder.
96
+
A `package.json`file and a `tsconfig.json` file are also created in the root folder.
92
97
93
98
## Install the Durable Functions npm package
94
99
@@ -97,7 +102,7 @@ To work with Durable Functions in a Node.js function app, you use a library call
97
102
To use the V4 programming model, you need to install the preview `v3.x` version of `durable-functions`.
98
103
::: zone-end
99
104
100
-
1. Use the *View* menu or <kbd>Ctrl+Shift+`</kbd> to open a new terminal in VS Code.
105
+
1. Use the *View* menu or <kbd>Ctrl + Shift + `</kbd> to open a new terminal in VS Code.
101
106
102
107
::: zone pivot="nodejs-model-v3"
103
108
2. Install the `durable-functions` npm package by running `npm install durable-functions` in the root directory of the function app.
@@ -198,7 +203,7 @@ Azure Functions Core Tools lets you run an Azure Functions project on your local
198
203
::: zone pivot="nodejs-model-v4"
199
204
200
205
> [!NOTE]
201
-
> To run the V4 programming model, your app needs to have the `EnableWorkerIndexing` feature flag set. When running locally, this should have already been set in your `local.settings.json` filewhen creating your project. To verify, check the following line exists in your `local.settings.json` file. If it doesn't, add it to your file.
206
+
> To run the V4 programming model, your app needs to have the `EnableWorkerIndexing` feature flag set. When running locally, you need to set `AzureWebJobsFeaturesFlags` to value of `EnableWorkerIndexing`in your `local.settings.json` file. This should already be set when creating your project. To verify, check the following line exists in your `local.settings.json` file, and add it if it doesn't.
@@ -300,7 +305,7 @@ After you've verified that the function runs correctly on your local computer, i
300
305
To enable your V4 programming model app to run in Azure, you need to add the `EnableWorkerIndexing` flag under the `AzureWebJobsFeatureFlags` app setting.
301
306
302
307
1. In Visual Studio Code, press <kbd>F1</kbd> to open the command palette. In the command palette, search for and select `Azure Functions: Add New Setting...`.
303
-
2. Choose your new function app, type `AzureWebJobsFeatureFlags` for the new app setting name, and press <kbd>Enter</kbd>.
308
+
2. Choose your new function app, then type `AzureWebJobsFeatureFlags` for the new app setting name, and press <kbd>Enter</kbd>.
304
309
3. For the value, type `EnableWorkerIndexing` and press <kbd>Enter</kbd>.'
0 commit comments