Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
d7174d4b
Commit
d7174d4b
authored
6 years ago
by
Todd Dembrey
Browse files
Options
Downloads
Patches
Plain Diff
add the docstring about the structure of the workflow
parent
5722c5e0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
opentech/apply/funds/workflow.py
+11
-0
11 additions, 0 deletions
opentech/apply/funds/workflow.py
with
11 additions
and
0 deletions
opentech/apply/funds/workflow.py
+
11
−
0
View file @
d7174d4b
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment