Skip to content

Commit 5d674d8

Browse files
committed
updating references and readme
1 parent f6f9811 commit 5d674d8

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

tutorials/workflow/java/task-chaining/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This tutorial demonstrates how to chain multiple tasks together as a sequence in
44

55
## Inspect the code
66

7-
Open the `ChainingWorkflow.java` file in the `tutorials/workflow/java/task-chaining/src/main/java/io/dapr/springboot/examples/wfp/chain` folder. This file contains the definition for the workflow.
7+
Open the [`ChainingWorkflow.java`](src/main/java/io/dapr/springboot/examples/chain/ChainingWorkflow.java) file in the `tutorials/workflow/java/task-chaining/src/main/java/io/dapr/springboot/examples/wfp/chain` folder. This file contains the definition for the workflow.
88

99
```mermaid
1010
graph LR
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
@apphost=http://localhost:5255
1+
@apphost=http://localhost:8080
22

33
### Start the TaskChaining workflow
44
# @name startWorkflowRequest
55
POST {{ apphost }}/start
66

7-
8-
@instanceId={{startWorkflowRequest.response.headers.Location}}
9-
@daprHost=http://localhost:3555
107
### Get the workflow status
11-
GET {{ daprHost }}/v1.0/workflows/dapr/{{ instanceId }}
8+
GET {{ apphost }}/output

tutorials/workflow/java/task-chaining/pom.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
<name>task-chaining</name>
1515
<description>Task Chaining Workflow Example</description>
1616

17+
<properties>
18+
<dapr.spring.version>0.15.0-rc-7</dapr.spring.version>
19+
</properties>
1720
<dependencies>
1821
<dependency>
1922
<groupId>org.springframework.boot</groupId>
@@ -30,12 +33,12 @@
3033
<dependency>
3134
<groupId>io.dapr.spring</groupId>
3235
<artifactId>dapr-spring-boot-starter</artifactId>
33-
<version>0.15.0-rc-5</version>
36+
<version>${dapr.spring.version}</version>
3437
</dependency>
3538
<dependency>
3639
<groupId>io.dapr.spring</groupId>
3740
<artifactId>dapr-spring-boot-starter-test</artifactId>
38-
<version>0.15.0-rc-5</version>
41+
<version>${dapr.spring.version}</version>
3942
<scope>test</scope>
4043
</dependency>
4144
<dependency>

tutorials/workflow/java/task-chaining/src/main/java/io/dapr/springboot/examples/TaskChainingRestController.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
import io.dapr.spring.workflows.config.EnableDaprWorkflows;
18-
import io.dapr.springboot.examples.chain.ChainWorkflow;
18+
import io.dapr.springboot.examples.chain.ChainingWorkflow;
1919
import io.dapr.workflows.client.DaprWorkflowClient;
2020
import io.dapr.workflows.client.WorkflowInstanceStatus;
2121
import org.slf4j.Logger;
@@ -25,7 +25,6 @@
2525
import org.springframework.web.bind.annotation.PostMapping;
2626
import org.springframework.web.bind.annotation.RestController;
2727

28-
import java.util.Map;
2928
import java.util.concurrent.TimeoutException;
3029

3130
@RestController
@@ -46,7 +45,7 @@ public class TaskChainingRestController {
4645
*/
4746
@PostMapping("start")
4847
public String chain() throws TimeoutException {
49-
instanceId = daprWorkflowClient.scheduleNewWorkflow(ChainWorkflow.class, "This");
48+
instanceId = daprWorkflowClient.scheduleNewWorkflow(ChainingWorkflow.class, "This");
5049
return instanceId;
5150
}
5251

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import org.springframework.stereotype.Component;
1919

2020
@Component
21-
public class ChainWorkflow implements Workflow {
21+
public class ChainingWorkflow implements Workflow {
2222
@Override
2323
public WorkflowStub create() {
2424
return ctx -> {

0 commit comments

Comments
 (0)