aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/WorkflowEngine
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos in lib/public subdirectorySimon L2023-05-101-1/+1
| | | | | | | | | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/public` Signed-off-by: luz paz <luzpaz@github.com> Update lib/public/Accounts/IAccount.php Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: Simon L <szaimen@e.mail.de> Co-Authored-By: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* techdebt(workflowengine): Remove transition event classesJoas Schilling2023-03-032-97/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* composer run cs:fixCôme Chilliet2023-01-209-9/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add Psalm specific scope type hint for the WFE operationChristoph Wurst2021-11-221-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0422-44/+22
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Deprecate all remaining event constantsChristoph Wurst2021-02-091-1/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix typo in @deprecated PHPDoc tagMorris Jobke2020-11-241-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* inform the user when flow config data exceeds thresholdsArthur Schiwon2020-10-281-0/+10
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #22432 from nextcloud/enh/phpdocRoeland Jago Douma2020-08-2618-18/+0
|\ | | | | Add php docs build script
| * Remove @package annotations from public namespaceJulius Härtl2020-08-2618-18/+0
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #22359 from nextcloud/fix/noid/flow-leaking-scopeJoas Schilling2020-08-251-0/+10
|\ \ | | | | | | fix possible leaking scope in Flow
| * | fix possible leaking scope in FlowArthur Schiwon2020-08-241-0/+10
| |/ | | | | | | | | | | | | | | | | - 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>
* / Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-3/+6
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add PHP doc for eventsMorris Jobke2020-08-101-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Enable Flow entities to recreate state if necessaryArthur Schiwon2020-08-051-0/+59
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* flow to not use deprecated event dispatcher methodsArthur Schiwon2020-06-191-0/+34
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-101-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-106-7/+2
| | | | | | | | | | | | | | | 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>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix license headersChristoph Wurst2020-01-134-3/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the new Events in FlowRoeland Jago Douma2020-01-024-6/+171
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headers for 18Christoph Wurst2019-12-201-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow to specify apps that somethign is a dirJoas Schilling2019-12-101-1/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2019-12-0517-17/+48
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* add convenience interfaces so entities can provide presentable detailsArthur Schiwon2019-11-285-0/+180
| | | | | | the File entity starts with a display text (used by talk) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* allow user flows when the acting user is legitimate, but not its ownerArthur Schiwon2019-11-282-0/+39
| | | | | | for instance, when a sharee changes a file, the owner can act upon Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* relax dependency on GenericEvent, instead stay compatible with old eventsArthur Schiwon2019-11-134-4/+101
| | | | | | * also fixes tagging events Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* do not break on Checkers that do not need specific context infoArthur Schiwon2019-10-291-3/+0
| | | | | | request time, for example Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix missing @since'sArthur Schiwon2019-09-092-0/+13
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* entities equip the RuleMatcher on the events they are aware ofArthur Schiwon2019-09-092-3/+11
| | | | | | Operations will receive the matcher instance Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* let a dedicate service serve a stateful processArthur Schiwon2019-09-095-46/+63
| | | | | | | | * 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>
* require IChecks to receive entity contextArthur Schiwon2019-09-091-0/+20
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* seperate setFileInfo from ICheckArthur Schiwon2019-09-092-10/+45
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Return actual event data instead of self callingJulius Härtl2019-09-091-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* extends ICheck with scope and entity support, provide them as initialStateArthur Schiwon2019-09-092-4/+37
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* WFE as proxy listen to relevent events and forwards themArthur Schiwon2019-09-091-0/+15
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* introduce GenericEntityEvent and adapt File entityArthur Schiwon2019-09-091-0/+67
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adds a trigger hint for complex operationsArthur Schiwon2019-09-091-2/+15
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* remove IEntity's getId in favor of class nameArthur Schiwon2019-09-091-14/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* merge IOperator with IOperation for simplicityArthur Schiwon2019-09-095-100/+58
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add operator interfaces / APIArthur Schiwon2019-09-094-0/+192
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add missing @since annotationsArthur Schiwon2019-09-092-1/+9
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* the workflow manager becomes scope aware, Part 1Arthur Schiwon2019-09-091-0/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* introducing Entity interfaces and a File one as first implementationArthur Schiwon2019-09-093-0/+144
| | | | | | 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-0/+34
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersMorris Jobke2017-11-063-0/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Validate the operationJoas Schilling2016-08-191-0/+39
|
* Remove php side of check registrationJoas Schilling2016-07-271-79/+0
|
* Add workflowengineMorris Jobke2016-07-263-0/+183