[support] Workflow - Actions - Views integration

Bill Fitzgerald bill at funnymonkey.com
Mon May 23 00:16:02 UTC 2011


I'd look at the Flag module for this. You could set up a flag action that would trigger the workflow state change. 

Flag has excellent views integration as well. 

Cheers,

Bill

Sent via mobile. 
--

Bill Fitzgerald
http://funnymonkey.com
FunnyMonkey -- Click. Connect. Learn.
ph. 971 409 8066

On May 22, 2011, at 5:10 PM, "Sharon L. Krossa, PhD" <drupal-skrossa at sharonkrossa.com> wrote:

> Greetings!
> 
> In just about any case, I would use Rules instead of Triggers/Actions
> 
> However, for your particular need, Workflow is already keeping track of who changed the Workflow state in the workflow log (or at least is if you have enabled "Comment for Workflow Log"). I expect Views has access to this information, which should allow you to set up a view that displays the projects a particular evaluator transitioned to "in evaluation".
> 
> Sharon
> --
> Sharon L. Krossa, PhD, drupal-skrossa at SharonKrossa.com
> • Drupal training & consulting
>http://SharonKrossa.com/ - (650) 492-8092
> 
> On May 22, 2011, at 5:51 AM, toon severijns wrote:
> 
>> I am looking for some advice on an issue i'm having involving Workflow, Actions and Views.
>> 
>> I am working with a content type "project". A project can have many different states. I use the Workflow module to define those states, the transitions between them and the permissions based on user roles. 
>> 
>> A very concrete example of what i need to do is this:
>> 
>> A user with the role "evaluator" needs to be able (preferably by simply clicking a button) to take in a project for evaluation, i.e. he/she needs to bring a project from the state "new" to the state "in evaluation". I kind of got to this with Workflow. Moreover, this state change needs to trigger an action that not only changes the state, but also remembers that that particular user took that project "in evaluation". In other words i need to set a user reference field to hold the state-updating user. This way i hope to be able to list the evaluator's projects "in evaluation" using relationships in Views filtering on the state-updating user (=project's evaluator) being the currently logged in user (correct me if i'm wrong). Unfortunately i don't seem to be able to create an action with the Actions module that sets the project's field "evaluator" to the state-updating user. 
>> 
>> Is it possible to program an action that does the above, and how? Or am i going about this the wrong way? Should i use Rules instead? Or can i use Rules in combination with Workflow? I'm puzzled. 
>> Any help would be greatly appreciated!
> -- 
> [ Drupal support list | http://lists.drupal.org/ ]


More information about the support mailing list