├── .gitignore ├── README.md ├── config-overrides.js ├── package.json ├── public ├── favicon.ico ├── index.html └── manifest.json ├── src ├── App.css ├── App.js ├── App.test.js ├── assets │ └── bpmn │ │ ├── pizza-collaboration.bpmn │ │ └── xmlStr.js ├── containers │ └── BpmnBoard │ │ ├── components │ │ ├── Alerts.js │ │ ├── Dialogs.js │ │ ├── EditingTools.js │ │ ├── FileControls.js │ │ ├── ScreenError.js │ │ ├── ScreenLoading.js │ │ └── ZoomControls.js │ │ ├── custom-modeler │ │ ├── custom │ │ │ ├── CustomContextPadProvider.js │ │ │ ├── CustomElementFactory.js │ │ │ ├── CustomPalette.js │ │ │ ├── CustomRenderer.js │ │ │ ├── CustomRules.js │ │ │ ├── CustomUpdater.js │ │ │ └── index.js │ │ └── index.js │ │ ├── descriptors │ │ └── magic.json │ │ ├── index.js │ │ ├── provider │ │ └── magic │ │ │ ├── MagicPropertiesProvider.js │ │ │ ├── index.js │ │ │ └── parts │ │ │ └── SpellProps.js │ │ └── style │ │ ├── app.less │ │ ├── font │ │ ├── app.eot │ │ ├── app.ttf │ │ └── app.woff │ │ └── image │ │ ├── save-active.png │ │ └── save.png ├── index.css ├── index.js ├── logo.svg └── registerServiceWorker.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | 6 | # testing 7 | /coverage 8 | 9 | # production 10 | /build 11 | 12 | # misc 13 | .DS_Store 14 | .env.local 15 | .env.development.local 16 | .env.test.local 17 | .env.production.local 18 | 19 | npm-debug.log* 20 | yarn-debug.log* 21 | yarn-error.log* 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-bpmn 2 | 3 | React and BPMN-JS sample project -------------------------------------------------------------------------------- /config-overrides.js: -------------------------------------------------------------------------------- 1 | /* config-overrides.js */ 2 | const rewireLess = require('react-app-rewire-less'); 3 | 4 | module.exports = function override(config, env) { 5 | config = rewireLess(config, env); 6 | // with loaderOptions 7 | // config = rewireLess.withLoaderOptions(someLoaderOptions)(config, env); 8 | return config; 9 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bpmn-app", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "bpmn-js": "^1.2.0", 7 | "bpmn-js-properties-panel": "^0.24.0", 8 | "lodash": "^4.17.5", 9 | "react": "^16.3.2", 10 | "react-dom": "^16.3.2", 11 | "react-scripts": "1.1.4" 12 | }, 13 | "scripts": { 14 | "start": "react-app-rewired start", 15 | "build": "react-app-rewired build", 16 | "test": "react-app-rewired test --env=jsdom", 17 | "eject": "react-scripts eject" 18 | }, 19 | "devDependencies": { 20 | "react-app-rewire-less": "^2.1.1", 21 | "react-app-rewired": "^1.5.0" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nodejs-viathink/react-bpmn/32275a1466a368b9f7d78f11fa20de57adf19741/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 22 | React App 23 | 24 | 25 | 28 |
29 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": "./index.html", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nodejs-viathink/react-bpmn/32275a1466a368b9f7d78f11fa20de57adf19741/src/App.css -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import './App.css'; 3 | import BpmnBoard from './containers/BpmnBoard'; 4 | 5 | class App extends Component { 6 | render() { 7 | return ( 8 | 9 | ); 10 | } 11 | } 12 | 13 | export default App; 14 | -------------------------------------------------------------------------------- /src/App.test.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import App from './App'; 4 | 5 | it('renders without crashing', () => { 6 | const div = document.createElement('div'); 7 | ReactDOM.render(, div); 8 | ReactDOM.unmountComponentAtNode(div); 9 | }); 10 | -------------------------------------------------------------------------------- /src/assets/bpmn/pizza-collaboration.bpmn: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | OrderReceivedEvent 9 | _6-652 10 | _6-674 11 | CalmCustomerTask 12 | 13 | 14 | _6-463 15 | 16 | 17 | _6-514 18 | _6-565 19 | _6-616 20 | 21 | 22 | 23 | _6-630 24 | 25 | 26 | 27 | _6-630 28 | _6-691 29 | _6-693 30 | 31 | 32 | _6-691 33 | _6-746 34 | _6-748 35 | 36 | 37 | 38 | _6-748 39 | _6-746 40 | 41 | 42 | _6-693 43 | _6-632 44 | 45 | 46 | _6-632 47 | _6-634 48 | 49 | 50 | _6-634 51 | _6-636 52 | 53 | 54 | _6-636 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | _6-125 70 | 71 | 72 | _6-125 73 | _6-178 74 | 75 | 76 | _6-178 77 | _6-420 78 | 79 | 80 | _6-420 81 | _6-430 82 | _6-422 83 | _6-424 84 | 85 | 86 | _6-422 87 | _6-428 88 | 89 | 90 | 91 | _6-424 92 | _6-426 93 | 94 | 95 | 96 | 97 | 98 | _6-426 99 | _6-430 100 | 101 | 102 | _6-428 103 | _6-434 104 | 105 | 106 | _6-434 107 | _6-436 108 | 109 | 110 | _6-436 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | -------------------------------------------------------------------------------- /src/assets/bpmn/xmlStr.js: -------------------------------------------------------------------------------- 1 | export default ` 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | `; 16 | -------------------------------------------------------------------------------- /src/containers/BpmnBoard/components/Alerts.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | export default () => ( 4 |
5 |
6 | 14 | Diagram may not render correctly due to import warnings. 15 | 16 | Show details 17 | . 18 |
19 | 20 |
21 | You edited the diagram. 22 | 23 | Undo last change 24 | . 25 | 33 |
34 |
35 | ); 36 | -------------------------------------------------------------------------------- /src/containers/BpmnBoard/components/Dialogs.js: -------------------------------------------------------------------------------- 1 | import React, { Fragment } from "react"; 2 | 3 | export default () => ( 4 | 5 |
6 |
7 |

About bpmn.io

8 | 9 |

10 | bpmn.io offers tools to view, annotate and edit{" "} 11 | BPMN 2.0 diagrams on the web. Refer 12 | to our project website for more 13 | information. 14 |

15 | 16 |

17 | This is a demo of{" "} 18 | bpmn-js the 19 | JavaScript toolkit that powers bpmn.io. 20 |

21 |

22 |

Built with open-source software

23 | 24 |

25 | bpmn-js is built with 26 | the help of a number of open-source libraries: 27 |

28 | 29 | 40 | 41 |

42 | Icons are assembled using fontello{" "} 43 | from the following icon fonts: 44 |

45 | 46 | 65 | 66 | 67 | 68 | 69 | 70 |

71 | You can find all bpmn.io related open-source projects on 72 | GitHub. 73 |

74 |
75 |
76 | 77 |
81 |
82 |

Import Warnings

83 | 84 |

85 | One or more problems have been identified when trying to import the 86 | BPMN 2.0 diagram: 87 |

88 | 89 |

90 |