What are Scenario Level Locks?
Any Domain created for a Project or Project Version is called a Template Domain. When a Scenario is created, it creates a copy of the Template Domain called a Scenario Domain.
Users can customize Scenario Domains to generate the exact type of data they want for that Scenario. Changes made at the Template level cascade down to the corresponding Scenario Domains.
G-Refactor is the GenRocket tool that performs automatic refactoring for all Domains, Attributes, and impacted Scenarios when changes are made at the Template level.
What Triggers GenRocket’s Automatic Refactoring?
Any time a change is made to the Template Domain or the Domain Relationships, the change cascades down to all Scenarios where the Domain is used. These changes include the following:
- Adding or Removing a Parent/Child Relationship
- Adding or Removing a Sibling Relationship
- Removing an Attribute from the Template Domain
- Adding an Attribute to the Template Domain
- Modifying a Generator (Adding, Remove, Replacing, etc.)
Three Levels of Locks in Scenarios
Locks are provided at each level within the GenRocket platform to prevent changes occurring at the Template level from cascading down to other levels such as the Scenario level.
A user may apply locks at these three levels for Scenarios:
- Scenario Domain
- Scenario Domain Attribute
How to lock Scenarios
Scenario Level Locks allow a user to lock a Scenario at its current state. A Scenario Lock will prevent changes at the Template level from cascading down to the Scenario.
An unlocked Scenario will have a Lock button at the top of the Scenario Dashboard:
A locked Scenario will have an Unlock button at the top of the Scenario Dashboard:
How to Lock Scenario Domains
A user can lock Scenario Domains by clicking on the Lock icon within the Scenario Domains Pane of the Scenario Dashboard. This icon will appear unlocked when the Scenario Domain is not locked.
It will appear locked when the Scenario Domain is locked:
How to Lock Scenario Domain Attributes
A user can lock Scenario Domain Attributes within a Scenario Domain by clicking on the Lock icon within the Scenario Dashboard. This icon will appear unlocked when the Scenario Domain Attribute is not locked and locked when it is locked.
What is G-Refactor?
How to lock and unlock Scenarios