@lbdudc/linea-core 0.1.0 → 0.1.1

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.
Files changed (37) hide show
  1. package/README.md +358 -358
  2. package/dist/analysis/analyze.js.map +1 -1
  3. package/dist/analysis/runtime.js.map +1 -1
  4. package/dist/assets.js.map +1 -1
  5. package/dist/constants.js.map +1 -1
  6. package/dist/derivation/derive.js.map +1 -1
  7. package/dist/derivation/engine.js.map +1 -1
  8. package/dist/errors.js.map +1 -1
  9. package/dist/feature-model/convert.js.map +1 -1
  10. package/dist/feature-model/engine.js.map +1 -1
  11. package/dist/feature-model/inspect.js.map +1 -1
  12. package/dist/feature-model/io.js.map +1 -1
  13. package/dist/feature-model/parse.js.map +1 -1
  14. package/dist/feature-model/text.js.map +1 -1
  15. package/dist/fs/archive.js.map +1 -1
  16. package/dist/fs/diff.js.map +1 -1
  17. package/dist/fs/format.js.map +1 -1
  18. package/dist/fs/workspace.js.map +1 -1
  19. package/dist/index.js.map +1 -1
  20. package/dist/internal/guards.js.map +1 -1
  21. package/dist/line/platform-files.js.map +1 -1
  22. package/dist/line/scaffold.js.map +1 -1
  23. package/dist/line/templates/core/extra.js +54 -54
  24. package/dist/line/templates/core/transformation.js +196 -196
  25. package/dist/line/templates/metamodels/dataModel/extra.js +328 -328
  26. package/dist/line/templates/metamodels/dataModel/transformation.js +211 -211
  27. package/dist/line/templates/metamodels/sensor/extra.js +36 -36
  28. package/dist/line/templates/metamodels/sensor/transformation.js +47 -47
  29. package/dist/line/templates/pipeline/.gitlab-ci.yml +51 -51
  30. package/dist/line/templates/pipeline/ci/test-client.sh +16 -16
  31. package/dist/line/templates/pipeline/ci/test-server.sh +16 -16
  32. package/dist/product/engine-spec.js.map +1 -1
  33. package/dist/product/spec.js.map +1 -1
  34. package/dist/product/version.js.map +1 -1
  35. package/dist/products-index/products-index.js.map +1 -1
  36. package/dist/selection/selection.js.map +1 -1
  37. package/package.json +67 -67
@@ -1,211 +1,211 @@
1
- registerMetamodelProcessor(function processDataModel(ret, input) {
2
- if (input.data && input.data.dataModel) {
3
- ret.data.dataModel = input.data.dataModel;
4
- } else if (input.dataModel) {
5
- ret.data.dataModel = dataModel(input.dataModel);
6
- } else {
7
- ret.data.dataModel = { entities: [], enums: [] };
8
- }
9
-
10
- if (ret.features.indexOf("GUI_Forms") !== -1) {
11
- ret.data.forms = forms(ret.data.dataModel.entities, ret.features);
12
- } else {
13
- ret.data.forms = [];
14
- }
15
-
16
- if (ret.features.indexOf("GUI_Lists") !== -1) {
17
- ret.data.lists = lists(ret.data.dataModel.entities, ret.features, ret.data.forms);
18
- } else {
19
- ret.data.lists = [];
20
- }
21
- });
22
-
23
- function enums(input) {
24
- return input.map((e) => ({
25
- name: normalize(e.name, true),
26
- values: e.values,
27
- }));
28
- }
29
-
30
- function entities(input) {
31
- return input.map((e) => ({
32
- name: normalize(e.name, true),
33
- properties: properties(e),
34
- displayString: "$" + _getDisplayString(e, input),
35
- superclass: e.superclass && e.superclass.name,
36
- abstract: e.abstract,
37
- traceable: e.traceable,
38
- }));
39
- }
40
-
41
- function properties(entity) {
42
- const ret = [];
43
- entity.properties.forEach((p) => {
44
- if (p.name === "id") {
45
- ret.push({ name: "id", class: "Long (autoinc)", pk: true, required: true, unique: true });
46
- } else {
47
- ret.push({
48
- name: p.name,
49
- class: normalize(p.class, true),
50
- required: p.required,
51
- unique: p.unique,
52
- patternType: p.patternType,
53
- pattern: p.pattern,
54
- min: p.min,
55
- max: p.max,
56
- });
57
- }
58
- });
59
- return ret;
60
- }
61
-
62
- function relationships(ret, input) {
63
- const rels = input.cells.filter((o) => o.type === "custom.Association");
64
-
65
- rels.forEach((r) => {
66
- const source = findEntityByName(normalize(findEntityById(r.source.id, input.cells).name, true), ret);
67
- const target = findEntityByName(normalize(findEntityById(r.target.id, input.cells).name, true), ret);
68
-
69
- source.properties.push({
70
- name: r.sourceOpts.label || normalize(target.name),
71
- class: target.name,
72
- owner: _getRelationshipOwner(r, r.source.id),
73
- bidirectional: r.targetOpts.label || normalize(source.name),
74
- multiple: multiple(r.sourceOpts.multiplicity),
75
- required: required(r.sourceOpts.multiplicity),
76
- });
77
-
78
- target.properties.push({
79
- name: r.targetOpts.label || normalize(source.name),
80
- class: source.name,
81
- owner: _getRelationshipOwner(r, r.target.id),
82
- bidirectional: r.sourceOpts.label || normalize(target.name),
83
- multiple: multiple(r.targetOpts.multiplicity),
84
- required: required(r.targetOpts.multiplicity),
85
- });
86
- });
87
-
88
- return ret;
89
- }
90
-
91
- function dataModel(input) {
92
- const ret = {};
93
- ret.enums = enums(input.cells.filter((o) => o.type === "custom.Enum"));
94
- ret.entities = entities(input.cells.filter((o) => o.type === "custom.Class"));
95
- relationships(ret.entities, input);
96
- return ret;
97
- }
98
-
99
- function forms(entities, features) {
100
- return entities.map((e) => {
101
- const props = _getProperties(e, entities);
102
- return {
103
- id: e.name + " Form",
104
- properties: _sortProperties(props, e),
105
- entity: e.name,
106
- abstract: e.abstract,
107
- creatable: features.indexOf("GUI_F_Creatable") !== -1,
108
- editable: features.indexOf("GUI_F_Editable") !== -1,
109
- removable: features.indexOf("GUI_F_Removable") !== -1,
110
- confirmation: features.indexOf("GUI_F_R_ConfirmationAlert") !== -1,
111
- };
112
- });
113
- }
114
-
115
- function lists(entities, features, forms) {
116
- const formNeeded = features.indexOf("GUI_L_FormLink") !== -1;
117
- return entities
118
- .filter((e) => !e.abstract)
119
- .map((e) => {
120
- const entityForm = _getForm(e.name, forms);
121
- const props = _getProperties(e, entities, forms);
122
- return {
123
- id: e.name + " List",
124
- abstract: e.abstract,
125
- properties: _sortProperties(props, e),
126
- entity: e.name,
127
- form: entityForm && entityForm.id,
128
- removeLink: formNeeded && entityForm && entityForm.removable,
129
- sorting: features.indexOf("GUI_L_Sortable") !== -1,
130
- searching: features.indexOf("GUI_L_F_BasicSearch") !== -1,
131
- filtering: features.indexOf("GUI_L_F_RowFilter") !== -1,
132
- };
133
- });
134
- }
135
-
136
- function _getForm(entityName, forms) {
137
- return forms.find((f) => f.entity === entityName);
138
- }
139
-
140
- function _getProperties(e, entities, forms) {
141
- if (forms === undefined) forms = [];
142
- const props = forms.length ? _getPropertiesLists(e, forms) : _getPropertiesForms(e);
143
- const superclass = e.superclass ? entities.find((entity) => entity.name === e.superclass) : null;
144
- return superclass ? props.concat(_getProperties(superclass, entities, forms)) : props;
145
- }
146
-
147
- function _getPropertiesLists(e, forms) {
148
- return e.properties
149
- .filter((p) => p.owner === undefined || p.owner)
150
- .map((p) => ({
151
- property: p.name,
152
- form: _getForm(e.name, forms) && _getForm(e.name, forms).id,
153
- owner: e.name,
154
- }));
155
- }
156
-
157
- function _getPropertiesForms(e) {
158
- return e.properties
159
- .filter((p) => p.owner === undefined || p.owner)
160
- .map((p) => ({
161
- property: p.name,
162
- viewing: true,
163
- editing: p.name !== "id",
164
- owner: e.name,
165
- }));
166
- }
167
-
168
- function _sortProperties(props, entity) {
169
- const displayString = entity.displayString.replace("$", "");
170
- const idProp = props.find((p) => p.property === "id");
171
- const displayProp = props.find((p) => p.property === displayString);
172
- props = props.filter((p) => p !== idProp && p !== displayProp);
173
- return displayProp !== idProp ? [idProp, displayProp].concat(props) : [idProp].concat(props);
174
- }
175
-
176
- function _getDisplayString(entity, entities) {
177
- const displayString = entity.properties.find((e) => e.displayString);
178
- if (!displayString && entity.superclass) {
179
- return _getDisplayString(entities.find((e) => e.name === entity.superclass.name), entities);
180
- } else if (displayString) {
181
- return displayString.name;
182
- } else {
183
- return "id";
184
- }
185
- }
186
-
187
- function _getRelationshipOwner(rel, entityId) {
188
- const isSource = rel.source.id === entityId;
189
- const relType =
190
- (multiple(rel.targetOpts.multiplicity) ? "Many" : "One") +
191
- "To" +
192
- (multiple(rel.sourceOpts.multiplicity) ? "Many" : "One");
193
- if (relType === "OneToMany") return !isSource;
194
- else return isSource;
195
- }
196
-
197
- function findEntityById(id, col) {
198
- return col.find((o) => o.id === id);
199
- }
200
-
201
- function findEntityByName(name, col) {
202
- return col.find((o) => o.name === name);
203
- }
204
-
205
- function multiple(multiplicity) {
206
- return ["1", "0..1"].find((a) => a === multiplicity) == null;
207
- }
208
-
209
- function required() {
210
- return false;
211
- }
1
+ registerMetamodelProcessor(function processDataModel(ret, input) {
2
+ if (input.data && input.data.dataModel) {
3
+ ret.data.dataModel = input.data.dataModel;
4
+ } else if (input.dataModel) {
5
+ ret.data.dataModel = dataModel(input.dataModel);
6
+ } else {
7
+ ret.data.dataModel = { entities: [], enums: [] };
8
+ }
9
+
10
+ if (ret.features.indexOf("GUI_Forms") !== -1) {
11
+ ret.data.forms = forms(ret.data.dataModel.entities, ret.features);
12
+ } else {
13
+ ret.data.forms = [];
14
+ }
15
+
16
+ if (ret.features.indexOf("GUI_Lists") !== -1) {
17
+ ret.data.lists = lists(ret.data.dataModel.entities, ret.features, ret.data.forms);
18
+ } else {
19
+ ret.data.lists = [];
20
+ }
21
+ });
22
+
23
+ function enums(input) {
24
+ return input.map((e) => ({
25
+ name: normalize(e.name, true),
26
+ values: e.values,
27
+ }));
28
+ }
29
+
30
+ function entities(input) {
31
+ return input.map((e) => ({
32
+ name: normalize(e.name, true),
33
+ properties: properties(e),
34
+ displayString: "$" + _getDisplayString(e, input),
35
+ superclass: e.superclass && e.superclass.name,
36
+ abstract: e.abstract,
37
+ traceable: e.traceable,
38
+ }));
39
+ }
40
+
41
+ function properties(entity) {
42
+ const ret = [];
43
+ entity.properties.forEach((p) => {
44
+ if (p.name === "id") {
45
+ ret.push({ name: "id", class: "Long (autoinc)", pk: true, required: true, unique: true });
46
+ } else {
47
+ ret.push({
48
+ name: p.name,
49
+ class: normalize(p.class, true),
50
+ required: p.required,
51
+ unique: p.unique,
52
+ patternType: p.patternType,
53
+ pattern: p.pattern,
54
+ min: p.min,
55
+ max: p.max,
56
+ });
57
+ }
58
+ });
59
+ return ret;
60
+ }
61
+
62
+ function relationships(ret, input) {
63
+ const rels = input.cells.filter((o) => o.type === "custom.Association");
64
+
65
+ rels.forEach((r) => {
66
+ const source = findEntityByName(normalize(findEntityById(r.source.id, input.cells).name, true), ret);
67
+ const target = findEntityByName(normalize(findEntityById(r.target.id, input.cells).name, true), ret);
68
+
69
+ source.properties.push({
70
+ name: r.sourceOpts.label || normalize(target.name),
71
+ class: target.name,
72
+ owner: _getRelationshipOwner(r, r.source.id),
73
+ bidirectional: r.targetOpts.label || normalize(source.name),
74
+ multiple: multiple(r.sourceOpts.multiplicity),
75
+ required: required(r.sourceOpts.multiplicity),
76
+ });
77
+
78
+ target.properties.push({
79
+ name: r.targetOpts.label || normalize(source.name),
80
+ class: source.name,
81
+ owner: _getRelationshipOwner(r, r.target.id),
82
+ bidirectional: r.sourceOpts.label || normalize(target.name),
83
+ multiple: multiple(r.targetOpts.multiplicity),
84
+ required: required(r.targetOpts.multiplicity),
85
+ });
86
+ });
87
+
88
+ return ret;
89
+ }
90
+
91
+ function dataModel(input) {
92
+ const ret = {};
93
+ ret.enums = enums(input.cells.filter((o) => o.type === "custom.Enum"));
94
+ ret.entities = entities(input.cells.filter((o) => o.type === "custom.Class"));
95
+ relationships(ret.entities, input);
96
+ return ret;
97
+ }
98
+
99
+ function forms(entities, features) {
100
+ return entities.map((e) => {
101
+ const props = _getProperties(e, entities);
102
+ return {
103
+ id: e.name + " Form",
104
+ properties: _sortProperties(props, e),
105
+ entity: e.name,
106
+ abstract: e.abstract,
107
+ creatable: features.indexOf("GUI_F_Creatable") !== -1,
108
+ editable: features.indexOf("GUI_F_Editable") !== -1,
109
+ removable: features.indexOf("GUI_F_Removable") !== -1,
110
+ confirmation: features.indexOf("GUI_F_R_ConfirmationAlert") !== -1,
111
+ };
112
+ });
113
+ }
114
+
115
+ function lists(entities, features, forms) {
116
+ const formNeeded = features.indexOf("GUI_L_FormLink") !== -1;
117
+ return entities
118
+ .filter((e) => !e.abstract)
119
+ .map((e) => {
120
+ const entityForm = _getForm(e.name, forms);
121
+ const props = _getProperties(e, entities, forms);
122
+ return {
123
+ id: e.name + " List",
124
+ abstract: e.abstract,
125
+ properties: _sortProperties(props, e),
126
+ entity: e.name,
127
+ form: entityForm && entityForm.id,
128
+ removeLink: formNeeded && entityForm && entityForm.removable,
129
+ sorting: features.indexOf("GUI_L_Sortable") !== -1,
130
+ searching: features.indexOf("GUI_L_F_BasicSearch") !== -1,
131
+ filtering: features.indexOf("GUI_L_F_RowFilter") !== -1,
132
+ };
133
+ });
134
+ }
135
+
136
+ function _getForm(entityName, forms) {
137
+ return forms.find((f) => f.entity === entityName);
138
+ }
139
+
140
+ function _getProperties(e, entities, forms) {
141
+ if (forms === undefined) forms = [];
142
+ const props = forms.length ? _getPropertiesLists(e, forms) : _getPropertiesForms(e);
143
+ const superclass = e.superclass ? entities.find((entity) => entity.name === e.superclass) : null;
144
+ return superclass ? props.concat(_getProperties(superclass, entities, forms)) : props;
145
+ }
146
+
147
+ function _getPropertiesLists(e, forms) {
148
+ return e.properties
149
+ .filter((p) => p.owner === undefined || p.owner)
150
+ .map((p) => ({
151
+ property: p.name,
152
+ form: _getForm(e.name, forms) && _getForm(e.name, forms).id,
153
+ owner: e.name,
154
+ }));
155
+ }
156
+
157
+ function _getPropertiesForms(e) {
158
+ return e.properties
159
+ .filter((p) => p.owner === undefined || p.owner)
160
+ .map((p) => ({
161
+ property: p.name,
162
+ viewing: true,
163
+ editing: p.name !== "id",
164
+ owner: e.name,
165
+ }));
166
+ }
167
+
168
+ function _sortProperties(props, entity) {
169
+ const displayString = entity.displayString.replace("$", "");
170
+ const idProp = props.find((p) => p.property === "id");
171
+ const displayProp = props.find((p) => p.property === displayString);
172
+ props = props.filter((p) => p !== idProp && p !== displayProp);
173
+ return displayProp !== idProp ? [idProp, displayProp].concat(props) : [idProp].concat(props);
174
+ }
175
+
176
+ function _getDisplayString(entity, entities) {
177
+ const displayString = entity.properties.find((e) => e.displayString);
178
+ if (!displayString && entity.superclass) {
179
+ return _getDisplayString(entities.find((e) => e.name === entity.superclass.name), entities);
180
+ } else if (displayString) {
181
+ return displayString.name;
182
+ } else {
183
+ return "id";
184
+ }
185
+ }
186
+
187
+ function _getRelationshipOwner(rel, entityId) {
188
+ const isSource = rel.source.id === entityId;
189
+ const relType =
190
+ (multiple(rel.targetOpts.multiplicity) ? "Many" : "One") +
191
+ "To" +
192
+ (multiple(rel.sourceOpts.multiplicity) ? "Many" : "One");
193
+ if (relType === "OneToMany") return !isSource;
194
+ else return isSource;
195
+ }
196
+
197
+ function findEntityById(id, col) {
198
+ return col.find((o) => o.id === id);
199
+ }
200
+
201
+ function findEntityByName(name, col) {
202
+ return col.find((o) => o.name === name);
203
+ }
204
+
205
+ function multiple(multiplicity) {
206
+ return ["1", "0..1"].find((a) => a === multiplicity) == null;
207
+ }
208
+
209
+ function required() {
210
+ return false;
211
+ }
@@ -1,36 +1,36 @@
1
- // Sensor metamodel helper functions
2
- // These are appended to core/extra.js and made available to codegen templates.
3
-
4
- function getSensors(data) {
5
- return (data.dataWarehouse && data.dataWarehouse.sensors) || [];
6
- }
7
-
8
- function getSensor(data, sensorId) {
9
- return getSensors(data).find(function (s) {
10
- return s.id === sensorId;
11
- });
12
- }
13
-
14
- function getSensorMeasurements(sensor) {
15
- return (sensor && sensor.measureData) || [];
16
- }
17
-
18
- function getSensorDimensions(sensor) {
19
- return (sensor && sensor.dimensions) || [];
20
- }
21
-
22
- function getSensorSpatialDimensions(sensor) {
23
- return getSensorDimensions(sensor).filter(function (d) {
24
- return d.type === 'SPATIAL';
25
- });
26
- }
27
-
28
- function getSensorCategoricalDimensions(sensor) {
29
- return getSensorDimensions(sensor).filter(function (d) {
30
- return d.type === 'CATEGORICAL';
31
- });
32
- }
33
-
34
- function getSensorGroups(data) {
35
- return (data.dataWarehouse && data.dataWarehouse.sensorGroups) || [];
36
- }
1
+ // Sensor metamodel helper functions
2
+ // These are appended to core/extra.js and made available to codegen templates.
3
+
4
+ function getSensors(data) {
5
+ return (data.dataWarehouse && data.dataWarehouse.sensors) || [];
6
+ }
7
+
8
+ function getSensor(data, sensorId) {
9
+ return getSensors(data).find(function (s) {
10
+ return s.id === sensorId;
11
+ });
12
+ }
13
+
14
+ function getSensorMeasurements(sensor) {
15
+ return (sensor && sensor.measureData) || [];
16
+ }
17
+
18
+ function getSensorDimensions(sensor) {
19
+ return (sensor && sensor.dimensions) || [];
20
+ }
21
+
22
+ function getSensorSpatialDimensions(sensor) {
23
+ return getSensorDimensions(sensor).filter(function (d) {
24
+ return d.type === 'SPATIAL';
25
+ });
26
+ }
27
+
28
+ function getSensorCategoricalDimensions(sensor) {
29
+ return getSensorDimensions(sensor).filter(function (d) {
30
+ return d.type === 'CATEGORICAL';
31
+ });
32
+ }
33
+
34
+ function getSensorGroups(data) {
35
+ return (data.dataWarehouse && data.dataWarehouse.sensorGroups) || [];
36
+ }
@@ -1,47 +1,47 @@
1
- // Fallback path: runs when #buildEngineSpec in ProductService did NOT trigger the engine's
2
- // fast-path shortcut (i.e. parsed.data.basicData was absent). For fully-valid sensor products
3
- // the fast-path fires instead and this processor receives input.sensor === undefined.
4
- registerMetamodelProcessor(function processSensor(ret, input) {
5
- const sensor = input.sensor;
6
- if (!sensor || !sensor.parsed) return;
7
-
8
- const parsed = sensor.parsed;
9
-
10
- // The sensor DSL produces its own feature set (SensorViewer, SV_*, etc.).
11
- // Override the FM-selected features so the correct platform capabilities are activated.
12
- if (Array.isArray(parsed.features) && parsed.features.length) {
13
- ret.features = parsed.features;
14
- }
15
-
16
- const data = parsed.data;
17
- if (!data) return;
18
-
19
- // Use the parser's basicData which already has the correct packageInfo key names
20
- // (artifactId / groupId) and the SET DEPLOYMENT extra values.
21
- // Merge database credentials from the product document (user-configured, not in DSL).
22
- if (data.basicData) {
23
- ret.data.basicData = Object.assign({}, data.basicData, {
24
- database: (input.basicData && input.basicData.database) || {}
25
- });
26
- }
27
-
28
- // The sensor DSL parser already outputs a ready-to-use dataModel
29
- // (entities/enums) — pass it through directly, overriding any UML-sourced value.
30
- if (data.dataModel) {
31
- ret.data.dataModel = data.dataModel;
32
- }
33
-
34
- // Sensor-specific data warehouse (sensors, sensorGroups, maps, layers, styles)
35
- if (data.dataWarehouse) {
36
- ret.data.dataWarehouse = data.dataWarehouse;
37
- }
38
-
39
- if (data.mapViewer) {
40
- ret.data.mapViewer = data.mapViewer;
41
- }
42
-
43
- // forms/lists come from the parser (empty for most sensor products, but respect parsed output).
44
- // menus and statics are set by the core transformation AFTER processors run.
45
- ret.data.forms = data.forms || [];
46
- ret.data.lists = data.lists || [];
47
- });
1
+ // Fallback path: runs when #buildEngineSpec in ProductService did NOT trigger the engine's
2
+ // fast-path shortcut (i.e. parsed.data.basicData was absent). For fully-valid sensor products
3
+ // the fast-path fires instead and this processor receives input.sensor === undefined.
4
+ registerMetamodelProcessor(function processSensor(ret, input) {
5
+ const sensor = input.sensor;
6
+ if (!sensor || !sensor.parsed) return;
7
+
8
+ const parsed = sensor.parsed;
9
+
10
+ // The sensor DSL produces its own feature set (SensorViewer, SV_*, etc.).
11
+ // Override the FM-selected features so the correct platform capabilities are activated.
12
+ if (Array.isArray(parsed.features) && parsed.features.length) {
13
+ ret.features = parsed.features;
14
+ }
15
+
16
+ const data = parsed.data;
17
+ if (!data) return;
18
+
19
+ // Use the parser's basicData which already has the correct packageInfo key names
20
+ // (artifactId / groupId) and the SET DEPLOYMENT extra values.
21
+ // Merge database credentials from the product document (user-configured, not in DSL).
22
+ if (data.basicData) {
23
+ ret.data.basicData = Object.assign({}, data.basicData, {
24
+ database: (input.basicData && input.basicData.database) || {}
25
+ });
26
+ }
27
+
28
+ // The sensor DSL parser already outputs a ready-to-use dataModel
29
+ // (entities/enums) — pass it through directly, overriding any UML-sourced value.
30
+ if (data.dataModel) {
31
+ ret.data.dataModel = data.dataModel;
32
+ }
33
+
34
+ // Sensor-specific data warehouse (sensors, sensorGroups, maps, layers, styles)
35
+ if (data.dataWarehouse) {
36
+ ret.data.dataWarehouse = data.dataWarehouse;
37
+ }
38
+
39
+ if (data.mapViewer) {
40
+ ret.data.mapViewer = data.mapViewer;
41
+ }
42
+
43
+ // forms/lists come from the parser (empty for most sensor products, but respect parsed output).
44
+ // menus and statics are set by the core transformation AFTER processors run.
45
+ ret.data.forms = data.forms || [];
46
+ ret.data.lists = data.lists || [];
47
+ });