@vario-software/types 2026.12.3

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.
@@ -0,0 +1,122 @@
1
+ import {
2
+ WorkflowInstanceDetails
3
+ } from "./types"
4
+
5
+ import {
6
+ ScriptingServiceList
7
+ } from "./services"
8
+
9
+ export interface WorkflowScriptingContext {
10
+
11
+ /**
12
+ * Details zur aktuellen Workflow-Instanz
13
+ */
14
+ instanceDetails: WorkflowInstanceDetails;
15
+
16
+ /**
17
+ * Verfügbare Eingabedaten
18
+ */
19
+ availableInput: Map<string,object>;
20
+
21
+ /**
22
+ * Services
23
+ */
24
+ services: ScriptingServiceList;
25
+
26
+ /**
27
+ * Parameter zur Verwendung im Skript
28
+ */
29
+ parameters: Map<string,object>;
30
+ }
31
+
32
+ /**
33
+ * Definiert, ob die Skript-Methode "trigger" ausgeführt werden soll
34
+ *
35
+ * @param {WorkflowScriptingContext} ctx - Workflow-Skript-Kontext
36
+ * @return {boolean} Skript-Methode "trigger" ausführen?
37
+ */
38
+ type WorkItemIntermediateEventGuard = (ctx: WorkflowScriptingContext) => boolean;
39
+
40
+ /**
41
+ * Variablen für die C-Unit-Queries füllen. Wird vor "guard" ausgeführt
42
+ *
43
+ * @param {WorkflowScriptingContext} ctx - Workflow-Skript-Kontext
44
+ */
45
+ type WorkItemIntermediateEventPrepare = (ctx: WorkflowScriptingContext) => void;
46
+
47
+ /**
48
+ * Wird nach Empfang des konfigurierten Events ausgelöst
49
+ *
50
+ * @param {WorkflowScriptingContext} ctx - Workflow-Skript-Kontext
51
+ */
52
+ type WorkItemIntermediateEventTrigger = (ctx: WorkflowScriptingContext) => void;
53
+
54
+ export interface WorkflowScriptingContext {
55
+
56
+ /**
57
+ * Details zur aktuellen Workflow-Instanz
58
+ */
59
+ instanceDetails: WorkflowInstanceDetails;
60
+
61
+ /**
62
+ * Verfügbare Eingabedaten
63
+ */
64
+ availableInput: Map<string,object>;
65
+
66
+ /**
67
+ * Services
68
+ */
69
+ services: ScriptingServiceList;
70
+
71
+ /**
72
+ * Parameter zur Verwendung im Skript
73
+ */
74
+ parameters: Map<string,object>;
75
+ }
76
+
77
+
78
+ /**
79
+ * Ausführung von Aktionen nach einem Event oder abgelaufener Wartezeit
80
+ *
81
+ * @filename work_item_intermediate_event
82
+ * @example
83
+ * ```typescript
84
+ * import workItem from "work_item_intermediate_event";
85
+ *
86
+ * workItem.prepare: (ctx) => {
87
+ * // Fill variables for c-unit queries. Executed before method “guard”
88
+ * };
89
+ *
90
+ * workItem.setGuard( (ctx) => {
91
+ * // Should "trigger" be executed?
92
+ * return true;
93
+ * };
94
+ *
95
+ * workItem.trigger: (ctx) => {
96
+ * // Action to be performed
97
+ * };
98
+ * ```
99
+ */
100
+ export interface workItem {
101
+
102
+ /**
103
+ * Setter für Callback "prepare"
104
+ *
105
+ * @param {WorkItemIntermediateEventPrepare} callback - Callback "prepare"
106
+ */
107
+ setPrepare(callback: WorkItemIntermediateEventPrepare): void;
108
+
109
+ /**
110
+ * Setter für Callback "guard"
111
+ *
112
+ * @param {WorkItemIntermediateEventGuard} callback - Callback "guard"
113
+ */
114
+ setGuard(callback: WorkItemIntermediateEventGuard): void;
115
+
116
+ /**
117
+ * Setter für Callback "trigger"
118
+ *
119
+ * @param {WorkItemIntermediateEventTrigger} callback - Callback "trigger"
120
+ */
121
+ setTrigger(callback: WorkItemIntermediateEventTrigger): void;
122
+ }
@@ -0,0 +1,122 @@
1
+ import {
2
+ WorkflowInstanceDetails
3
+ } from "./types"
4
+
5
+ import {
6
+ ScriptingServiceList
7
+ } from "./services"
8
+
9
+ export interface WorkflowScriptingContext {
10
+
11
+ /**
12
+ * Details zur aktuellen Workflow-Instanz
13
+ */
14
+ instanceDetails: WorkflowInstanceDetails;
15
+
16
+ /**
17
+ * Verfügbare Eingabedaten
18
+ */
19
+ availableInput: Map<string,object>;
20
+
21
+ /**
22
+ * Services
23
+ */
24
+ services: ScriptingServiceList;
25
+
26
+ /**
27
+ * Parameter zur Verwendung im Skript
28
+ */
29
+ parameters: Map<string,object>;
30
+ }
31
+
32
+ /**
33
+ * Führt die gewünschten Aktionen des Workflow-Elements aus
34
+ *
35
+ * @param {WorkflowScriptingContext} ctx - Workflow-Skript-Kontext
36
+ */
37
+ type WorkItemScriptAction = (ctx: WorkflowScriptingContext) => void;
38
+
39
+ /**
40
+ * Definiert, ob die Skript-Methode "action" ausgeführt werden soll
41
+ *
42
+ * @param {WorkflowScriptingContext} ctx - Workflow-Skript-Kontext
43
+ * @return {boolean} Skript-Methode "action" ausführen?
44
+ */
45
+ type WorkItemScriptGuard = (ctx: WorkflowScriptingContext) => boolean;
46
+
47
+ /**
48
+ * Variablen für die C-Unit-Queries füllen. Wird vor "guard" und "action" ausgeführt
49
+ *
50
+ * @param {WorkflowScriptingContext} ctx - Workflow-Skript-Kontext
51
+ */
52
+ type WorkItemScriptPrepare = (ctx: WorkflowScriptingContext) => void;
53
+
54
+ export interface WorkflowScriptingContext {
55
+
56
+ /**
57
+ * Details zur aktuellen Workflow-Instanz
58
+ */
59
+ instanceDetails: WorkflowInstanceDetails;
60
+
61
+ /**
62
+ * Verfügbare Eingabedaten
63
+ */
64
+ availableInput: Map<string,object>;
65
+
66
+ /**
67
+ * Services
68
+ */
69
+ services: ScriptingServiceList;
70
+
71
+ /**
72
+ * Parameter zur Verwendung im Skript
73
+ */
74
+ parameters: Map<string,object>;
75
+ }
76
+
77
+
78
+ /**
79
+ * Ausführung von Aktionen innerhalb eines Workflows
80
+ *
81
+ * @filename work_item_script
82
+ * @example
83
+ * ```typescript
84
+ * import workItem from "work_item_script";
85
+ *
86
+ * workItem.setPrepare( (ctx) => {
87
+ * // Fill variables for c-unit queries. Executed before method “guard”
88
+ * });
89
+ *
90
+ * workItem.setGuard( (ctx) => {
91
+ * // Should "trigger" be executed?
92
+ * return true;
93
+ * };
94
+ *
95
+ * workItem.setAction( (ctx) => {
96
+ * // Action to be performed
97
+ * };
98
+ * ```
99
+ */
100
+ export interface workItem {
101
+
102
+ /**
103
+ * Setter für Callback "prepare"
104
+ *
105
+ * @param {WorkItemScriptPrepare} callback - Callback "prepare"
106
+ */
107
+ setPrepare(callback: WorkItemScriptPrepare): void;
108
+
109
+ /**
110
+ * Setter für Callback "guard"
111
+ *
112
+ * @param {WorkItemScriptGuard} callback - Callback "guard"
113
+ */
114
+ setGuard(callback: WorkItemScriptGuard): void;
115
+
116
+ /**
117
+ * Setter für Callback "action"
118
+ *
119
+ * @param {WorkItemScriptAction} callback - Callback "action"
120
+ */
121
+ setAction(callback: WorkItemScriptAction): void;
122
+ }
@@ -0,0 +1,104 @@
1
+ import {
2
+ WorkflowInstanceDetails
3
+ } from "./types"
4
+
5
+ import {
6
+ ScriptingServiceList
7
+ } from "./services"
8
+
9
+ export interface WorkflowScriptingContext {
10
+
11
+ /**
12
+ * Details zur aktuellen Workflow-Instanz
13
+ */
14
+ instanceDetails: WorkflowInstanceDetails;
15
+
16
+ /**
17
+ * Verfügbare Eingabedaten
18
+ */
19
+ availableInput: Map<string,object>;
20
+
21
+ /**
22
+ * Services
23
+ */
24
+ services: ScriptingServiceList;
25
+
26
+ /**
27
+ * Parameter zur Verwendung im Skript
28
+ */
29
+ parameters: Map<string,object>;
30
+ }
31
+
32
+ /**
33
+ * Variablen für die C-Unit-Queries füllen. Wird vor "split" ausgeführt
34
+ *
35
+ * @param {WorkflowScriptingContext} ctx - Workflow-Skript-Kontext
36
+ */
37
+ type WorkItemSplitGatewayPrepare = (ctx: WorkflowScriptingContext) => void;
38
+
39
+ /**
40
+ * Ermittelt den Identifier zur Auswahl des nächsten Workflow-Elements
41
+ *
42
+ * @param {WorkflowScriptingContext} ctx - Workflow-Skript-Kontext
43
+ * @return {string} Split-Gateway-Identifier
44
+ */
45
+ type WorkItemSplitGatewaySplit = (ctx: WorkflowScriptingContext) => string;
46
+
47
+ export interface WorkflowScriptingContext {
48
+
49
+ /**
50
+ * Details zur aktuellen Workflow-Instanz
51
+ */
52
+ instanceDetails: WorkflowInstanceDetails;
53
+
54
+ /**
55
+ * Verfügbare Eingabedaten
56
+ */
57
+ availableInput: Map<string,object>;
58
+
59
+ /**
60
+ * Services
61
+ */
62
+ services: ScriptingServiceList;
63
+
64
+ /**
65
+ * Parameter zur Verwendung im Skript
66
+ */
67
+ parameters: Map<string,object>;
68
+ }
69
+
70
+
71
+ /**
72
+ * Durchführung einer Entscheidung zum Fortsetzen eines Workflows
73
+ *
74
+ * @filename work_item_split_gateway
75
+ * @example
76
+ * ```typescript
77
+ * import workItem from "work_item_split_gateway";
78
+ *
79
+ * workItem.prepare: (ctx) => {
80
+ * // Fill variables for c-unit queries. Executed before method “split”
81
+ * };
82
+ *
83
+ * workItem.split: (ctx) => {
84
+ * // Determines the identifier for selecting the next workflow element
85
+ * return <Gateway-Identifier>;
86
+ * };
87
+ * ```
88
+ */
89
+ export interface workItem {
90
+
91
+ /**
92
+ * Setter für Callback "prepare"
93
+ *
94
+ * @param {WorkItemSplitGatewayPrepare} callback - Callback "prepare"
95
+ */
96
+ setPrepare(callback: WorkItemSplitGatewayPrepare): void;
97
+
98
+ /**
99
+ * Setter für Callback "split"
100
+ *
101
+ * @param {WorkItemSplitGatewaySplit} callback - Callback "split"
102
+ */
103
+ setSplit(callback: WorkItemSplitGatewaySplit): void;
104
+ }
package/scripting.d.ts ADDED
@@ -0,0 +1,41 @@
1
+ declare module 'app_scripting_proxy'
2
+ {
3
+ const appScript: import('./scripting/app_scripting_proxy').appScript;
4
+ export default appScript;
5
+ }
6
+
7
+ declare module 'batch_script'
8
+ {
9
+ const batchAction: import('./scripting/batch_script').batchAction;
10
+ export default batchAction;
11
+ }
12
+
13
+ declare module 'output_filter_script'
14
+ {
15
+ const outputFilter: import('./scripting/output_filter_script').outputFilter;
16
+ export default outputFilter;
17
+ }
18
+
19
+ declare module 'picklist_script_pick_box_connect'
20
+ {
21
+ const pickBoxConnector: import('./scripting/picklist_script_pick_box_connect').pickBoxConnector;
22
+ export default pickBoxConnector;
23
+ }
24
+
25
+ declare module 'work_item_script'
26
+ {
27
+ const workItem: import('./scripting/work_item_script').workItem;
28
+ export default workItem;
29
+ }
30
+
31
+ declare module 'work_item_intermediate_event'
32
+ {
33
+ const workItem: import('./scripting/work_item_intermediate_event').workItem;
34
+ export default workItem;
35
+ }
36
+
37
+ declare module 'work_item_split_gateway'
38
+ {
39
+ const workItem: import('./scripting/work_item_split_gateway').workItem;
40
+ export default workItem;
41
+ }