add  helper functions with ActivitiRule as parameter