@eclipse-glsp-examples/workflow-server-bundled 2.4.0-next.116 → 2.4.0-next.118
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.
- package/package.json +2 -2
- package/wf-glsp-server-node.js +19 -5
- package/wf-glsp-server-node.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp-examples/workflow-server-bundled",
|
|
3
|
-
"version": "2.4.0-next.
|
|
3
|
+
"version": "2.4.0-next.118+079fa99",
|
|
4
4
|
"description": "GLSP node server for the workflow example (bundled)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eclipse",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "079fa991b7f977b842a10fee0e4337a8346c5b7d"
|
|
53
53
|
}
|
package/wf-glsp-server-node.js
CHANGED
|
@@ -63425,11 +63425,16 @@ let RequestModelActionHandler = class RequestModelActionHandler {
|
|
|
63425
63425
|
this.modelState.setAll((_a = action.options) !== null && _a !== void 0 ? _a : {});
|
|
63426
63426
|
const isReconnecting = client_options_util_1.ClientOptionsUtil.isReconnecting(action.options);
|
|
63427
63427
|
const progress = this.reportModelLoading('Model loading in progress');
|
|
63428
|
-
|
|
63429
|
-
|
|
63428
|
+
try {
|
|
63429
|
+
if (isReconnecting) {
|
|
63430
|
+
await this.handleReconnect(action);
|
|
63431
|
+
}
|
|
63432
|
+
else {
|
|
63433
|
+
await this.sourceModelStorage.loadSourceModel(action);
|
|
63434
|
+
}
|
|
63430
63435
|
}
|
|
63431
|
-
|
|
63432
|
-
|
|
63436
|
+
catch (err) {
|
|
63437
|
+
this.handleModelLoadingError(err, progress);
|
|
63433
63438
|
}
|
|
63434
63439
|
this.reportModelLoadingFinished(progress);
|
|
63435
63440
|
return this.submissionHandler.submitInitialModel(action);
|
|
@@ -63452,7 +63457,13 @@ let RequestModelActionHandler = class RequestModelActionHandler {
|
|
|
63452
63457
|
}
|
|
63453
63458
|
reportModelLoadingFinished(monitor) {
|
|
63454
63459
|
this.actionDispatcher.dispatch(protocol_1.StatusAction.create('', { severity: 'NONE' }));
|
|
63455
|
-
monitor.end();
|
|
63460
|
+
monitor === null || monitor === void 0 ? void 0 : monitor.end();
|
|
63461
|
+
}
|
|
63462
|
+
handleModelLoadingError(error, monitor) {
|
|
63463
|
+
// In case of an error we end progress reporting and rethrow the error so
|
|
63464
|
+
// that it can be handled by the default error handler
|
|
63465
|
+
monitor === null || monitor === void 0 ? void 0 : monitor.end();
|
|
63466
|
+
throw error;
|
|
63456
63467
|
}
|
|
63457
63468
|
};
|
|
63458
63469
|
exports.RequestModelActionHandler = RequestModelActionHandler;
|
|
@@ -67146,6 +67157,9 @@ function applyRoute(route, index) {
|
|
|
67146
67157
|
args[args_util_1.ArgsUtil.KEY_EDGE_SOURCE_POINT_Y] = source.y;
|
|
67147
67158
|
args[args_util_1.ArgsUtil.KEY_EDGE_TARGET_POINT_X] = target.x;
|
|
67148
67159
|
args[args_util_1.ArgsUtil.KEY_EDGE_TARGET_POINT_Y] = target.y;
|
|
67160
|
+
if (!edge.args) {
|
|
67161
|
+
edge.args = args;
|
|
67162
|
+
}
|
|
67149
67163
|
return edge;
|
|
67150
67164
|
}
|
|
67151
67165
|
exports.applyRoute = applyRoute;
|