Skip to content

Commit

Permalink
rename DemoSubWorkflow
Browse files Browse the repository at this point in the history
Co-authored-by: Aymand Mahmoud <aymanmahmoud@microsoft.com>
Signed-off-by: Aymand Mahmoud <aymanmahmoud@microsoft.com>
Signed-off-by: Mahmut Canga <cangamahmut@gmail.com>
  • Loading branch information
Aymalla authored and macromania committed Jun 21, 2023
1 parent 9816093 commit d1b64ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Implementation of the DemoWorkflow for the server side.
*/
public class DemoChildWorkflow extends Workflow {
public class DemoSubWorkflow extends Workflow {
@Override
public void run(WorkflowContext ctx) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void run(WorkflowContext ctx) {

ctx.getLogger().info("Child-Workflow> Calling ChildWorkflow...");
var childWorkflowInput = "Hello ChildWorkflow!";
var childWorkflowOutput = ctx.callSubWorkflow(DemoChildWorkflow.class.getName(), childWorkflowInput,
var childWorkflowOutput = ctx.callSubWorkflow(DemoSubWorkflow.class.getName(), childWorkflowInput,
String.class).await();

ctx.getLogger().info("Child-Workflow> returned: " + childWorkflowOutput);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class DemoWorkflowWorker {
public static void main(String[] args) throws Exception {
// Register the Workflow with the runtime.
WorkflowRuntime.getInstance().registerWorkflow(DemoWorkflow.class);
WorkflowRuntime.getInstance().registerWorkflow(DemoChildWorkflow.class);
WorkflowRuntime.getInstance().registerWorkflow(DemoSubWorkflow.class);
WorkflowRuntime.getInstance().registerActivity(DemoWorkflowActivity.class);
System.out.println("Start workflow runtime");
WorkflowRuntime.getInstance().startAndBlock();
Expand Down

0 comments on commit d1b64ba

Please sign in to comment.