In certain situations, you might come across scenarios where a fellow developer has checked out rules but is unable to check them in or discard for various reasons. This could be due to issues such as a corrupted operator ID, preventing them from logging in, or unexpected departures from the project. Having rules checked out can impede the ability to lock the ruleset for release to a production system. This post details the process of discarding and cleaning up rules checked out by other operators in such instances.
1.Initially, identify a checked-out rule. In this illustration, the operator "chota.bheem" has checked out an activity rule named "MyActivity."
2. Log in to Dev Studio using another operator ID and select "Release Lock" from the Actions menu on the rule form.
3. At this stage, the checked-out status appears to be resolved. If needed, you can proceed to check out the rule or lock the ruleset.
4. Nevertheless, this alone is insufficient. Residual data persists in the database, and it is recommended to perform a cleanup.
4-1. Actual Rule Table
Identify the physical table corresponding to the rule type. Numerous derived rules tables are available, and you can verify them by using the "Test Connection" button on the class form. For instance, Rule-Obj-Activity is mapped to pr4_rule. Look for a rule where the pyruleset value is <OperatorID> + @, such as "chota.bheem@."
This rule is currently checked out. Deleting it has the same effect as performing a discard operation.
delete from rules.pr4_rule
where pyrulename = 'MyActivity' and pyruleset = 'chota,bheem@'
4-2. Data-Rule-Summary (pr4_rule_vw table)
You can also delete this record.
delete from rules.pr4_rule_vw
where pyrulename = 'MyActivity' and pyruleset = 'chota.bheem@'
Comments
Post a Comment