diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-08-21 18:36:01 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-08-24 14:44:01 +0300 |
commit | 28c0eea8cb0e1016e751a2e28d0b09006751c58b (patch) | |
tree | 949931eeadabd11039bb3e480eea4ef1b959bfea /lib/public/WorkflowEngine/IRuleMatcher.php | |
parent | 9073a6937dc06fa4923a4c30aef6fde75d828ee0 (diff) |
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/WorkflowEngine/IRuleMatcher.php')
-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; } |