From a5454cdd71df492dbe703ae83d6f10d7a0538199 Mon Sep 17 00:00:00 2001 From: nthmost-orkes Date: Sat, 28 Mar 2026 21:40:40 -0700 Subject: [PATCH] Fix helloworld example: remove Orkes auth dependency Update helloworld/Main.java to construct ConductorClient directly using CONDUCTOR_SERVER_URL (default http://localhost:8080/api) instead of going through ClientUtil/ApiClient. OSS Conductor has no auth keys, so routing through the Orkes auth-aware ApiClient was unnecessary and caused first-run failures for OSS users. The `application` plugin and example run infrastructure are already on main, and the examples README has been rewritten, so the original PR's other changes in those files are no longer needed. Fixes #95 #96 --- .../com/netflix/conductor/sdk/examples/helloworld/Main.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/old/src/main/java/com/netflix/conductor/sdk/examples/helloworld/Main.java b/examples/old/src/main/java/com/netflix/conductor/sdk/examples/helloworld/Main.java index 5ca54cf45..300fee820 100644 --- a/examples/old/src/main/java/com/netflix/conductor/sdk/examples/helloworld/Main.java +++ b/examples/old/src/main/java/com/netflix/conductor/sdk/examples/helloworld/Main.java @@ -16,15 +16,15 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; +import com.netflix.conductor.client.http.ConductorClient; import com.netflix.conductor.sdk.examples.helloworld.workflowdef.GreetingsWorkflow; import com.netflix.conductor.sdk.workflow.executor.WorkflowExecutor; -import io.orkes.conductor.sdk.examples.util.ClientUtil; - public class Main { public static void main(String[] args) throws ExecutionException, InterruptedException, TimeoutException { - var workflowExecutor = new WorkflowExecutor(ClientUtil.getClient(), 10); + String serverUrl = System.getenv().getOrDefault("CONDUCTOR_SERVER_URL", "http://localhost:8080/api"); + var workflowExecutor = new WorkflowExecutor(new ConductorClient(serverUrl), 10); workflowExecutor.initWorkers("com.netflix.conductor.sdk.examples.helloworld.workers"); var workflowCreator = new GreetingsWorkflow(workflowExecutor); var simpleWorkflow = workflowCreator.create();