aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Manager.php
Commit message (Collapse)AuthorAgeFilesLines
* chore(db): Correctly apply query typesGit'Fellow2024-10-171-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | fix: psalm fix: error fix: add batch fix: fatal error fix: add batch chore: add batch chore: add batch fix: psalm fix: typo fix: psalm fix: return bool fix: revert Manager
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-3/+3
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(psalm): Fix @throws annotationsfix/psalm/throws-annotationsprovokateurin2024-09-171-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-5/+5
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-311-26/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix(workflowengine): use andWhere() not second where()Arthur Schiwon2023-11-131-1/+1
| | | | | | | - an unconditional where() condition is added right before - fixes also wrongly named methods in the Exception message Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Migrate applications away from deprecated ILoggerCôme Chilliet2023-09-211-52/+12
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(workflowengine): Remove legacy event (deprecated since 17)Joas Schilling2023-07-191-10/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also check the scope when reading operations from the databaseJoas Schilling2023-02-231-0/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Validate the scope when validating operationsJoas Schilling2023-02-231-3/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* perf(workflowengine): Cache query that is performed on every requestJulius Härtl2023-02-101-2/+18
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move CappedMemoryCache to OCPCarl Schwan2022-07-141-1/+1
| | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add stricter psalm type for CappedMemoryCacheCarl Schwan2022-05-121-4/+5
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix similar potential problems with fetchOne loopsCôme Chilliet2022-03-081-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Set alias for result of cast column functionDaniel Kesselberg2021-08-161-1/+2
| | | | | | On OCI an expression like to_char(events) end up as $row['to_char(events)'] in the query result. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-3/+11
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-8/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* inform the user when flow config data exceeds thresholdsArthur Schiwon2020-10-281-0/+9
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix type errors detected by PsalmChristoph Wurst2020-10-141-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't use SELECT DISTINCT when to_char() is used in a WHERE statementJoas Schilling2020-09-071-3/+3
| | | | | | Nice bug in Oracle Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-15/+15
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add app config to disable user flowsJulius Härtl2020-03-211-1/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Annotate $additionalScopes so the IDE knows what type $scopeCandidate is.Daniel Kesselberg2020-03-171-0/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* log Flow activityArthur Schiwon2020-01-281-1/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Use the new Events in FlowRoeland Jago Douma2020-01-021-14/+21
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Validate check array in the backendJulius Härtl2019-12-271-0/+7
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* report list of entities without array keys to frontendArthur Schiwon2019-12-211-2/+2
| | | | | | | lead to a blank flow settings page when a third party entity was registered. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Make sure event names is always an arrayJulius Härtl2019-12-061-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* expose user of running flowsArthur Schiwon2019-11-281-0/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* allow user flows when the acting user is legitimate, but not its ownerArthur Schiwon2019-11-281-0/+26
| | | | | | for instance, when a sharee changes a file, the owner can act upon Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Decode list of events when returning themJulius Härtl2019-10-291-0/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add endpoint to test operations before submittingJulius Härtl2019-09-101-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* let a dedicate service serve a stateful processArthur Schiwon2019-09-091-92/+5
| | | | | | | | * includes making ICheck not requiring any context setter * and IFileCheck extending the IEntityCheck as entity data can be handed in via Dispatcher Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* No need to get the class since the entity is already the class stringJulius Härtl2019-09-091-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* add type hint for IDEArthur Schiwon2019-09-091-0/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* extends ICheck with scope and entity support, provide them as initialStateArthur Schiwon2019-09-091-5/+51
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* WFE as proxy listen to relevent events and forwards themArthur Schiwon2019-09-091-0/+27
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* use correct builder instanceblizzz2019-09-091-1/+1
| | | | | | Signed-off-by: blizzz <blizzz@arthur-schiwon.de> Co-Authored-By: Julius Härtl <jus@bitgrid.net>
* split events DB field into entity and events, adjust biz logicArthur Schiwon2019-09-091-23/+36
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* extend DB table, manager, controller with support for entity eventsArthur Schiwon2019-09-091-7/+56
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* remove IEntity's getId in favor of class nameArthur Schiwon2019-09-091-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* merge IOperator with IOperation for simplicityArthur Schiwon2019-09-091-8/+7
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add operator interfaces / APIArthur Schiwon2019-09-091-1/+32
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* scope aware workflow controller and managerArthur Schiwon2019-09-091-73/+154
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* the workflow manager becomes scope aware, Part 1Arthur Schiwon2019-09-091-4/+29
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* introducing Entity interfaces and a File one as first implementationArthur Schiwon2019-09-091-1/+55
| | | | | | also adds admin settings that pass entities as initial state Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* open the WFE to deal with other subjects but filesArthur Schiwon2019-09-091-2/+28
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* provides an OCS workflow controller for adminsArthur Schiwon2019-09-091-0/+35
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>