aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Controller
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-08-28 15:00:02 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-09-09 22:56:03 +0200
commited58343e60e8fed3fe0104e3f334a116a528959f (patch)
tree2d91b86d7d0dfe09496a445df2f8c55102fcc858 /apps/workflowengine/lib/Controller
parent827dd896fa903bb86f3434034952bb0e435a230c (diff)
downloadnextcloud-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.php7
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) {