I'm trying to create a Rules component that must do:
Create a Message entity
Establish the type of message to create from a variable that the component gets
Save the created Message entity
It seems easy but I can't make it work.
I create a component "Action set", and define two variables: "User" of type "User" and "Message type" of type "Message type category".
I add the first action: Create a new entity
On entity type select "Message"
On Message type, I change to "switch to data selection" and gets the above defined variable "Message type". The data selector list don't let me select message-type, only message-type:, so perhaps there is a mistake on defining the tokens??