aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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>
* add convenience interfaces so entities can provide presentable detailsArthur Schiwon2019-11-282-3/+71
| | | | | | the File entity starts with a display text (used by talk) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* 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-284-30/+145
| | | | | | for instance, when a sharee changes a file, the owner can act upon Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Rename to flowJulius Härtl2019-11-261-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Some php-cs fixesRoeland Jago Douma2019-11-223-4/+2
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* relax dependency on GenericEvent, instead stay compatible with old eventsArthur Schiwon2019-11-132-20/+48
| | | | | | * also fixes tagging events Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add Flow app iconJan-Christoph Borchardt2019-11-071-1/+2
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* do not break on Checkers that do not need specific context infoArthur Schiwon2019-10-291-4/+1
| | | | | | request time, for example Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Adjust user UserWorkflowController methods to AWorflowControllerJulius Härtl2019-10-291-4/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Decode list of events when returning themJulius Härtl2019-10-291-0/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Ignore unavailable entity/operation classesJulius Härtl2019-10-151-6/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Only cache the mimetype if the file existsJoas Schilling2019-10-141-15/+35
| | | | | | | | | | | | | Otherwise files access control will cache "application/octet-stream" for all the target node on: rename, move, copy and all other methods which create a new item To check this: 1. Add an automated tagging rule which tags on mimetype NOT "httpd/unix-directory" 2. Add an access control rule which checks for any mimetype 3. Create a folder and rename it, the folder should not be tagged, but it is Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't call basename on nullJoas Schilling2019-10-011-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #17286 from ↵Joas Schilling2019-09-271-1/+1
|\ | | | | | | | | nextcloud/bugfix/noid/correctly-detect-mimetype-from-uploads Correctly detect the mimetype from uploads
| * Correctly detect the mimetype from uploadsJoas Schilling2019-09-261-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix "Cannot add a NOT NULL column with default value NULL"Joas Schilling2019-09-261-1/+10
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add endpoint to test operations before submittingJulius Härtl2019-09-101-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix type hinting on setFileInfoJulius Härtl2019-09-102-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix order/entity types when setting the contextArthur Schiwon2019-09-101-8/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* File entity supports tagging events nowArthur Schiwon2019-09-091-1/+18
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* entities equip the RuleMatcher on the events they are aware ofArthur Schiwon2019-09-092-3/+27
| | | | | | 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-098-119/+142
| | | | | | | | * 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-0910-45/+97
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* seperate setFileInfo from ICheckArthur Schiwon2019-09-098-42/+6
| | | | 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>
* Extend missing check classesJulius Härtl2019-09-094-0/+54
| | | | 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>