switch (workflowState)
                {
                    case Constants.Constants.WorkflowStates.NotRetracted:
                        subQuery = subQuery.Where(x => x.WorkflowState != Constants.Constants.WorkflowStates.Retracted);
                        break;