Before using a data source in appRules, the metadata must be generated. Metadata is created when you add a new data source and select the connection associated or when you specifically 'Regenerate Metadata' on the toolbar.
To generate metadata, first configure the connection properties and click the 'Create Metadata button' or Refresh metadata (when the datasource already exists) to continue.
A Datasource can have different connection associated for each environment (Test, Production...) but the Metadata is unique. If your environnements metadata models are different, define several datasources.
The environments are defined in the RuntimeSettings section.