@fluxhub/fluxhub-lib 19.0.216 → 19.0.218

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,6 @@ import { MatDialog, MatDialogRef } from '@angular/material/dialog';
3
3
  import { ToastrService } from 'ngx-toastr';
4
4
  import { AppService } from '../services/app.service';
5
5
  import { QueryService } from '../services/doquery.service';
6
- import { WkfService } from '../services/dowkf.service';
7
6
  import { FileService } from '../services/dofile.service';
8
7
  import * as i0 from "@angular/core";
9
8
  export declare class FHNotesPanelComponent {
@@ -12,7 +11,6 @@ export declare class FHNotesPanelComponent {
12
11
  m_appService: AppService;
13
12
  private readonly toastr;
14
13
  private readonly _dataService;
15
- private readonly m_wkf;
16
14
  private readonly m_file;
17
15
  private readonly _tsr;
18
16
  commenti_list: Array<any>;
@@ -27,7 +25,7 @@ export declare class FHNotesPanelComponent {
27
25
  set App(value: string | null);
28
26
  get K(): string | null;
29
27
  set K(value: string | null);
30
- constructor(dialogRef: MatDialogRef<FHNotesPanelComponent>, m_dialogRef: MatDialog, m_appService: AppService, toastr: ToastrService, _dataService: QueryService, m_wkf: WkfService, m_file: FileService, _tsr: TranslateService);
28
+ constructor(dialogRef: MatDialogRef<FHNotesPanelComponent>, m_dialogRef: MatDialog, m_appService: AppService, toastr: ToastrService, _dataService: QueryService, m_file: FileService, _tsr: TranslateService);
31
29
  edit_comm(event: any): void;
32
30
  delete_comm(event: any): void;
33
31
  refresh_list(): void;
@@ -39,6 +39,17 @@ export declare abstract class FHWorkflowForm {
39
39
  * @returns [] se si puo' chiudere; array di messaggi per bloccare la chiusura.
40
40
  */
41
41
  ck_task(check_key: string): string[];
42
+ /**
43
+ * Chiamato ogni volta che lo stato dei task e' stato (ri)letto dal DB: all'apertura
44
+ * del documento e dopo ogni presa in carico / chiusura / riapertura.
45
+ *
46
+ * Serve ai portali che denormalizzano lo stato dei task in colonne della propria
47
+ * tabella dati, per mostrarlo come colonna filtrabile in griglia. La libreria non
48
+ * sa nulla di quelle colonne: qui passa solo l'evento.
49
+ *
50
+ * `wkf_document_tasks` resta la verita'; le colonne del portale sono una cache.
51
+ */
52
+ after_task_change(): void;
42
53
  ripristina_imp(): void;
43
54
  in_carico: boolean;
44
55
  protected constructor(app_s: AppService, m_dataService: QueryService, m_router: Router, m_dialog: MatDialog, m_route: ActivatedRoute, m_wkf: WkfService, uti_s: UtilityService, m_fileservice: FileService, tsr: TranslateService);
@@ -249,6 +260,18 @@ export declare abstract class FHWorkflowForm {
249
260
  * `tasks_all_done=true` e avanza il primo autore che apre la pratica.
250
261
  */
251
262
  close_task(task: any, nota: string | null): boolean;
263
+ /**
264
+ * Segnala a exec_wkf che un task e' stato chiuso, cosi' che possa gestire gli
265
+ * effetti collaterali: i task che dipendevano da questo sono ora sbloccati, i loro
266
+ * esecutori vanno messi tra i `lettori` del documento e vanno inviate le notifiche
267
+ * configurate su quei task.
268
+ *
269
+ * La CHIUSURA resta nel frontend (UPDATE atomico con `preso_da`): serve un esito
270
+ * sincrono per sapere chi ha vinto la corsa. Qui passiamo solo l'evento.
271
+ * exec_wkf ricava i figli dal DB (`depends_on = uiid_task`): non gli mandiamo una
272
+ * lista, cosi' non possiamo sbagliarla.
273
+ */
274
+ notify_task_closed(uiid_task: string): void;
252
275
  /**
253
276
  * Riapre un task chiuso, azzerando anche la presa in carico. Ammesso a chiunque
254
277
  * abbia i ruoli del task, finche' il documento e' ancora in quello step (dopo
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluxhub/fluxhub-lib",
3
- "version": "19.0.216",
3
+ "version": "19.0.218",
4
4
  "description": "FluxHub components and workflow library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",