Understanding Environments¶
Environments are containers of resources, with specific options and sources, which allow users to effectively organize permissions and roles for all internal resources within Rulex Platform.
Tip
Environments have an additional permission type, called Create. Through this permission type, new resources and environments can be added within environments.
The sequence of interconnected environments that leads to a specific resource is referred to as the Environment Path. It is possible to navigate through environments, from a lower to a higher level, by clicking on the Explorer path in the Explorer.
Resources are uniquely identified by their complete path, in the same way as you would interacting with files in a standard operating system explorer. Every path starts with a leading ‘/’ and contains ‘/’ as a separator.
Danger
Due to this path management, the character ‘/’ is forbidden in both Environment and Resource names.
Procedure
To create an Environment, you need to open the Explorer (for more information refer to the corresponding page) and follow the following steps:
Click the Explore resources icon to open the Explorer pane.
Hover over the Plus button.
Select Add new environment.
Enter a unique name for your environment.
Click Create: the new environment will now be added to the list.
Danger
The character ‘/’ must not be used in the names of Environments or Resources as it is already part of the path structure.
Creating Environments¶
An initial default Environment is created within Rulex Platform. Subsequently, new environments can be added, either as a top-level environment, or within an existing environment to create a folder-like structure.
Procedure
To create and Environment, open the Explorer (for more information, see the Explorer page) and perform the following operations:
Click the Explore resources icon to open the Explorer pane.
Hover over the Plus button.
Select Add new environment.
Enter a unique name for your environment.
Click Create: the new environment will now be added to the list.
Importing Environments¶
New environments can be added, either by creating them from scratch, as explained above, or by importing environments that were previously exported from other projects.
Along with the Environment itself, its resources and variables will also be imported.
Note
The file to import must have been previously exported in a Rulex Environment format (.renv).
Prerequisites
you must have browsed to the environment which will contain the imported environment.
the Create permission for the environment where you will perform the import operation must have been assigned to you.
the environment you want to import must be in .renv format.
Procedure
Open the Explorer.
Hover over the Plus icon and click on the Import Environment icon.
Select the Source type (Saved or Custom) and insert the filesystem configuration, if you have selected the Custom mode.
Choose the .renv files to be imported by clicking the Select button in the Path 1 section.
If you want to import more than one environment at the same time:
Click on the Add new path button, located next to the Select button.
Select the file you want to import. If you want to import a folder, click on the folder icon before clicking on the Select button. If you choose to import a folder, all the environments within it will be imported.
Click on the X button, located next to the Select button, to cancel the corresponding path. Alternatively, click on the Delete all paths button, located under the Add new path button, to cancel all the inserted paths.
Imported environment names will be automatically deduced from their file names, automatically maintaining unique resource names.
Click on Import to complete the import operation or on Cancel to close the Import Environment panel without importing environments.
Exporting Environments¶
If you want to save a copy of your Environment to send it to other users or to store it, you can export an entire environment from the Environment Context Menu.
This exported file can then be imported on any machine where Rulex Platform is installed.
Prerequisites
you must have browsed to the environment where the environments you want to export are located.
the Share permissions for the environment you want to export must have been assigned to you.
Warning
The exported .renv files will contain all the resources within it for which the user performing the export operation has Share permissions.
Procedure
Open the Explorer.
Right-click the environment you want to export, and select Export Environment.
Select the Source type (Saved or Custom) and insert the filesystem configuration details, if you have selected the Custom mode.
Select the folder where you want to save the exported environment file.
If you are exporting a single resource, enter the required name for output file in the Insert desired resource name text box.
To add the timestamp of the operation as a prefix or suffix to the file name, select one the following checkboxes:
Add current date and time as prefix
Add current date and time as suffix
This may be necessary to guarantee a unique file name (otherwise any previously exported environments with the same name could be overwritten).
Click Export. When the progress bar reaches 100%, your exported environment will be saved in the specified location.