Jump to content

Use a workflow on a node: Difference between revisions

From NusaATK
RichK (talk | contribs)
RichK (talk | contribs)
Line 39: Line 39:
Just like Mantis bug flow.  Important for businesses to have some workflows.
Just like Mantis bug flow.  Important for businesses to have some workflows.


Microsofts definition:
==== Microsoft definition ====
 
http://msdn2.microsoft.com/en-us/library/ms194981(VS.80).aspx
http://msdn2.microsoft.com/en-us/library/ms194981(VS.80).aspx


Plone definition:
==== Plone definition ====
 
http://plone.org/documentation/tutorial/creating-workflows-in-plone/defining-workflow-states/tutorial-all-pages
http://plone.org/documentation/tutorial/creating-workflows-in-plone/defining-workflow-states/tutorial-all-pages


http://plone.org/documentation/tutorial/creating-workflows-in-plone/defining-transitions
http://plone.org/documentation/tutorial/creating-workflows-in-plone/defining-transitions


Metaflow( sheesh... ):
==== Metaflow( sheesh... ) ====
 
http://www.zopemag.com/Issue001/Section_Tutorials/tutorial_metaflow_01.html
http://www.zopemag.com/Issue001/Section_Tutorials/tutorial_metaflow_01.html


 
==== Other CMS/Trackers ====
Other CMS/Trackers:
 
http://docs.knowledgetree.com/manuals/ag/creating_and_using_workflows.html
http://docs.knowledgetree.com/manuals/ag/creating_and_using_workflows.html


http://www.problemtracker.com/pthelp554/Admin/bots_admin_states.htm
http://www.problemtracker.com/pthelp554/Admin/bots_admin_states.htm


 
==== More Background ====
More Background:
 
http://www.workflowpatterns.com/  :-)
http://www.workflowpatterns.com/  :-)


Line 69: Line 62:
http://www.theserverside.com/tt/articles/article.tss?l=Workflow
http://www.theserverside.com/tt/articles/article.tss?l=Workflow


And Finally:
==== And Finally ====
 
http://www.bkent.net/Doc/darxrp.htm
http://www.bkent.net/Doc/darxrp.htm

Revision as of 16:49, 28 January 2008

ATK Howto: Use a workflow on a node

Complexity: Advanced
Author: Leon de Rijke <leon [at] ibuildings.nl>

List of other Howto's

To Do: clean this up and make a real howto of it.

To use the workflow module on a node you have to add a configuration file named <module>.workflow.inc.php (with <module> being the module you are working on). In this configuration file you need to enter the following settings:

$options = array();

// actions that are used by your node. The ones listed are common, but if you use any custom actions add them here
$options["actions"]                = array("edit", "delete", "view", "copy"); 

// actions that should not have any workflow and should be ignored
$options["ignore"]                 = array(); 

// fields that can be altered by the workflow module using actions.
$options["fields"]                 = array("title", "location", "code", "hide", "accessible"); 

// fields that group different versions (only used when using multi-workflow)
$options["multi-version"]          = array("location", "code");

// fields that should be displayed in addition to the multi-version fields.
$options["version-display-fields"] = array("title", "hide"); 

// fields that can be used in e-mails that are send by the workflow module.
$options["mail-fields"]            = array("id", "location", "code", "title"); 

// workflow node template (you should not need to change this, only when building rare and custom flows.)
$options["template"]               = "modules/workflow/framework/templates/node.tpl"; 
  
// register the node to the workflow module using the options stated above
wf_registerNode("mymodule.mynode", $options);

After doing this you will see a new node available in the backend administration of the workflow module. When you select the node you can start adding the states and transitions you need for the workflow.

What Is Workfow?

Just like Mantis bug flow. Important for businesses to have some workflows.

Microsoft definition

http://msdn2.microsoft.com/en-us/library/ms194981(VS.80).aspx

Plone definition

http://plone.org/documentation/tutorial/creating-workflows-in-plone/defining-workflow-states/tutorial-all-pages

http://plone.org/documentation/tutorial/creating-workflows-in-plone/defining-transitions

Metaflow( sheesh... )

http://www.zopemag.com/Issue001/Section_Tutorials/tutorial_metaflow_01.html

Other CMS/Trackers

http://docs.knowledgetree.com/manuals/ag/creating_and_using_workflows.html

http://www.problemtracker.com/pthelp554/Admin/bots_admin_states.htm

More Background

http://www.workflowpatterns.com/  :-)

http://java-source.net/open-source/workflow-engines/micro-flow

http://www.theserverside.com/tt/articles/article.tss?l=Workflow

And Finally

http://www.bkent.net/Doc/darxrp.htm