@Override
    protected void updateWorkflowTask(WorkflowTask workflowTask) {
        SubWorkflowParams subWorkflowParam = new SubWorkflowParams();

        if (conductorWorkflow != null) {
            subWorkflowParam.setWorkflowDef(conductorWorkflow.toWorkflowDef());
        } else {
            subWorkflowParam.setName(workflowName);
            subWorkflowParam.setVersion(workflowVersion);
        }
        workflowTask.setSubWorkflowParam(subWorkflowParam);
    }
Start a workflow as a sub-workflow

@param taskReferenceName
@param conductorWorkflow
java-sdk/src/main/java/com/netflix/conductor/sdk/workflow/def/tasks/SubWorkflow.java