[rules-users] calling a function from "when"