How to use tokens in data selectors in Rules and how to get autocomplete to work? In Drupal 7, the Rules module was quite simple to use. You create a rule, define it's action and done. In Drupal 8 version of Rules however, i.e the alfa1 version (which is what I'm using), I see some weird behavior.

I am not able to use tokens in data selectors (also autocomplete won't work).

What I want to accomplish:
I have two roles: admin and non-admin.

When a user assigned with the role as admin log in, he should be redirected to his dashboard (url: /admin/dashboard)
When a user assigned with the role of non-admin, he should be redirected to his particular page (url: /non-admin/dashboard)

There are 2 Rules Conditions related to User Roles:


one is under "Others" tab (= User Role).
one is under "User" tab (= User has role(s)).


Both are shown in the image below:



When I choose the 2nd one, I always get an php error (issue already posted on Rules on that).

When I choose the 1st one, no matter what I pass in the Rules Condition, it always returns true and performs the Rules Action.



Am I missing something?
Note: This is not an accurate answer of this problem, as by this time, the Rules module is still in development. This is what I did to solve my problem:

Download PHP Module, as it is removed from Drupal core and is a contrib module now. In Rules, create a new condition known as "PHP execute" and write a php segment which checks user role.

This is probably the easiest way around this problem and will work fine if you are trying to fiddle around. But for production site, I won't recommend this.