using hobo rules engine to resolve if-then-else rules