nextcloud / nextcloud/workflow_script

add possibility to define an activity text for each workflow which will be written to the activity stream

Aperta
#56 0 commenti 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

enhancement
Lingua principale
PHP
Stelle
89
Fork
19
Merge medio
6h 38m
PR unite (30g)
3

Descrizione

Enhancement request

For compliance reasons, it would be nice to be able to define an activity text for each workflow which then will be written to the activity stream of a user. Alternatively a text returned by the external script could be written to the activity stream. This would allow to get notice of the processing done by a workflow script. It should be possible to use the available place holders in that text string.

Example: Imagine you've created an external script which converts an uploaded 3gp-video to a mp4-video. As soon as you uploaded a file a message like "You have created xvz-video.3gp" is being logged. Next an external script is executed which converts the file to a mp4-video (xyz-video.mp4) and the original file is being deleted.

As a result you will see a file named "xyz-video.mp4" on your server but not the file "xyz-video.3gp" anymore. Currently the activity stream doesn't contain any entry about the external script execution nor the file renaming and how/why it has happened.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Non sono indicati file o test. Inizia individuando il punto di ingresso dell'esecuzione del workflow e l'integrazione del flusso delle attività, quindi verifica come sono rappresentati la configurazione del workflow e i segnaposto. Il lavoro è completo quando un workflow può registrare nel flusso delle attività dell'utente un messaggio configurato o restituito da uno script, con i segnaposto espansi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
php
Ambito
backend
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.