7 – How to access the fields of a custom node variable in a custom rules event?

I've created a custom Rules event according to the instructions in https://drupal.stackexchange.com/a/215857/16550. The event contains a custom node variable:

Function MYMODULE_rules_event_info () {
Return Array (
& # 39; # 39 & MY_EVENT; => array (
& # 39; label & # 39; => t (& # 39; my custom event & # 39;),
& # 39; group & # 39; => t (& # 39; my group & # 39;),
& # 39; # 39 & module; => & # 39; MYMODULE & # 39 ;,
& # 39; variable & # 39; => Array (
& # 39; # 39 & my_variable; => array ("type" => "node", "label" => t ("this is a node #")),
)
)
);
}

As expected, the variable my variable appears in the available tokens in a new rule. I would like to change a field with the name now Integer of my variable Node, so I tried to add the conditions

  • Entity is of type: quiz result response
  • Entity has field: field_integer

I still can not access it my variable: field_integer in all rule actions. How can I do that?

Note: As the first rule condition says, my variable my variable is a quiz result response provided by the Quiz module. I do not think it's related to the problem, but you never know for sure …