public void registerWorkflowDef(WorkflowDef workflowDef) {
        Preconditions.checkNotNull(workflowDef, "Worfklow definition cannot be null");
        stub.createWorkflow(
                MetadataServicePb.CreateWorkflowRequest.newBuilder()
                        .setWorkflow(protoMapper.toProto(workflowDef))
                        .build());
    }
Register a workflow definition with the server

@param workflowDef the workflow definition
grpc-client/src/main/java/com/netflix/conductor/client/grpc/MetadataClient.java