mirror of https://github.com/dapr/docs.git
Merge branch 'dapr:v1.14' into net9-sdk-quickstart-docs
This commit is contained in:
commit
da9ff29596
|
|
@ -109,7 +109,7 @@ id = "G-60C6Q1ETC1"
|
|||
lang = "en"
|
||||
[[module.mounts]]
|
||||
source = "../sdkdocs/rust/daprdocs/content/en/rust-sdk-contributing"
|
||||
target = "content/contributing/sdks-contrib"
|
||||
target = "content/contributing/sdk-contrib/"
|
||||
lang = "en"
|
||||
|
||||
[[module.mounts]]
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ string randomString = GetRandomString();
|
|||
// DON'T DO THIS!
|
||||
Instant currentTime = Instant.now();
|
||||
UUID newIdentifier = UUID.randomUUID();
|
||||
string randomString = GetRandomString();
|
||||
String randomString = getRandomString();
|
||||
```
|
||||
|
||||
{{% /codetab %}}
|
||||
|
|
@ -242,7 +242,7 @@ string randomString = await context.CallActivityAsync<string>("GetRandomString")
|
|||
```java
|
||||
// Do this!!
|
||||
Instant currentTime = context.getCurrentInstant();
|
||||
Guid newIdentifier = context.NewGuid();
|
||||
Guid newIdentifier = context.newGuid();
|
||||
String randomString = context.callActivity(GetRandomString.class.getName(), String.class).await();
|
||||
```
|
||||
|
||||
|
|
@ -338,7 +338,7 @@ Do this:
|
|||
|
||||
```csharp
|
||||
// Do this!!
|
||||
string configuation = workflowInput.Configuration; // imaginary workflow input argument
|
||||
string configuration = workflowInput.Configuration; // imaginary workflow input argument
|
||||
string data = await context.CallActivityAsync<string>("MakeHttpCall", "https://example.com/api/data");
|
||||
```
|
||||
|
||||
|
|
@ -348,7 +348,7 @@ string data = await context.CallActivityAsync<string>("MakeHttpCall", "https://e
|
|||
|
||||
```java
|
||||
// Do this!!
|
||||
String configuation = ctx.getInput(InputType.class).getConfiguration(); // imaginary workflow input argument
|
||||
String configuration = ctx.getInput(InputType.class).getConfiguration(); // imaginary workflow input argument
|
||||
String data = ctx.callActivity(MakeHttpCall.class, "https://example.com/api/data", String.class).await();
|
||||
```
|
||||
|
||||
|
|
@ -358,7 +358,7 @@ String data = ctx.callActivity(MakeHttpCall.class, "https://example.com/api/data
|
|||
|
||||
```javascript
|
||||
// Do this!!
|
||||
const configuation = workflowInput.getConfiguration(); // imaginary workflow input argument
|
||||
const configuration = workflowInput.getConfiguration(); // imaginary workflow input argument
|
||||
const data = yield ctx.callActivity(makeHttpCall, "https://example.com/api/data");
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -675,7 +675,12 @@ To perform a `throw-error` operation, invoke the Zeebe command binding with a `P
|
|||
"data": {
|
||||
"jobKey": 2251799813686172,
|
||||
"errorCode": "product-fetch-error",
|
||||
"errorMessage": "The product could not be fetched"
|
||||
"errorMessage": "The product could not be fetched",
|
||||
"variables": {
|
||||
"productId": "some-product-id",
|
||||
"productName": "some-product-name",
|
||||
"productKey": "some-product-key"
|
||||
}
|
||||
},
|
||||
"operation": "throw-error"
|
||||
}
|
||||
|
|
@ -686,6 +691,11 @@ The data parameters are:
|
|||
- `jobKey` - the unique job identifier, as obtained when activating the job
|
||||
- `errorCode` - the error code that will be matched with an error catch event
|
||||
- `errorMessage` - (optional) an error message that provides additional context
|
||||
- `variables` - (optional) JSON document that will instantiate the variables at the local scope of the
|
||||
job's associated task; it must be a JSON object, as variables will be mapped in a
|
||||
key-value fashion. e.g. { "a": 1, "b": 2 } will create two variables, named "a" and
|
||||
"b" respectively, with their associated values. [{ "a": 1, "b": 2 }] would not be a
|
||||
valid argument, as the root of the JSON document is an array and not an object.
|
||||
|
||||
##### Response
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ spec:
|
|||
# Controls the default mode for executing queries. (optional)
|
||||
#- name: queryExecMode
|
||||
# value: ""
|
||||
# Uncomment this if you wish to use PostgreSQL as a state store for actors (optional)
|
||||
# Uncomment this if you wish to use PostgreSQL as a state store for actors or workflows (optional)
|
||||
#- name: actorStateStore
|
||||
# value: "true"
|
||||
```
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ spec:
|
|||
# Controls the default mode for executing queries. (optional)
|
||||
#- name: queryExecMode
|
||||
# value: ""
|
||||
# Uncomment this if you wish to use PostgreSQL as a state store for actors (optional)
|
||||
# Uncomment this if you wish to use PostgreSQL as a state store for actors or workflows (optional)
|
||||
#- name: actorStateStore
|
||||
# value: "true"
|
||||
```
|
||||
|
|
|
|||
|
|
@ -720,9 +720,15 @@
|
|||
}
|
||||
},
|
||||
"node_modules/nanoid": {
|
||||
"version": "3.3.2",
|
||||
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.2.tgz",
|
||||
"integrity": "sha512-CuHBogktKwpm5g2sRgv83jEy2ijFzBwMoYA60orPDR7ynsLijJDqgsi4RDGj3OJpy3Ieb+LYwiRmIOGyytgITA==",
|
||||
"version": "3.3.8",
|
||||
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz",
|
||||
"integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/ai"
|
||||
}
|
||||
],
|
||||
"bin": {
|
||||
"nanoid": "bin/nanoid.cjs"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue