Luciano Andrade 7 年之前
父節點
當前提交
f1abc65f9b
共有 1 個文件被更改,包括 69 次插入1 次删除
  1. 69 1
      app/Resources/workflows/workflow_list.yml.dist

+ 69 - 1
app/Resources/workflows/workflow_list.yml.dist

@@ -1 +1,69 @@
-
+framework:
+  workflows:
+    olt_workflow:
+      type: state_machine
+      marking_store:
+        type: single_state
+        arguments:
+          - currentState
+      supports:
+        - FTTHBundle\Entity\OLT
+      initial_place: disabled
+      places:
+        - enabled
+        - disabled
+      transitions:
+        disable:
+          from: enabled
+          to: disabled
+        enable:
+          from: disabled
+          to: enabled
+    onu_workflow:
+      type: state_machine
+      marking_store:
+        type: single_state
+        arguments:
+          - currentState
+      supports:
+        - FTTHBundle\Entity\ONU
+      initial_place: active
+      places:
+        - active
+        - disable
+      transitions:
+        add_config:
+          from: active
+          to: active
+        disable:
+          from: active
+          to: disable
+        active:
+          from: disable
+          to: active
+    nose:
+      type: state_machine
+      marking_store:
+        type: single_state
+        arguments:
+          - currentState
+      supports:
+        - FTTHBundle\Entity\ONU
+      initial_place: state_two
+      places:
+        - state_one
+        - state_two
+        - state_three
+      transitions:
+        one_to_two:
+          from: state_one
+          to: state_two
+        two_to_three:
+          from: state_two
+          to: state_three
+        two_to_one:
+          from: state_two
+          to: state_one
+        three_to_one:
+          from: state_three
+          to: state_one