https://github.com/temporalio/samples-go/blob/master/dsl/starter/main.go#L43
For this line, how would you use the client to create the newWorkflow from the dsl created object. When i look at the workflowClient, it’s not clear how you pass in an argument?
This is where i’m at with the code.
public static void main(String[] args) throws IOException {
WorkflowServiceStubs service = WorkflowServiceStubs.newInstance();
WorkflowClient client = WorkflowClient.newInstance(service);
Path resourceDirectory = Paths.get("resources","dsl","workflow1.yaml");
String absolutePath = resourceDirectory.toFile().getAbsolutePath();
ObjectMapper objectMapper = new ObjectMapper(new YAMLFactory());
objectMapper.findAndRegisterModules();
Workflow workflow = objectMapper.readValue(new File(absolutePath), Workflow.class);
}