def _is_valid_status_param(self, status, param):
        statuses = {
            WorkflowExecution.STATUS_OPEN: set([
                'oldest_date',
                'latest_date'],
            ),
            WorkflowExecution.STATUS_CLOSED: set([
                'start_latest_date',
                'start_oldest_date',
                'close_latest_date',
                'close_oldest_date',
                'close_status'
            ]),
        }
        return param in statuses.get(status, set())