Added "archived_states" set to workflow
authorThierry Florac <thierry.florac@onf.fr>
Wed, 13 Sep 2017 09:34:32 +0200
changeset 41 19622ab599fd
parent 40 71d4fd818c72
child 42 b68e9608644d
Added "archived_states" set to workflow
src/pyams_workflow/workflow.py
--- a/src/pyams_workflow/workflow.py	Mon Sep 11 15:09:16 2017 +0200
+++ b/src/pyams_workflow/workflow.py	Wed Sep 13 09:34:32 2017 +0200
@@ -88,6 +88,7 @@
                  published_states=None,
                  waiting_states=None,
                  retired_states=None,
+                 archived_states=None,
                  auto_retired_state=None):
         self.refresh(transitions)
         self.states = states
@@ -99,6 +100,7 @@
         self.published_states = set(published_states) if published_states else set()
         self.waiting_states = set(waiting_states) if waiting_states else set()
         self.retired_states = set(retired_states) if retired_states else set()
+        self.archived_states = set(archived_states) if archived_states else set()
         self.auto_retired_state = auto_retired_state
 
     def _register(self, transition):