I have setup a rule.

When activated I want it to add 10 energy to the viewed node.

I have first created a variable that gets added when the rule is activated. It is set to "decimal number" with the value of 10.

Next I have the "Add an incident" action setup. Here I first use the field on my content type (node:field-radioactivity). Next I choose the variable as the "energy" I want to add.

However, the energy never gets added. I know the rule works because I have tried to add a "System Message" to the action list.

Any suggestions?

Comments

madeby’s picture

I think it is adding the energy now but not right away. How and when is the energy added to the field?

neomenlo’s picture

I've been struggling with this too.

Although, I don't think your use case of rules makes sense. The field for the content type should do that automatically. Try making it show the raw value in "manage display" for the content type and see if it increments.

I can't get rules to work, but the energy doesn't automatically increment using the field either, so I suspect there's a bigger bug in my installation.

madeby’s picture

I also have a problem with the field. See here: http://drupal.org/node/1393848

neomenlo’s picture

I had two issues that I had to fix.

It sounds like the problem for you is this one: http://drupal.org/node/1396092

You may also have this issue, which you might want to look into. http://drupal.org/node/1396088

tcmug’s picture

FYI:
There are now two new Rules actions in the dev version (or currently in the head version - its waiting to be generated). These are:
Set energy
Get maximum energy

The set energy is basically the same as Set value but its using the Radioactivitys internals for the task.

Note that "Add incident" only add an incident to the processing queue using the fields decay profiles storage class. Set energy simply sets the current value of a field to the given value.

Anonymous’s picture

The set energy is basically the same as Set value but its using the Radioactivitys internals for the task.

What's the difference between these two? As I can see, "set energy" requires a variable for input, while with "set value" I can use a static value or a field/variable (this even with a static offset).

So I wonder, if I can use the "set value" for setting and resetting the field without screwing up Radioactivity internals. It would spare me the use of an additional "add variable" action.

sutharsan’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Issue triage: Closing issue due to lack of activity.

If you believe this issue is closed in error, feel free to re-open.