From 177a6ca1507c2bbfe3766d3daecb9b1354f7d802 Mon Sep 17 00:00:00 2001 From: Yossi Spektor Date: Mon, 30 Dec 2024 17:43:15 +0100 Subject: [PATCH] Update workflow-features-concepts.md Fix typos, use more Java-idiomatic code names (methods in Java usually don't begin with uppercase letters). Signed-off-by: Yossi Spektor --- .../workflow/workflow-features-concepts.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/daprdocs/content/en/developing-applications/building-blocks/workflow/workflow-features-concepts.md b/daprdocs/content/en/developing-applications/building-blocks/workflow/workflow-features-concepts.md index b0392fa7818..2b2fbde3561 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/workflow/workflow-features-concepts.md +++ b/daprdocs/content/en/developing-applications/building-blocks/workflow/workflow-features-concepts.md @@ -199,7 +199,7 @@ string randomString = GetRandomString(); // DON'T DO THIS! Instant currentTime = Instant.now(); UUID newIdentifier = UUID.randomUUID(); -string randomString = GetRandomString(); +String randomString = getRandomString(); ``` {{% /codetab %}} @@ -246,7 +246,7 @@ string randomString = await context.CallActivityAsync("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(); ``` @@ -342,7 +342,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("MakeHttpCall", "https://example.com/api/data"); ``` @@ -352,7 +352,7 @@ string data = await context.CallActivityAsync("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(); ``` @@ -362,7 +362,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"); ```