diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-08-21 17:36:01 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-08-25 08:42:24 +0000 |
commit | 7f6e2c59530a7242fb5057379a2ee9944282e695 (patch) | |
tree | 6e68fd5c42547ba048b58d02d44f836e98d8b7a3 /lib/public | |
parent | e57e66eedd8bd41973a16dcf294222be5983a023 (diff) | |
download | nextcloud-server-7f6e2c59530a7242fb5057379a2ee9944282e695.tar.gz nextcloud-server-7f6e2c59530a7242fb5057379a2ee9944282e695.zip |
fix possible leaking scope in Flow
- a configured flow can be brought into consideration, despite its event
was not fired
- it could either run through
- or run into a RuntimeException and killing processing of valid flows
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/WorkflowEngine/IRuleMatcher.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/WorkflowEngine/IRuleMatcher.php b/lib/public/WorkflowEngine/IRuleMatcher.php index cb52001a1a2..47ab3a25c3a 100644 --- a/lib/public/WorkflowEngine/IRuleMatcher.php +++ b/lib/public/WorkflowEngine/IRuleMatcher.php @@ -78,4 +78,14 @@ interface IRuleMatcher extends IFileCheck { * @since 18.0.0 */ public function getEntity(): IEntity; + + /** + * this method can be called once to set the event name that is currently + * being processed. The workflow engine takes care of this usually, only an + * IComplexOperation might want to make use of it. + * + * @throws RuntimeException + * @since 20.0.0 + */ + public function setEventName(string $eventName): void; } |