Adds rule definition in Activity edit form