[task/rule_id] Add functions to rule

Add some functions from interface to rule