private void registerTaskDef(String taskName, String ownerEmail) {
        TaskDef taskDef = new TaskDef();
        taskDef.setName(taskName);
        taskDef.setOwnerEmail(ownerEmail);
        workflowExecutor.getMetadataClient().registerTaskDefs(Arrays.asList(taskDef));
    }
Generate ConductorWorkflow based on the workflow metadata definition

@param def
@return
java-sdk/src/main/java/com/netflix/conductor/sdk/workflow/def/ConductorWorkflow.java