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-09 18:17:39 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-09-09 23:56:06 +0300
commitae1cc1d14dda99f62714d5e658e6cb71378aaae2 (patch)
treeef6251a499db11e4b3db7772f4d6ac5a3de6ed15 /lib/public/WorkflowEngine/IOperation.php
parent849d025d093d1c80d3820901d20bf6a664c6af02 (diff)
entities equip the RuleMatcher on the events they are aware of
Operations will receive the matcher instance Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public/WorkflowEngine/IOperation.php')
-rw-r--r--lib/public/WorkflowEngine/IOperation.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/public/WorkflowEngine/IOperation.php b/lib/public/WorkflowEngine/IOperation.php
index 8bba92351a2..d16fd618a84 100644
--- a/lib/public/WorkflowEngine/IOperation.php
+++ b/lib/public/WorkflowEngine/IOperation.php
@@ -91,12 +91,13 @@ interface IOperation {
* 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.
+ * implementor by calling the RuleMatchers getMatchingOperations method
+ * and evaluating the results.
*
- * If the implementor is an IComplexOpe ration, this method will not be
+ * If the implementor is an IComplexOperation, 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;
+ public function onEvent(string $eventName, GenericEvent $event, IRuleMatcher $ruleMatcher): void;
}