Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-09-03 13:42:57 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-09-09 23:56:04 +0300
commitd2c8b939d58239a99163445b83d80873932a5514 (patch)
tree97b20dded7223e2e0fc49704a8b5a1c7b190cefb /lib/public/WorkflowEngine
parentbed518e8abd60875f4fe3d2b0e15fd87b489b6d4 (diff)
WFE as proxy listen to relevent events and forwards them
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public/WorkflowEngine')
-rw-r--r--lib/public/WorkflowEngine/IOperation.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/public/WorkflowEngine/IOperation.php b/lib/public/WorkflowEngine/IOperation.php
index 0862588e86f..8bba92351a2 100644
--- a/lib/public/WorkflowEngine/IOperation.php
+++ b/lib/public/WorkflowEngine/IOperation.php
@@ -23,6 +23,8 @@
namespace OCP\WorkflowEngine;
+use Symfony\Component\EventDispatcher\GenericEvent;
+
/**
* Interface IOperation
*
@@ -84,4 +86,17 @@ interface IOperation {
* @since 9.1
*/
public function validateOperation(string $name, array $checks, string $operation): void;
+
+ /**
+ * Is being called by the workflow engine when an event was triggered that
+ * is configured for this operation. An evaluation whether the event
+ * qualifies for this operation to run has still to be done by the
+ * implementor.
+ *
+ * If the implementor is an IComplexOpe ration, this method will not be
+ * called automatically. It can be used or left as no-op by the implementor.
+ *
+ * @since 18.0.0
+ */
+ public function onEvent(string $eventName, GenericEvent $event): void;
}