@5minds/node-red-contrib-processcube 1.8.8 → 1.9.0
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/.processcube/nodered/.config.nodes.json +1 -1
- package/DEVELOPMENT.md +16 -0
- package/README.md +3 -64
- package/docker-compose.yml +1 -0
- package/externaltask-input.js +7 -3
- package/package.json +2 -2
package/DEVELOPMENT.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# HowTo develop this package
|
2
|
+
|
3
|
+
## What you need?
|
4
|
+
|
5
|
+
- docker
|
6
|
+
- node
|
7
|
+
- npm
|
8
|
+
|
9
|
+
## Get Started?
|
10
|
+
|
11
|
+
1. Clone this repository
|
12
|
+
2. Run `npm install`
|
13
|
+
3. docker compose build
|
14
|
+
4. docker compose up
|
15
|
+
5. Connect to app via vscode launch.json (Attach to Node-RED)
|
16
|
+
6. Happy coding
|
package/README.md
CHANGED
@@ -1,66 +1,5 @@
|
|
1
|
-
# ProcessCube Node-RED
|
1
|
+
# Some Nodes to integrate the ProcessCube Engine into the ProcessCube LowCode component (Node-RED)
|
2
2
|
|
3
|
-
This repository contains
|
3
|
+
This repository contains some nodes to integrate the ProcessCube Engine into the ProcessCube LowCode component (Node-RED).
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
Before running the Node-RED flows, make sure you have the following prerequisites installed:
|
8
|
-
|
9
|
-
- Docker
|
10
|
-
- Docker Compose
|
11
|
-
|
12
|
-
## Installation
|
13
|
-
|
14
|
-
To install and run the Node-RED flows, follow these steps:
|
15
|
-
|
16
|
-
1. Clone this repository to your local machine:
|
17
|
-
|
18
|
-
```bash
|
19
|
-
git clone https://github.com/5minds/processcube_nodered.git
|
20
|
-
```
|
21
|
-
|
22
|
-
2. Change to the project directory:
|
23
|
-
|
24
|
-
```bash
|
25
|
-
cd processcube_nodered
|
26
|
-
```
|
27
|
-
|
28
|
-
3. Install the dependencies of the package `@5minds/node-red-contrib-processcube`:
|
29
|
-
|
30
|
-
```bash
|
31
|
-
npm install
|
32
|
-
```
|
33
|
-
|
34
|
-
4. Build the Docker containers:
|
35
|
-
|
36
|
-
```bash
|
37
|
-
docker-compose build
|
38
|
-
```
|
39
|
-
|
40
|
-
5. Start the Docker containers:
|
41
|
-
|
42
|
-
```bash
|
43
|
-
docker-compose up -d
|
44
|
-
```
|
45
|
-
|
46
|
-
## Usage
|
47
|
-
|
48
|
-
Once the Docker containers are running, you can access the ProcessCube Node-RED interface using the following URLs:
|
49
|
-
|
50
|
-
- Engine: [http://localhost:8000](http://localhost:8000)
|
51
|
-
- Node-RED: [http://localhost:1880](http://localhost:1880)
|
52
|
-
|
53
|
-
In the Node-RED interface, you will find pre-configured flows for starting processes and handling external tasks. You can customize these flows to fit your specific requirements.
|
54
|
-
|
55
|
-
## Contributing
|
56
|
-
|
57
|
-
If you would like to contribute to this project, please follow these guidelines:
|
58
|
-
|
59
|
-
1. Fork the repository on GitHub.
|
60
|
-
2. Create a new branch for your feature or bug fix.
|
61
|
-
3. Commit your changes and push the branch to your fork.
|
62
|
-
4. Submit a pull request to the main repository.
|
63
|
-
|
64
|
-
## License
|
65
|
-
|
66
|
-
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.
|
5
|
+
Details see @ [ProcessCub.io - LowCode Integration Nodes](https://processcube.io/docs/node-red/integration-nodes) and [ProcessCub.io - LowCode Event Nodes](https://processcube.io/docs/node-red/event-nodes).
|
package/docker-compose.yml
CHANGED
@@ -16,6 +16,7 @@ services:
|
|
16
16
|
- NODE_OPTIONS=--inspect=0.0.0.0:9229
|
17
17
|
- NODE_RED_ETW_HEARTBEAT_LOGGING=false
|
18
18
|
- NODE_RED_ETW_STEP_LOGGING=true
|
19
|
+
- NODE_RED_ETW_STOP_IF_FAILED=true
|
19
20
|
volumes:
|
20
21
|
# required for mapping the current source into the directory
|
21
22
|
- ./.:/package_src/
|
package/externaltask-input.js
CHANGED
@@ -324,9 +324,13 @@ module.exports = function (RED) {
|
|
324
324
|
|
325
325
|
node.setUnsubscribedStatus(error);
|
326
326
|
|
327
|
-
|
328
|
-
|
329
|
-
|
327
|
+
if (process.env.NODE_RED_ETW_STOP_IF_FAILED == 'true') {
|
328
|
+
// abort the external task MM: waiting for a fix in the client.ts
|
329
|
+
externalTaskWorker.abortExternalTaskIfPresent(externalTask.id);
|
330
|
+
// mark the external task as finished, cause it is gone
|
331
|
+
node.setFinishHandlingTaskStatus(externalTask);
|
332
|
+
node.log(`Cancel external task flowNodeInstanceId* '${externalTask.flowNodeInstanceId}' and *processInstanceId* '${externalTask.processInstanceId}'.`)
|
333
|
+
}
|
330
334
|
|
331
335
|
break;
|
332
336
|
case 'fetchAndLock':
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@5minds/node-red-contrib-processcube",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.9.0",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Node-RED nodes for ProcessCube",
|
6
6
|
"scripts": {
|
@@ -59,7 +59,7 @@
|
|
59
59
|
"examples": "examples"
|
60
60
|
},
|
61
61
|
"dependencies": {
|
62
|
-
"@5minds/processcube_engine_client": "5.2.
|
62
|
+
"@5minds/processcube_engine_client": "5.2.1",
|
63
63
|
"jwt-decode": "^4.0.0",
|
64
64
|
"openid-client": "^5.5.0"
|
65
65
|
},
|