@@ -45,7 +45,9 @@ discard block |
||
| 45 | 45 | { |
| 46 | 46 | $workflowDefinitions = $this->getValidWorkflowsDefinitionsForSignal($signalName); |
| 47 | 47 | |
| 48 | - if ($this->logger) $this->logger->debug("Found " . count($workflowDefinitions) . " workflow definitions for signal '$signalName'"); |
|
| 48 | + if ($this->logger) { |
|
| 49 | + $this->logger->debug("Found " . count($workflowDefinitions) . " workflow definitions for signal '$signalName'"); |
|
| 50 | + } |
|
| 49 | 51 | |
| 50 | 52 | if (count($workflowDefinitions)) { |
| 51 | 53 | |
@@ -59,7 +61,9 @@ discard block |
||
| 59 | 61 | foreach ($workflowDefinitions as $workflowDefinition) { |
| 60 | 62 | |
| 61 | 63 | if (self::$workflowExecuting > 0 && $workflowDefinition->avoidRecursion) { |
| 62 | - if ($this->logger) $this->logger->debug("Skipping workflow '{$workflowDefinition->name}' to avoid recursion (workflow already executing)"); |
|
| 64 | + if ($this->logger) { |
|
| 65 | + $this->logger->debug("Skipping workflow '{$workflowDefinition->name}' to avoid recursion (workflow already executing)"); |
|
| 66 | + } |
|
| 63 | 67 | return; |
| 64 | 68 | } |
| 65 | 69 | |
@@ -83,7 +87,9 @@ discard block |
||
| 83 | 87 | self::$workflowExecuting += 1; |
| 84 | 88 | try { |
| 85 | 89 | |
| 86 | - if ($this->logger) $this->logger->debug("Executing workflow '{$workflowDefinition->name}' with parameters: " . preg_replace("/\n+/s", ' ', preg_replace('/^(Array| +|\(|\))/m', '', print_r($workflowParameters, true)))); |
|
| 90 | + if ($this->logger) { |
|
| 91 | + $this->logger->debug("Executing workflow '{$workflowDefinition->name}' with parameters: " . preg_replace("/\n+/s", ' ', preg_replace('/^(Array| +|\(|\))/m', '', print_r($workflowParameters, true)))); |
|
| 92 | + } |
|
| 87 | 93 | |
| 88 | 94 | /// @todo allow setting of default lang ? |
| 89 | 95 | $this->innerService->executeMigration($wfd, $workflowDefinition->useTransaction, null, $workflowDefinition->runAs, $workflowParameters); |
@@ -1,22 +1,1 @@ |
||
| 1 | -<?php /* |
|
| 2 | - |
|
| 3 | -[EventSettings] |
|
| 4 | -ExtensionDirectories[]=ezworkflowenginebridge |
|
| 5 | -AvailableEventTypes[]=event_ezworkflowenginehook |
|
| 6 | - |
|
| 7 | -[OperationSettings] |
|
| 8 | -# enable all operations supported by eZ 4.1 and up |
|
| 9 | -AvailableOperationList[]=content_sort |
|
| 10 | -AvailableOperationList[]=content_move |
|
| 11 | -AvailableOperationList[]=content_swap |
|
| 12 | -AvailableOperationList[]=content_updatemainassignment |
|
| 13 | -AvailableOperationList[]=content_addlocation |
|
| 14 | -AvailableOperationList[]=content_removelocation |
|
| 15 | -AvailableOperationList[]=content_updatepriority |
|
| 16 | -AvailableOperationList[]=content_hide |
|
| 17 | -AvailableOperationList[]=content_delete |
|
| 18 | -AvailableOperationList[]=content_updatesection |
|
| 19 | -AvailableOperationList[]=content_updateinitiallanguage |
|
| 20 | -AvailableOperationList[]=content_updatealwaysavailable |
|
| 21 | -AvailableOperationList[]=content_removetranslation |
|
| 22 | -AvailableOperationList[]=content_updateobjectstate |
|
| 1 | +<?php |
|
| 23 | 2 | \ No newline at end of file |
@@ -1,5 +1,1 @@ |
||
| 1 | -<?php /* |
|
| 2 | - |
|
| 3 | -[ExtensionSettings] |
|
| 4 | -DesignExtensions[]=ezworkflowenginebridge |
|
| 5 | - |
|
| 1 | +<?php |
|
| 6 | 2 | \ No newline at end of file |