@fluxhub/fluxhub-lib 19.0.215 → 19.0.217
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.
|
@@ -204,8 +204,10 @@ export declare abstract class FHWorkflowForm {
|
|
|
204
204
|
edit_doc(): void;
|
|
205
205
|
/**
|
|
206
206
|
* Carica i task dello step corrente con il loro stato sul documento.
|
|
207
|
-
* `can_close` e `locked` sono calcolati lato SQL
|
|
208
|
-
*
|
|
207
|
+
* `can_close` e `locked` sono calcolati lato SQL: il primo dai ruoli/variabili
|
|
208
|
+
* speciali dell'utente, il secondo dal task da cui questo dipende (`depends_on`)
|
|
209
|
+
* quando non e' ancora chiuso. Le catene si propagano da sole: un padre bloccato
|
|
210
|
+
* non e' chiuso, quindi il figlio resta bloccato.
|
|
209
211
|
*/
|
|
210
212
|
load_step_tasks(after?: () => void): void;
|
|
211
213
|
/** Tutti i task OBBLIGATORI chiusi? I facoltativi non bloccano l'avanzamento. */
|
|
@@ -247,6 +249,18 @@ export declare abstract class FHWorkflowForm {
|
|
|
247
249
|
* `tasks_all_done=true` e avanza il primo autore che apre la pratica.
|
|
248
250
|
*/
|
|
249
251
|
close_task(task: any, nota: string | null): boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Segnala a exec_wkf che un task e' stato chiuso, cosi' che possa gestire gli
|
|
254
|
+
* effetti collaterali: i task che dipendevano da questo sono ora sbloccati, i loro
|
|
255
|
+
* esecutori vanno messi tra i `lettori` del documento e vanno inviate le notifiche
|
|
256
|
+
* configurate su quei task.
|
|
257
|
+
*
|
|
258
|
+
* La CHIUSURA resta nel frontend (UPDATE atomico con `preso_da`): serve un esito
|
|
259
|
+
* sincrono per sapere chi ha vinto la corsa. Qui passiamo solo l'evento.
|
|
260
|
+
* exec_wkf ricava i figli dal DB (`depends_on = uiid_task`): non gli mandiamo una
|
|
261
|
+
* lista, cosi' non possiamo sbagliarla.
|
|
262
|
+
*/
|
|
263
|
+
notify_task_closed(uiid_task: string): void;
|
|
250
264
|
/**
|
|
251
265
|
* Riapre un task chiuso, azzerando anche la presa in carico. Ammesso a chiunque
|
|
252
266
|
* abbia i ruoli del task, finche' il documento e' ancora in quello step (dopo
|
|
@@ -10,9 +10,9 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
*
|
|
11
11
|
* <FHWorkflowTasksPanel [dt_agg]="this"></FHWorkflowTasksPanel>
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* Un task senza `depends_on` e' eseguibile subito. Un task che dipende da un altro
|
|
14
|
+
* resta bloccato (lucchetto) finche' quello non e' chiuso; le catene si propagano
|
|
15
|
+
* da sole, perche' un padre bloccato non e' chiuso.
|
|
16
16
|
*
|
|
17
17
|
* Non e' una FHGrid: sono pochi record, servono pulsanti per riga e nessuna
|
|
18
18
|
* paginazione.
|
|
@@ -37,13 +37,11 @@ export declare class FHWorkflowTasksPanel implements DoCheck {
|
|
|
37
37
|
closed_by_label: string;
|
|
38
38
|
empty_label: string;
|
|
39
39
|
no_role_label: string;
|
|
40
|
+
after_label: string;
|
|
40
41
|
locked_label: string;
|
|
41
42
|
reopen_confirm: string;
|
|
42
43
|
note_label: string;
|
|
43
|
-
|
|
44
|
-
name: string;
|
|
45
|
-
tasks: any[];
|
|
46
|
-
}>;
|
|
44
|
+
tasks: any[];
|
|
47
45
|
totalRequired: number;
|
|
48
46
|
doneRequired: number;
|
|
49
47
|
progressPct: number;
|
|
@@ -64,5 +62,5 @@ export declare class FHWorkflowTasksPanel implements DoCheck {
|
|
|
64
62
|
onClose(t: any): void;
|
|
65
63
|
onReopen(t: any): void;
|
|
66
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWorkflowTasksPanel, [null, { optional: true; }]>;
|
|
67
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FHWorkflowTasksPanel, "FHWorkflowTasksPanel", never, { "dt_agg": { "alias": "dt_agg"; "required": false; }; "is_supervisor": { "alias": "is_supervisor"; "required": false; }; "title": { "alias": "title"; "required": false; }; "claim_label": { "alias": "claim_label"; "required": false; }; "release_label": { "alias": "release_label"; "required": false; }; "force_release_label": { "alias": "force_release_label"; "required": false; }; "in_charge_label": { "alias": "in_charge_label"; "required": false; }; "in_charge_you_label": { "alias": "in_charge_you_label"; "required": false; }; "claim_lost_label": { "alias": "claim_lost_label"; "required": false; }; "close_label": { "alias": "close_label"; "required": false; }; "reopen_label": { "alias": "reopen_label"; "required": false; }; "optional_label": { "alias": "optional_label"; "required": false; }; "closed_by_label": { "alias": "closed_by_label"; "required": false; }; "empty_label": { "alias": "empty_label"; "required": false; }; "no_role_label": { "alias": "no_role_label"; "required": false; }; "locked_label": { "alias": "locked_label"; "required": false; }; "reopen_confirm": { "alias": "reopen_confirm"; "required": false; }; "note_label": { "alias": "note_label"; "required": false; }; }, {}, never, never, true, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHWorkflowTasksPanel, "FHWorkflowTasksPanel", never, { "dt_agg": { "alias": "dt_agg"; "required": false; }; "is_supervisor": { "alias": "is_supervisor"; "required": false; }; "title": { "alias": "title"; "required": false; }; "claim_label": { "alias": "claim_label"; "required": false; }; "release_label": { "alias": "release_label"; "required": false; }; "force_release_label": { "alias": "force_release_label"; "required": false; }; "in_charge_label": { "alias": "in_charge_label"; "required": false; }; "in_charge_you_label": { "alias": "in_charge_you_label"; "required": false; }; "claim_lost_label": { "alias": "claim_lost_label"; "required": false; }; "close_label": { "alias": "close_label"; "required": false; }; "reopen_label": { "alias": "reopen_label"; "required": false; }; "optional_label": { "alias": "optional_label"; "required": false; }; "closed_by_label": { "alias": "closed_by_label"; "required": false; }; "empty_label": { "alias": "empty_label"; "required": false; }; "no_role_label": { "alias": "no_role_label"; "required": false; }; "after_label": { "alias": "after_label"; "required": false; }; "locked_label": { "alias": "locked_label"; "required": false; }; "reopen_confirm": { "alias": "reopen_confirm"; "required": false; }; "note_label": { "alias": "note_label"; "required": false; }; }, {}, never, never, true, never>;
|
|
68
66
|
}
|