def get_rules(scenario_id, **kwargs):
    """
        Get all the rules for a given scenario.
    """
    rules = db.DBSession.query(Rule).filter(Rule.scenario_id==scenario_id, Rule.status=='A').all()

    return rules