Suggestions on an approach using Rules and Workflow Module

Events happening in the community are now at Drupal community events on www.drupal.org.
bsnodgrass's picture

I just today started looking at the Rules Module. The description looks like it fits the bill but not being a programmer type I want to make sure I am on the right track.

I have workflow, workflow access, and workflow fields set to do the workflow transitions I would like on a per content type basis.

The Rules Module description states, "The rules modules allows site administrators to define conditionally executed actions based on occurring events (ECA-rules). It's a replacement with more features for the trigger module in core and the successor of the workflow-ng module." On first glance I wasn't sure, but...

On looking at the UI for the rules module initially it looked like all I could do was select existing actions which did not seem right... Digging in a bit further I discovered that one I saved a label with an "event" (isn't this the same as a trigger?) I was presented with a fieldgroup to add "Rule Elements"! Very cool!

So now I can add condition/s and event/s (of my own creation to the "event"). It also looks like you can define another "event" that passes variables in cases where there are identified conditions which cannot be configured.

I'm not sure I have my head around the possibilities yet.. but this looks extremely powerful. - Hey if I am wrong, please let me know!

kudos!!! to fago! I can't contribute code but I would be happy to volunteer to help with some documentation!

I would love to hear some complex examples where this module has been used to create some complex workflows. Also note failures and limitations to keep me from wasting my time.

One last note to all you "lack of documentation" complainers out there.... don't be afraid to push past what might appear on the screen, or what you perceive as lack of documentation or instructions... You probably will find nuggets if you are willing to experiment!

Comments

tutorial

fago's picture

Perhaps this "old" workflow-ng tutorial is of interest for you? http://drupal.org/node/156317
It applies the same way for rules.

It would be also nice to have rules support for the workflow module, however that's still missing.
Also have a look at the list of modules providing more rules integration: http://groups.drupal.org/node/10270/rules-modules - e.g. with content access you can alter node access with rules.

Busting my bubble

bsnodgrass's picture

So it sounds like my excitement over rules is well placed.. but you are busting my bubble...

I was really hoping for something that could be used to extend workflow to include conditional rules checking which would integrate the workflow states I have in place. e.g. capability to alter node and or field level access with workflow access and workflow fields.

Has their been any discussion between projects on how to make that happen?

Bob Snodgrass

Bob Snodgrass

perhaps also see

fago's picture

perhaps also see http://drupal.org/node/396086 - so you can use the tokens provided by workflow

However I think it would make sense to add proper rules support to workflow, e.g. a condition to check whether a state has changed or the node is currently a given state. Is there an action to do a state change? (I'm not a workflow user)

Action for a state change

bsnodgrass's picture

yes there is an action to do a state change

"Change workflow state of post to next state"

Bob Snodgrass

Bob Snodgrass

Possible use case

bsnodgrass's picture

Would the use of Rules provide support for this use case?

http://groups.drupal.org/node/20762

Bob Snodgrass

Bob Snodgrass

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: