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<>();