private void validate(TaskModel task) {
        try {
            Preconditions.checkNotNull(task, "task object cannot be null");
            Preconditions.checkNotNull(task.getTaskId(), "Task id cannot be null");
            Preconditions.checkNotNull(
                    task.getWorkflowInstanceId(), "Workflow instance id cannot be null");
            Preconditions.checkNotNull(
                    task.getReferenceTaskName(), "Task reference name cannot be null");
        } catch (NullPointerException npe) {
            throw new IllegalArgumentException(npe.getMessage(), npe);
        }
    }
Stores the correlation of a task to the workflow instance in the datastore

@param taskId the taskId to be correlated
@param workflowInstanceId the workflowId to which the tasks belongs to
redis-persistence/src/main/java/com/netflix/conductor/redis/dao/RedisExecutionDAO.java