It's a wonderful workflow engine. Can Maestro handle revisions of a node through the workflow? For example, I create a node. It goes through the workflow and get published. Then I create a revision of that node and move it through the workflow again to review. Once the revision is reviewed, it will replace the published one. Thank you.

Comments

_randy’s picture

Out of the box, Maestro can do the entire first portion of your workflow with ease.

With respect to revisioning, Drupal 6 has the Revisioning module (http://drupal.org/project/revisioning) which when combined with Rules and Triggers, and some know-how, can produce a revisioned content workflow.

Now for Drupal 7, Nodes can be revisioned by Drupal itself by editing the node and selecting the "Show Revision information" edit panel -- the issue is that once you revision it through the Node edit routine, the revised node immediately becomes active.

So, there is nothing stopping someone from creating a gated content system with Maestro (easily done and is part of the demo workflow patterns). However as of right now, there would have to be some batch functions/tasks written to manage the revision process to revert a revised node to its parent and continue with the editing process of the newly created revision gated through Maestro.

stevecrawf’s picture

Title: Can Maestro support revision? » Can Maestro support Roles and Organic Groups?
Issue tags: +maestro

I've been playing around with Maestro but am unable to assign tasks to Roles / Organic Groups vs individuals.

Does Maestro (am running latest version) support this?

thx.

chevy’s picture

Title: Can Maestro support Roles and Organic Groups? » Can Maestro support revision?

First of all, please don't change the topic of the Maestro tickets. Second of all, the role and OG assignment is a feature that is already listed: http://drupal.org/node/894536.

vtsan’s picture

Just want to say thank you. You are wonderful!

chiefkw’s picture

Hi _randy,

Thanks for the Meastro contribution. From what I can see and having played with it over the last few days its looks like a powerful workflow engine. I have a content approval workflow working and the link to launch the workflow directly from the content node working also.

But as mentioned above it does not seem to play well when I have revisioning / moderation enabled. The workflow basically does not start.

Can you give me a place to start to troubleshoot or enable what you are refering to above to revert to its parent and continue with the editing process? Is there a debugging / api I can use to see what Meastro is trying to do when I launch the the workflow.

I noticed in the workflow process tables when I try to launch the workflow for a new piece of content it works fine and the meastro process table row is populated but when trying to launch from a revisioned piece of content does nothing.

Is there some documentation for Meastro you can share? Or some troubleshooting tips?

Again thanks for the contribution any additional information you can provide would be helpful.

Cheer

kw

_randy’s picture

@chiefkw:

When you say that the workflow doesn't start when revisioning is on, how are you kicking off the flow? You mentioned a link, but I'm not sure I understand where that link is or how you're using it.

You can use triggers/actions or Rules to kick off a flow as well. We have done projects that combined Maestro and Revisioning, however we don't have any online docs speaking about how we did that specifically.

By using a rule to kick off a workflow when a revision is created may get around the problem you're having?

chiefkw’s picture

@_randy

Thanks for the reply, I have a rule link that uses a the relation between the node and user to start a Meastro workflow. So I have a link that is shown below the node (content) i.e Start Approval Workflow' so if I have created new content (node) I click on the link it starts a Meastro approval workflow that I have created for that content type. This works without issue, goes for approval with the content attached and eventually gets published. But if I have the revision module installed and force a new revision when editing content once the new revision is created the link it still shown but basically nothing happens when I click on the link.

I am trying to troubleshoot what is happening, looking for debugging information, documentation if I need to do something special to get the workflow to start on the just that revision. i.e the revision goes through the workflow independently of the current published node.

i.e the currently active revision stays in place and is then replaced by the approved version.

I am assuming the batch process that does the publishing might need a change to publish the pending revision but the workflow doesn't start at all.

I don't want to automatically kick off a workflow with a rule, our use case is that the workflow is optional, i.e certain users are able to publish the content directly, others will need to go through the approval process.

blainelang’s picture

@chiefkw, there is some support for revisioning now in the latest dev release. I was working on a client project with a w/f to support revisioning and committed the changes a few weeks ago.

You should see that the maestro_reviewContentType interactive task when used, will now show the node revision. The maestro_publishNode batch function will also now check for the node revision and publish the latest revision. Have a look at these functions and it may give you some ideas to use for your custom functions.

chiefkw’s picture

Hi blainelang, Thanks for that. I did notice that code there. I managed to get this working now. The only thing I am trying to do now is have the link to launch the workflow not show if the content is already in a workflow. I have it working so if the node has a pending revision the link is not displayed which is great. But I only want to display the link if the content is not currently in a workflow to stop users from being able to start workflows on content that is already being reviewed / in a workflow. The only reference I can see that links the workflow to the node (content) is the maeatro_project_content table. So I am trying to put a condition on the rule link that detects if its linked to an active meastro workflow process id. Do you have any advice on how to achieve this? I was thinking of adding a maestro task to set a property on the content type i.e in workflow and at the end of the workflow reset this attribute.

Again thanks for the contribution, great module.

I don't want to change the subject and I should probably raise a different request but I was wondering if you have examples of using multiple nodes in a workflow. i.e a workflow that enables users to attach multiple nodes for approval.