From 84c614a33e4facdca7f014ca5f845e3b7daf1c48 Mon Sep 17 00:00:00 2001 From: saksham2105 Date: Fri, 5 Jul 2024 20:02:34 +0530 Subject: [PATCH] minor fixes --- .../io/orkes/samples/workers/DynamicSubworkflowWorker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/orkes/samples/workers/DynamicSubworkflowWorker.java b/src/main/java/io/orkes/samples/workers/DynamicSubworkflowWorker.java index f8e2c70..69220c0 100644 --- a/src/main/java/io/orkes/samples/workers/DynamicSubworkflowWorker.java +++ b/src/main/java/io/orkes/samples/workers/DynamicSubworkflowWorker.java @@ -44,7 +44,7 @@ public TaskResult execute(Task task) { System.out.println("Starting dynamic_subworkflow_task"); TaskResult result = new TaskResult(task); try { - result.setOutputData(startQuestWorkflow()); + result.setOutputData(startExistingWorkflow()); } catch (JsonProcessingException e) { throw new RuntimeException(e); } @@ -52,7 +52,7 @@ public TaskResult execute(Task task) { return result; } - public Map startQuestWorkflow() throws JsonProcessingException { + public Map startExistingWorkflow() throws JsonProcessingException { StartWorkflowRequest request = new StartWorkflowRequest(); request.setName("dynamic_workflow"); Map inputData = new HashMap<>();