Pārlūkot izejas kodu

dist de workflow

Luciano Andrade 7 gadi atpakaļ
vecāks
revīzija
433e1c9855
2 mainītis faili ar 44 papildinājumiem un 2 dzēšanām
  1. 43 1
      app/Resources/workflows/workflow_list.yml.dist
  2. 1 1
      composer.lock

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

@@ -1 +1,43 @@
-
+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

+ 1 - 1
composer.lock

@@ -2010,7 +2010,7 @@
                     "email": "stof@notk.org"
                 },
                 {
-                    "name": "Knplabs",
+                    "name": "KnpLabs",
                     "homepage": "http://knplabs.com"
                 },
                 {