Through the Project Explorer

Variables can also be declared from the Project Explorer view.

To do this, expand the Rulebase Models folder, then expand the .rul rulebase file and the rule under it, and right click the Declare Variables node.

A dialog is displayed for variable creation with content similar to the Properties Tab (see Variable Properties).