Guided Workflow

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

I'm not sure if this the correct term for my use case. Most of the Drupal related workflow I've seen so far involved with user changing the state and the workflow firing action upon state changes. In my case however, I want the workflow to 'guide' the user so the focus is more the transition/action rather than state. Users doesn't really aware on the state of the object since they are presented with what actions available when they're viewing the object in any particular state.

As example, let's look at the typical publishing process with states and transitions define as:-

Draft - submit (draft -> submitted), edit (draft -> draft).

Submitted - review (submitted -> reviewed), reject (submitted -> rejected).

Reviewed - publish (reviewed -> published).

Published - finish workflow.

Rejected - finish workflow.

When user first created the article, actions available to him would be submit and edit (which I would like to show as a button on the node view page). Next when the workflow progress to being submitted, user with relevant access to the workflow then would be presented with buttons (Review, Reject) on the node view page. At this stage, user would not be allowed to edit the article anymore, unless we define another state and transition to allow such actions.

I'm wondering whether I can achieve this using the existing workflow/rules modules or it's clear that I have to build it from scratch.

Comments

Are you looking for

saurabhperiwal's picture

Are you looking for tasks?

Like if a set of tasks are performed then workflow should automatically changed to next state.

Regards,
Saurabh

After taking a closer look at

k4ml's picture

After taking a closer look at workflow module, it indeed doing what I want for the workflow part. It's more of UI issue where workflow module use radio box to represent available states that user can choose in order to progress the workflow. In my case, I prefer the use of buttons to represent available actions that user can choose in order to progress. I'm quite relieved with this and will take a look at the code to see if I can use this module to achieve what I want.

take a look at graph

eugenmayer's picture

take a look at graph http://drupal.org/project/graphviz_filter .. it has a implementation for workflow and enables you to graphically display the workflow. Very handy

graphiz filter

k4ml's picture

It only help you to visualize the workflow. We have something similar in plain PHP that generate dot file to show the finite state and flow diagram from workflow definition. Still a good modules though that I don't know exists in Drupal land. Think I can find some use of it, thanks.

Well i dont think your that

eugenmayer's picture

Well i dont think your that far from your goal using graphviz.

All you need is to alter that graph, visually mark the current workflow state and also mark the arrows which can be used as the next states. You also have to make them clickable, which actually needs some effort as you must create a proxy page, which will need

  • a new menu callback
  • a confirmation page to secure from CSRF

If you are interested, we could try to get that task done workig together. Let me know.

Workflow

Group organizers

Group notifications

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