I've sucessfully configured Rules to change a CCK field value some number of days after a node is saved. In other words, for each updated node, a rule set is scheduled to run after N days with the node as argument. It's working very well for newly added/updated content.

However, my site has 2K user generated nodes that were created before I configured the rule system, and so it comes my question: is there any way to simulate the triggering of my rules on that 2k nodes? I mean, if a node has an update date of 2008-01-01, then how to schedule my "Change CCK field" rule to run N days after that (which, based on my current value of N, would make it to execute immediately)?

I thought of using Views Bulk Operations and re-save all nodes, but this would change the update time of the nodes to the exact time I do the save. That's not what I want to accomplish (though it will be my plan B if using the actual update time is not possible).

Anyone has an ideai about how to do it?

Comments

flaviovs’s picture

Component: Rules Core » Rules Engine

I just saw that I can run rule sets using VBO. It looks like it can be done using just VBO + a rule set that mimics my original scheduler rule but that do the schedule based on node current update time, instead of 'now'.

tr’s picture

Component: Rules Engine » Rules Core
Issue summary: View changes
Status: Active » Closed (outdated)