I have several rules that use the "Load content" action. All "Load content" labels and names I use are visible on every rule set, and any attempt to reuse a name will result in an "already in use" error.

Was this intentional? It did not do this in beta4.

Comments

RoboPhred’s picture

Version: 6.x-1.0-beta5 » 6.x-1.x-dev
Component: Rules Core » Rules Engine

This also happens in dev as of 2009-Mar-07

fago’s picture

Priority: Normal » Critical

ouch, that sounds bad. Thanks for reporting.

fago’s picture

Priority: Critical » Normal

hm, I've checked it and it seems to be working fine? Previously, in beta4 the check was broken - so perhaps this confuses you?

Once there is a variable with a name, registered by the current or a previous rule, you can't use the name again (clash!). However this shouldn't affect rules in other rule sets - so you can use the same variable name in different rule sets. Is it that way for you?

fago’s picture

Status: Active » Postponed (maintainer needs more info)
RoboPhred’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Ah, I though variables were in scope of a single rule (which I improperly called "rule set" in the original report). Thanks for clarifying that.

TripleEmcoder’s picture

Status: Closed (works as designed) » Active

Can you please explain why this works this way? Because of this one needs to have very verbose variable names, which does not add any real value for a given rule.

fago’s picture

Status: Active » Closed (works as designed)

Because it is useful to load something in the first rule, then use in the second. For Rules 2.x, this will change such that variables are limited to a single rule, but instead we streamline the creation of components that can make use of the variables. However for 1.x, this won't change.