Skip to content
Snippets Groups Projects
Commit d7174d4b authored by Todd Dembrey's avatar Todd Dembrey
Browse files

add the docstring about the structure of the workflow

parent 5722c5e0
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,17 @@ from collections import defaultdict ...@@ -2,6 +2,17 @@ from collections import defaultdict
import itertools import itertools
"""
This file defines classes which allow you to compose workflows based on the following structure:
Workflow -> Stage -> Phase -> Action
Current limitations:
* Changing the name of a phase will mean that any object which references it cannot progress. [will
be fixed when streamfield, may require intermediate fix prior to launch]
"""
class Phase: class Phase:
def __init__(self, name, display, stage, permissions, step, transitions=dict()): def __init__(self, name, display, stage, permissions, step, transitions=dict()):
self.name = name self.name = name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment