Skip to content

Commit fd42628

Browse files
committed
add reference for formsio
1 parent d219f33 commit fd42628

5 files changed

Lines changed: 25 additions & 33 deletions

File tree

OpenFlow/src/public/Controllers.ts

Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ export class RPAWorkflowCtrl extends entityCtrl<RPAWorkflow> {
5959
console.log(this.queuename);
6060
await this.loadData();
6161
await this.loadUsers();
62-
$scope.$on('queuemessage', (event, data: QueueMessage) => {
63-
if (event && data) { }
64-
});
65-
6662
} else {
6763
console.error("Missing id");
6864
}
@@ -889,10 +885,6 @@ export class MenuCtrl {
889885
$scope.$root.$on('$routeChangeStart', (...args) => { this.routeChangeStart.apply(this, args); });
890886
this.path = this.$location.path();
891887
var cleanup = this.$scope.$on('signin', (event, data) => {
892-
console.log('MenuCtrl.signin');
893-
console.log('event', event);
894-
console.log('data', data);
895-
896888
if (event && data) { }
897889
this.user = data;
898890
this.signedin = true;
@@ -1331,8 +1323,8 @@ export class SocketCtrl {
13311323
) {
13321324
console.debug("SocketCtrl");
13331325
WebSocketClientService.onSignedin(async (user: TokenUser) => {
1334-
await NoderedUtil.RegisterQueue(WebSocketClient.instance, "", (nack: boolean, result: any) => {
1335-
console.log(result);
1326+
await NoderedUtil.RegisterQueue(WebSocketClient.instance, "", (data: QueueMessage, ack: any) => {
1327+
ack();
13361328
});
13371329
});
13381330
}
@@ -1746,8 +1738,21 @@ export class FormCtrl extends entityCtrl<WorkflowInstance> {
17461738

17471739
this.basequery = { _id: this.id };
17481740
WebSocketClientService.onSignedin(async (user: TokenUser) => {
1749-
this.queuename = await NoderedUtil.RegisterQueue(WebSocketClient.instance, "", (nack: boolean, result: any) => {
1750-
console.log(result);
1741+
this.queuename = await NoderedUtil.RegisterQueue(WebSocketClient.instance, "", (data: QueueMessage, ack: any) => {
1742+
ack();
1743+
console.debug(data);
1744+
if (data.queuename == this.queuename) {
1745+
if (this.instanceid == null && data.data._id != null) {
1746+
this.instanceid = data.data._id;
1747+
// this.$location.path("/Form/" + this.id + "/" + this.instanceid);
1748+
// if (!this.$scope.$$phase) { this.$scope.$apply(); }
1749+
this.loadData();
1750+
return;
1751+
} else {
1752+
this.loadData();
1753+
}
1754+
}
1755+
if (!this.$scope.$$phase) { this.$scope.$apply(); }
17511756
});
17521757
console.log(this.queuename);
17531758
if (this.id !== null && this.id !== undefined && this.id !== "") {
@@ -1759,22 +1764,6 @@ export class FormCtrl extends entityCtrl<WorkflowInstance> {
17591764
console.error(this.errormessage);
17601765
}
17611766
});
1762-
$scope.$on('queuemessage', (event, data: QueueMessage) => {
1763-
if (event && data) { }
1764-
console.debug(data);
1765-
if (data.queuename == this.queuename) {
1766-
if (this.instanceid == null && data.data._id != null) {
1767-
this.instanceid = data.data._id;
1768-
// this.$location.path("/Form/" + this.id + "/" + this.instanceid);
1769-
// if (!this.$scope.$$phase) { this.$scope.$apply(); }
1770-
this.loadData();
1771-
return;
1772-
} else {
1773-
this.loadData();
1774-
}
1775-
}
1776-
if (!this.$scope.$$phase) { this.$scope.$apply(); }
1777-
});
17781767

17791768
}
17801769
async loadData(): Promise<void> {

OpenFlow/src/public/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@
131131
<link rel="stylesheet" href="openflow-font/styles.css">
132132
<link rel="stylesheet" href="site.css">
133133

134+
<link rel='stylesheet' href='formio.full.min.css'>
135+
<script src='formio.full.min.js'></script>
136+
134137
<script>
135138
$(function () {
136139
var navMain = $(".navbar-collapse"); // avoid dependency on #id

OpenFlowNodeRED/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openflow-nodered",
3-
"version": "1.0.43",
3+
"version": "1.0.45",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {
@@ -47,4 +47,4 @@
4747
"unhandled-rejection": "^1.0.0",
4848
"winston": "^3.3.3"
4949
}
50-
}
50+
}

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.44
1+
1.0.45

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openiap",
3-
"version": "1.0.43",
3+
"version": "1.0.45",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {
@@ -87,4 +87,4 @@
8787
"webpack": "^4.43.0",
8888
"webpack-cli": "^3.3.12"
8989
}
90-
}
90+
}

0 commit comments

Comments
 (0)