RM 5.0 Global variables and Hub variables

There is a way to do this with a Local or Cloud endpoint trigger of a rule. It works the same in Rule 5.0 as it did in Rule 4.1.

See Rule Machine API.

/setGlobalVariable=varName:varString

varName could be the name of a Hub Variable.