@Override
    public String toString() {
        try {
            return objectMapper.writeValueAsString(toWorkflowDef());
        } catch (JsonProcessingException e) {
            throw new RuntimeException(e);
        }
    }
Generate ConductorWorkflow based on the workflow metadata definition

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