Explorar o código

Merge branch 'master' of ssh://200.50.168.30:222/VendorSoftwareFlowdat3/WorkflowBundle

Guillermo Espinoza %!s(int64=8) %!d(string=hai) anos
pai
achega
bf971e7d8e
Modificáronse 2 ficheiros con 19 adicións e 0 borrados
  1. 1 0
      Entity/Action.php
  2. 18 0
      Utils/WorkFlowStates.php

+ 1 - 0
Entity/Action.php

@@ -306,6 +306,7 @@ class Action
         
         return $twig->render($this->name, array(
             'entity' => $entity,
+            'object' => $entity,
             'params' => $this->twigParams,
         ));
     }

+ 18 - 0
Utils/WorkFlowStates.php

@@ -0,0 +1,18 @@
+<?php
+
+namespace WorkflowBundle\Utils;
+
+class WorkFlowStates
+{
+
+    use ChoiceTrait;
+
+    const ACTIVE_STATE = 'active';
+
+    const PENDING_STATE = 'pending';
+        
+    const PRE_NOTICE_STATE = 'pre_notice';
+    
+    const SUSPEND_STATE = 'suspend';
+
+}