Skip to content

Commit 9b81ec3

Browse files
Merge pull request #97 from conductor-oss/fix/apiclient-npe-no-auth-keys
fix: helloworld example — remove Orkes auth dependency for OSS users
2 parents c946e09 + a5454cd commit 9b81ec3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • examples/old/src/main/java/com/netflix/conductor/sdk/examples/helloworld

‎examples/old/src/main/java/com/netflix/conductor/sdk/examples/helloworld/Main.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
import java.util.concurrent.TimeUnit;
1717
import java.util.concurrent.TimeoutException;
1818

19+
import com.netflix.conductor.client.http.ConductorClient;
1920
import com.netflix.conductor.sdk.examples.helloworld.workflowdef.GreetingsWorkflow;
2021
import com.netflix.conductor.sdk.workflow.executor.WorkflowExecutor;
2122

22-
import io.orkes.conductor.sdk.examples.util.ClientUtil;
23-
2423
public class Main {
2524

2625
public static void main(String[] args) throws ExecutionException, InterruptedException, TimeoutException {
27-
var workflowExecutor = new WorkflowExecutor(ClientUtil.getClient(), 10);
26+
String serverUrl = System.getenv().getOrDefault("CONDUCTOR_SERVER_URL", "http://localhost:8080/api");
27+
var workflowExecutor = new WorkflowExecutor(new ConductorClient(serverUrl), 10);
2828
workflowExecutor.initWorkers("com.netflix.conductor.sdk.examples.helloworld.workers");
2929
var workflowCreator = new GreetingsWorkflow(workflowExecutor);
3030
var simpleWorkflow = workflowCreator.create();

0 commit comments

Comments
 (0)