Example you can see here. My problem was in this line:
a.notificationRules()[0].notificationRule("Position")