Workflow-ng support for media_mover
JacobSingh - April 27, 2008 - 11:15
| Project: | Media Mover |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
This module integrates workflow-ng with media_mover.
It exposes events on all media mover stages and exposes a couple of conditions:
File type is
and
MM configuration is
It also sorta exposes an action to fire a new configuration, but right now it does not fire because of concerns around regression.
In addition, I've included two sample configurations which can be enabled from the workflow-ng configuration screen.
This patch also includes the patch for token support: which it requires.
| Attachment | Size |
|---|---|
| mm_workflow_ng_and_tokens.patch | 23.85 KB |

#1
Redundant token support issue is at: http://drupal.org/node/251789
#2
#3
This patch has been applied, with a few modifications
* I moved the token support to be its own module. I also did some updates to replace some depreciated functions from some of my more recent media_mover_api changes
* I changed how the workflow_ng integration works by moving it into a specific trigger function which can be called with a variety of arguments
* I updated the media_mover_api_run_config function to abstract things more cleanly for each verb and call the trigger function here
* I updated the names of the tokens to be able to programatically call them
This needs some testing to make sure that I didn't break any additional things