diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-08-28 15:00:02 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-09-09 22:56:03 +0200 |
commit | ed58343e60e8fed3fe0104e3f334a116a528959f (patch) | |
tree | 2d91b86d7d0dfe09496a445df2f8c55102fcc858 /apps/workflowengine/lib/Controller | |
parent | 827dd896fa903bb86f3434034952bb0e435a230c (diff) | |
download | nextcloud-server-ed58343e60e8fed3fe0104e3f334a116a528959f.tar.gz nextcloud-server-ed58343e60e8fed3fe0104e3f334a116a528959f.zip |
split events DB field into entity and events, adjust biz logic
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/workflowengine/lib/Controller')
-rw-r--r-- | apps/workflowengine/lib/Controller/AWorkflowController.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/workflowengine/lib/Controller/AWorkflowController.php b/apps/workflowengine/lib/Controller/AWorkflowController.php index 24f57321834..2e3186e380d 100644 --- a/apps/workflowengine/lib/Controller/AWorkflowController.php +++ b/apps/workflowengine/lib/Controller/AWorkflowController.php @@ -99,11 +99,12 @@ abstract class AWorkflowController extends OCSController { string $name, array $checks, string $operation, + string $entity, array $events ): DataResponse { $context = $this->getScopeContext(); try { - $operation = $this->manager->addOperation($class, $name, $checks, $operation, $context, $events); + $operation = $this->manager->addOperation($class, $name, $checks, $operation, $context, $entity, $events); $operation = $this->manager->formatOperation($operation); return new DataResponse($operation); } catch (\UnexpectedValueException $e) { @@ -125,10 +126,12 @@ abstract class AWorkflowController extends OCSController { string $name, array $checks, string $operation, + string $entity, array $events ): DataResponse { try { - $operation = $this->manager->updateOperation($id, $name, $checks, $operation, $this->getScopeContext(), $events); + $context = $this->getScopeContext(); + $operation = $this->manager->updateOperation($id, $name, $checks, $operation, $context, $entity, $events); $operation = $this->manager->formatOperation($operation); return new DataResponse($operation); } catch (\UnexpectedValueException $e) { |