aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* fix possible leaking scope in FlowArthur Schiwon2020-08-242-0/+16
| | | | | | | | | - 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>
* Prefer typed event over string based onesMorris Jobke2020-08-102-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* File entity to implement IIconArthur Schiwon2020-08-071-1/+9
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Flow File entity implements IContextPortationArthur Schiwon2020-08-051-7/+57
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Adjust apps' code to use the ContainerInterfaceChristoph Wurst2020-07-211-5/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #21547 from nextcloud/enhancement/workflowengine-bootstrapRoeland Jago Douma2020-07-022-43/+84
|\ | | | | Migrate WFE to the new bootstrap mechanism
| * Move the event listener into a dedicated classChristoph Wurst2020-06-242-40/+64
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * Migrate WFE to new bootstrap mechanismChristoph Wurst2020-06-241-14/+31
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #21590 from nextcloud/debt/noid/unused-methodRoeland Jago Douma2020-07-021-6/+0
|\ \ | | | | | | Remove unused method.
| * | Remove unused method.Daniel Kesselberg2020-06-251-6/+0
| |/ | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #21599 from nextcloud/debt/noid/type-to-typesRoeland Jago Douma2020-07-021-17/+17
|\ \ | | | | | | Replace TYPE with TYPES
| * | Replace TYPE with TYPESDaniel Kesselberg2020-06-301-17/+17
| |/ | | | | | | | | | | As TYPE::* is deprecated. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* / Also always return in app commandsJoas Schilling2020-06-261-1/+2
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* flow to not use deprecated event dispatcher methodsArthur Schiwon2020-06-192-17/+14
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Flow: Include root folder for shared storages when fetching system tagsJulius Härtl2020-06-151-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move the systemtags to core/srcRoeland Jago Douma2020-05-281-3/+1
| | | | | | | * Move to the handlebar loader from webpack Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Add visibility to all constantsChristoph Wurst2020-04-102-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-103-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1018-67/+52
| | | | | | | | | | | | | | | 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 elseif instead of else ifChristoph Wurst2020-04-105-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-093-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use a blank line after the opening tagChristoph Wurst2020-04-0915-0/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-099-9/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add app config to disable user flowsJulius Härtl2020-03-215-4/+19
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Annotate $additionalScopes so the IDE knows what type $scopeCandidate is.Daniel Kesselberg2020-03-172-1/+5
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #19989 from ↵Roeland Jago Douma2020-03-171-1/+1
|\ | | | | | | | | nextcloud/fix-single-ScopeContext-passed-to-setScopes Fix single "ScopeContext" passed to "setScopes"
| * Fix single "ScopeContext" passed to "setScopes"Daniel Calviño Sánchez2020-03-161-1/+1
| | | | | | | | | | | | | | "setScopes" expects an array, but a single "ScopeContext" was being passed instead. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Hide card for apps store if disabledDaniel Kesselberg2020-03-161-1/+16
|/ | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Continue with next foreach iterationJulius Härtl2020-02-171-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Reduce flow logging at INFO levelJulius Härtl2020-02-141-1/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #18904 from nextcloud/enh/noid/flow-loggingRoeland Jago Douma2020-02-106-2/+392
|\ | | | | Log Flow activity
| * always require a message paramter for data loggingArthur Schiwon2020-01-282-2/+4
| | | | | | | | | | | | also ensure it plays well with current log reader Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * log Flow activityArthur Schiwon2020-01-286-2/+390
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Fix "Call to undefined method OCA\\WorkflowEngine\\Entity\\File::t()"Joas Schilling2020-01-291-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* make the mime type checker for flow available to regular usersArthur Schiwon2020-01-091-0/+4
| | | | 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>
* Remove style loading of non-existing fileJulius Härtl2020-01-021-4/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* 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>
* Merge pull request #18162 from nextcloud/enh/noid/url-fileentityblizzz2019-12-191-1/+13
|\ | | | | flow file entity to provide the internal URL
| * flow file entity to provide the internal URLArthur Schiwon2019-12-131-1/+13
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Flows that are managing themselves do not necessarily set the entityArthur Schiwon2019-12-181-8/+10
| | | | | | | | | | | | | | for instance files_automatedtagging, which works on a lower level. Fixes a Call to a member function isLegitimatedForUserId() on null. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | pass the proper storage-internal pathArthur Schiwon2019-12-171-1/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | lower to debug, since we fire two events, so it is legitimateArthur Schiwon2019-12-161-1/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | do not add (user) flows twiceArthur Schiwon2019-12-161-1/+1
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Allow to specify apps that somethign is a dirJoas Schilling2019-12-103-6/+18
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve mimetype detection in workflow componentsJoas Schilling2019-12-101-82/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure event names is always an arrayJulius Härtl2019-12-062-3/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Set fileInfo in the rule matcherJulius Härtl2019-11-281-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>