jruby_activiti 1.2.5 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/.ruby-version +1 -1
- data/CHANGELOG +6 -0
- data/Jarfile +5 -0
- data/Jarfile.lock +52 -13
- data/README.md +21 -9
- data/java/build.md +3 -0
- data/java/mapping.md +20 -0
- data/java/pom.xml +30 -0
- data/java/src/main/java/jrubyactiviti/Modeler.java +95 -0
- data/java/src/main/java/jrubyactiviti/ProcessDiagram.java +491 -0
- data/java/src/main/java/jrubyactiviti/ProcessInstanceHighlights.java +237 -0
- data/java/src/main/java/jrubyactiviti/StencilsetResource.java +16 -0
- data/java/src/main/resources/stencilset.json +1339 -0
- data/jruby_activiti.gemspec +3 -2
- data/lib/generators/jruby_activiti/install_generator.rb +4 -0
- data/lib/jar/jrubyactiviti-2.0.jar +0 -0
- data/lib/jruby_activiti/version.rb +1 -1
- data/lib/jruby_activiti/web.rb +81 -0
- data/lib/jruby_activiti.rb +28 -20
- data/test/{base_test.rb → activiti_test.rb} +1 -3
- data/test/instance_hights_test.rb +18 -0
- data/test/modeler_test.rb +35 -0
- data/test/process_diagram_test.rb +33 -0
- data/test/resources/model_init_editor_source.json +1 -0
- data/test/resources/model_json_xml.json +278 -0
- data/test/resources/model_svg_xml.xml +66 -0
- data/test/stencilset_test.rb +7 -0
- data/test/test_helper.rb +2 -0
- data/web/public/diagram-viewer/images/bg.png +0 -0
- data/web/public/diagram-viewer/images/breadcrumbs.png +0 -0
- data/web/public/diagram-viewer/images/checker-bg.png +0 -0
- data/web/public/diagram-viewer/images/deployer/blue/message_catch.png +0 -0
- data/web/public/diagram-viewer/images/deployer/business_rule.png +0 -0
- data/web/public/diagram-viewer/images/deployer/error_catch.png +0 -0
- data/web/public/diagram-viewer/images/deployer/error_throw.png +0 -0
- data/web/public/diagram-viewer/images/deployer/manual.png +0 -0
- data/web/public/diagram-viewer/images/deployer/message_catch.png +0 -0
- data/web/public/diagram-viewer/images/deployer/message_throw.png +0 -0
- data/web/public/diagram-viewer/images/deployer/receive.png +0 -0
- data/web/public/diagram-viewer/images/deployer/script.png +0 -0
- data/web/public/diagram-viewer/images/deployer/send.png +0 -0
- data/web/public/diagram-viewer/images/deployer/service.png +0 -0
- data/web/public/diagram-viewer/images/deployer/signal_catch.png +0 -0
- data/web/public/diagram-viewer/images/deployer/signal_throw.png +0 -0
- data/web/public/diagram-viewer/images/deployer/timer.png +0 -0
- data/web/public/diagram-viewer/images/deployer/user.png +0 -0
- data/web/public/diagram-viewer/index.html +130 -0
- data/web/public/diagram-viewer/js/ActivitiRest.js +74 -0
- data/web/public/diagram-viewer/js/ActivityImpl.js +1 -0
- data/web/public/diagram-viewer/js/Color.js +603 -0
- data/web/public/diagram-viewer/js/LineBreakMeasurer.js +270 -0
- data/web/public/diagram-viewer/js/Polyline.js +387 -0
- data/web/public/diagram-viewer/js/ProcessDiagramCanvas.js +2172 -0
- data/web/public/diagram-viewer/js/ProcessDiagramGenerator.js +1087 -0
- data/web/public/diagram-viewer/js/jquery/jquery.asyncqueue.js +125 -0
- data/web/public/diagram-viewer/js/jquery/jquery.js +9266 -0
- data/web/public/diagram-viewer/js/jquery/jquery.progressbar.js +131 -0
- data/web/public/diagram-viewer/js/jstools.js +23 -0
- data/web/public/diagram-viewer/js/raphael.2.1.1.js +10 -0
- data/web/public/diagram-viewer/js/raphael.js +10 -0
- data/web/public/diagram-viewer/js/raphael_uncompressed.js +5815 -0
- data/web/public/diagram-viewer/js/textlayout.js +441 -0
- data/web/public/diagram-viewer/style.css +1 -0
- data/web/public/editor-app/app-cfg.js +25 -0
- data/web/public/editor-app/app.js +432 -0
- data/web/public/editor-app/configuration/properties/assignment-display-template.html +4 -0
- data/web/public/editor-app/configuration/properties/assignment-popup.html +44 -0
- data/web/public/editor-app/configuration/properties/assignment-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/boolean-property-template.html +4 -0
- data/web/public/editor-app/configuration/properties/condition-expression-display-template.html +2 -0
- data/web/public/editor-app/configuration/properties/condition-expression-popup.html +29 -0
- data/web/public/editor-app/configuration/properties/condition-expression-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/default-value-display-template.html +4 -0
- data/web/public/editor-app/configuration/properties/event-listeners-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/event-listeners-popup.html +115 -0
- data/web/public/editor-app/configuration/properties/event-listeners-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/execution-listeners-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/execution-listeners-popup.html +101 -0
- data/web/public/editor-app/configuration/properties/execution-listeners-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/feedback-popup.html +17 -0
- data/web/public/editor-app/configuration/properties/fields-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/fields-popup.html +61 -0
- data/web/public/editor-app/configuration/properties/fields-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/form-properties-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/form-properties-popup.html +93 -0
- data/web/public/editor-app/configuration/properties/form-properties-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/in-parameters-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/in-parameters-popup.html +53 -0
- data/web/public/editor-app/configuration/properties/in-parameters-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/message-definitions-display-template.html +2 -0
- data/web/public/editor-app/configuration/properties/message-definitions-popup.html +50 -0
- data/web/public/editor-app/configuration/properties/message-definitions-write-template.html +3 -0
- data/web/public/editor-app/configuration/properties/message-property-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/multiinstance-property-write-template.html +8 -0
- data/web/public/editor-app/configuration/properties/out-parameters-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/out-parameters-popup.html +53 -0
- data/web/public/editor-app/configuration/properties/out-parameters-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/sequenceflow-order-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/sequenceflow-order-popup.html +47 -0
- data/web/public/editor-app/configuration/properties/sequenceflow-order-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/signal-definitions-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/signal-definitions-popup.html +58 -0
- data/web/public/editor-app/configuration/properties/signal-definitions-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/signal-property-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/string-property-write-mode-template.html +8 -0
- data/web/public/editor-app/configuration/properties/subprocess-reference-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/subprocess-reference-popup.html +43 -0
- data/web/public/editor-app/configuration/properties/subprocess-reference-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/task-listeners-display-template.html +3 -0
- data/web/public/editor-app/configuration/properties/task-listeners-popup.html +102 -0
- data/web/public/editor-app/configuration/properties/task-listeners-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties/text-popup.html +17 -0
- data/web/public/editor-app/configuration/properties/text-property-write-template.html +4 -0
- data/web/public/editor-app/configuration/properties-assignment-controller.js +150 -0
- data/web/public/editor-app/configuration/properties-condition-expression-controller.js +58 -0
- data/web/public/editor-app/configuration/properties-custom-controllers.js +18 -0
- data/web/public/editor-app/configuration/properties-default-controllers.js +115 -0
- data/web/public/editor-app/configuration/properties-event-listeners-controller.js +266 -0
- data/web/public/editor-app/configuration/properties-execution-listeners-controller.js +326 -0
- data/web/public/editor-app/configuration/properties-fields-controller.js +192 -0
- data/web/public/editor-app/configuration/properties-form-properties-controller.js +192 -0
- data/web/public/editor-app/configuration/properties-in-parameters-controller.js +158 -0
- data/web/public/editor-app/configuration/properties-message-definitions-controller.js +137 -0
- data/web/public/editor-app/configuration/properties-message-scope-controller.js +48 -0
- data/web/public/editor-app/configuration/properties-multiinstance-controller.js +34 -0
- data/web/public/editor-app/configuration/properties-out-parameters-controller.js +158 -0
- data/web/public/editor-app/configuration/properties-sequenceflow-order-controller.js +130 -0
- data/web/public/editor-app/configuration/properties-signal-definitions-controller.js +136 -0
- data/web/public/editor-app/configuration/properties-signal-scope-controller.js +47 -0
- data/web/public/editor-app/configuration/properties-task-listeners-controller.js +325 -0
- data/web/public/editor-app/configuration/properties.js +99 -0
- data/web/public/editor-app/configuration/toolbar-custom-actions.js +18 -0
- data/web/public/editor-app/configuration/toolbar-default-actions.js +429 -0
- data/web/public/editor-app/configuration/toolbar.js +175 -0
- data/web/public/editor-app/configuration/url-config.js +34 -0
- data/web/public/editor-app/css/style-common.css +1518 -0
- data/web/public/editor-app/css/style-editor.css +639 -0
- data/web/public/editor-app/css/style.css +471 -0
- data/web/public/editor-app/editor/css/editor.css +202 -0
- data/web/public/editor-app/editor/i18n/translation_de.js +383 -0
- data/web/public/editor-app/editor/i18n/translation_en_us.js +423 -0
- data/web/public/editor-app/editor/i18n/translation_signavio_de.js +106 -0
- data/web/public/editor-app/editor/i18n/translation_signavio_en_us.js +108 -0
- data/web/public/editor-app/editor/oryx.debug.js +24510 -0
- data/web/public/editor-app/editor/oryx.js +30 -0
- data/web/public/editor-app/editor-config.js +32 -0
- data/web/public/editor-app/editor-controller.js +65 -0
- data/web/public/editor-app/editor-utils.js +135 -0
- data/web/public/editor-app/editor.html +136 -0
- data/web/public/editor-app/eventbus.js +133 -0
- data/web/public/editor-app/fonts/activiti-admin-webfont.eot +0 -0
- data/web/public/editor-app/fonts/activiti-admin-webfont.svg +43 -0
- data/web/public/editor-app/fonts/activiti-admin-webfont.ttf +0 -0
- data/web/public/editor-app/fonts/activiti-admin-webfont.woff +0 -0
- data/web/public/editor-app/fonts/glyphicons-halflings-regular.eot +0 -0
- data/web/public/editor-app/fonts/glyphicons-halflings-regular.svg +229 -0
- data/web/public/editor-app/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/web/public/editor-app/fonts/glyphicons-halflings-regular.woff +0 -0
- data/web/public/editor-app/header-controller.js +31 -0
- data/web/public/editor-app/i18n/en.json +286 -0
- data/web/public/editor-app/images/bpmn-error.png +0 -0
- data/web/public/editor-app/images/bpmn-warning.png +0 -0
- data/web/public/editor-app/images/datadefinition.png +0 -0
- data/web/public/editor-app/images/delete.png +0 -0
- data/web/public/editor-app/images/loading.gif +0 -0
- data/web/public/editor-app/images/logo-2x.png +0 -0
- data/web/public/editor-app/images/logo.png +0 -0
- data/web/public/editor-app/images/nw-handle-dark.gif +0 -0
- data/web/public/editor-app/images/se-handle-dark.gif +0 -0
- data/web/public/editor-app/images/shapemenu_highlight.png +0 -0
- data/web/public/editor-app/images/wrench.png +0 -0
- data/web/public/editor-app/libs/angular-cookies_1.2.13/angular-cookies.min.js +8 -0
- data/web/public/editor-app/libs/angular-cookies_1.2.13/angular-cookies.min.js.map +8 -0
- data/web/public/editor-app/libs/angular-dragdrop.min-1.0.3.js +9 -0
- data/web/public/editor-app/libs/angular-dragdrop_1.0.7/angular-dragdrop.min.js +29 -0
- data/web/public/editor-app/libs/angular-mocks_1.2.13/angular-mocks.js +2136 -0
- data/web/public/editor-app/libs/angular-resource_1.2.13/angular-resource.js +596 -0
- data/web/public/editor-app/libs/angular-resource_1.2.13/angular-resource.min.js +13 -0
- data/web/public/editor-app/libs/angular-resource_1.2.13/angular-resource.min.js.map +8 -0
- data/web/public/editor-app/libs/angular-route_1.2.13/angular-route.js +921 -0
- data/web/public/editor-app/libs/angular-route_1.2.13/angular-route.min.js +14 -0
- data/web/public/editor-app/libs/angular-route_1.2.13/angular-route.min.js.map +8 -0
- data/web/public/editor-app/libs/angular-sanitize_1.2.13/angular-sanitize.js +625 -0
- data/web/public/editor-app/libs/angular-sanitize_1.2.13/angular-sanitize.min.js +14 -0
- data/web/public/editor-app/libs/angular-sanitize_1.2.13/angular-sanitize.min.js.map +8 -0
- data/web/public/editor-app/libs/angular-scroll_0.5.7/angular-scroll.min.js +1 -0
- data/web/public/editor-app/libs/angular-strap_2.0.5/angular-strap.min.js +9 -0
- data/web/public/editor-app/libs/angular-strap_2.0.5/angular-strap.tpl.min.js +8 -0
- data/web/public/editor-app/libs/angular-translate-loader-static-files/.bower.json +19 -0
- data/web/public/editor-app/libs/angular-translate-loader-static-files/angular-translate-loader-static-files.js +31 -0
- data/web/public/editor-app/libs/angular-translate-loader-static-files/angular-translate-loader-static-files.min.js +6 -0
- data/web/public/editor-app/libs/angular-translate-storage-cookie/.bower.json +20 -0
- data/web/public/editor-app/libs/angular-translate-storage-cookie/angular-translate-storage-cookie.js +19 -0
- data/web/public/editor-app/libs/angular-translate-storage-cookie/angular-translate-storage-cookie.min.js +6 -0
- data/web/public/editor-app/libs/angular-translate_2.4.2/angular-translate.js +960 -0
- data/web/public/editor-app/libs/angular-translate_2.4.2/angular-translate.min.js +6 -0
- data/web/public/editor-app/libs/angular_1.2.13/angular-animate.min.js +27 -0
- data/web/public/editor-app/libs/angular_1.2.13/angular.min.js +204 -0
- data/web/public/editor-app/libs/bootstrap-daterangepicker_1.3.7/daterangepicker-bs3.css +267 -0
- data/web/public/editor-app/libs/bootstrap-daterangepicker_1.3.7/daterangepicker.js +1026 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap-theme.css +347 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap-theme.css.map +1 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap-theme.min.css +7 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap.css +5785 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap.css.map +1 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/css/bootstrap.min.css +7 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.eot +0 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.svg +229 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/fonts/glyphicons-halflings-regular.woff +0 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/js/bootstrap.js +1951 -0
- data/web/public/editor-app/libs/bootstrap_3.1.1/js/bootstrap.min.js +6 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/.bower.json +14 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/.gitignore +2 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/CHANGES +93 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/CONTRIBUTORS.md +25 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/LICENSE +19 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/README.md +161 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-sham.js +444 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-sham.map +1 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-sham.min.js +4 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-shim.js +1314 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-shim.map +1 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/es5-shim.min.js +4 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/package.json +34 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/helpers/h-kill.js +64 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/helpers/h-matchers.js +34 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/helpers/h.js +3 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/index.html +64 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/index.min.html +63 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/lib/jasmine-html.js +190 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/lib/jasmine.css +166 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/lib/jasmine.js +2477 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/lib/jasmine_favicon.png +0 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/lib/json2.js +478 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-array.js +1223 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-date.js +152 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-function.js +147 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-number.js +14 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-object.js +181 -0
- data/web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-string.js +204 -0
- data/web/public/editor-app/libs/jquery-ui-1.10.3.custom.min.js +6 -0
- data/web/public/editor-app/libs/jquery.autogrow-textarea.js +61 -0
- data/web/public/editor-app/libs/jquery_1.11.0/jquery.js +9789 -0
- data/web/public/editor-app/libs/jquery_1.11.0/jquery.min.js +4 -0
- data/web/public/editor-app/libs/jquery_1.11.0/jquery.min.map +1 -0
- data/web/public/editor-app/libs/json3_3.2.6/LICENSE +20 -0
- data/web/public/editor-app/libs/json3_3.2.6/lib/json3.js +861 -0
- data/web/public/editor-app/libs/json3_3.2.6/lib/json3.min.js +18 -0
- data/web/public/editor-app/libs/momentjs_2.5.1/momentjs.min.js +6 -0
- data/web/public/editor-app/libs/mousetrap-1.4.5.min.js +9 -0
- data/web/public/editor-app/libs/ng-grid-2.0.7-min.js +2 -0
- data/web/public/editor-app/libs/ng-grid-2.0.7.min.css +1 -0
- data/web/public/editor-app/libs/path_parser.js +30 -0
- data/web/public/editor-app/libs/prototype-1.5.1.js +3272 -0
- data/web/public/editor-app/libs/ui-utils.min-0.0.4.js +7 -0
- data/web/public/editor-app/partials/root-stencil-item-template.html +11 -0
- data/web/public/editor-app/partials/stencil-item-template.html +27 -0
- data/web/public/editor-app/plugins.xml +58 -0
- data/web/public/editor-app/popups/icon-template.html +3 -0
- data/web/public/editor-app/popups/save-model.html +41 -0
- data/web/public/editor-app/popups/select-shape.html +20 -0
- data/web/public/editor-app/popups/unsaved-changes.html +22 -0
- data/web/public/editor-app/select-shape-controller.js +314 -0
- data/web/public/editor-app/stencil-controller.js +1421 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/event.subprocess.collapsed.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/event.subprocess.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/expanded.subprocess.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.business.rule.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.camel.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.manual.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.mule.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.receive.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.script.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.send.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.service.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.shell.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/list/type.user.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/subprocess.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/activity/task.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/artifact/text.annotation.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/cancel.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/compensation.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/error.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/message.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/signal.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/catching/timer.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/connector/association.undirected.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/connector/association.unidirectional.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/connector/messageflow.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/connector/sequenceflow.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/dataobject/data.store.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/diagram.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/endevent/cancel.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/endevent/error.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/endevent/none.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/endevent/terminate.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/gateway/eventbased.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/gateway/exclusive.databased.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/gateway/inclusive.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/gateway/parallel.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/startevent/error.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/startevent/message.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/startevent/none.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/startevent/signal.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/startevent/timer.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/swimlane/lane.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/swimlane/pool.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/throwing/none.png +0 -0
- data/web/public/editor-app/stencilsets/bpmn2.0/icons/throwing/signal.png +0 -0
- data/web/public/editor-app/toolbar-controller.js +162 -0
- data/web/public/modeler.html +140 -0
- data/web/views/models/index.erb +32 -0
- data/web/views/models/new.erb +15 -0
- metadata +334 -10
@@ -0,0 +1,66 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:oryx="http://oryx-editor.org" id="sid-ED66A44C-4FAB-46B1-BE3D-12BE4004B8F1" width="578.5" height="189" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg"><defs><marker id="sid-2012AF03-8087-4172-AF41-2DC00F7DE3D0start" refX="1" refY="5" markerUnits="userSpaceOnUse" markerWidth="17" markerHeight="11" orient="auto">
|
2
|
+
undefined
|
3
|
+
<path id="sid-2012AF03-8087-4172-AF41-2DC00F7DE3D0default" d="M 5 0 L 11 10" fill="white" stroke="#585858" stroke-width="1" display="none"/>
|
4
|
+
</marker><marker id="sid-2012AF03-8087-4172-AF41-2DC00F7DE3D0end" refX="15" refY="6" markerUnits="userSpaceOnUse" markerWidth="15" markerHeight="12" orient="auto">
|
5
|
+
<path id="sid-2012AF03-8087-4172-AF41-2DC00F7DE3D0arrowhead" d="M 0 1 L 15 6 L 0 11z" fill="#585858" stroke="#585858" stroke-linejoin="round" stroke-width="2"/>
|
6
|
+
</marker><marker id="sid-8DC19896-8A8F-4829-ADEA-EF68DA2DFB83start" refX="1" refY="5" markerUnits="userSpaceOnUse" markerWidth="17" markerHeight="11" orient="auto">
|
7
|
+
undefined
|
8
|
+
<path id="sid-8DC19896-8A8F-4829-ADEA-EF68DA2DFB83default" d="M 5 0 L 11 10" fill="white" stroke="#585858" stroke-width="1" display="none"/>
|
9
|
+
</marker><marker id="sid-8DC19896-8A8F-4829-ADEA-EF68DA2DFB83end" refX="15" refY="6" markerUnits="userSpaceOnUse" markerWidth="15" markerHeight="12" orient="auto">
|
10
|
+
<path id="sid-8DC19896-8A8F-4829-ADEA-EF68DA2DFB83arrowhead" d="M 0 1 L 15 6 L 0 11z" fill="#585858" stroke="#585858" stroke-linejoin="round" stroke-width="2"/>
|
11
|
+
</marker><marker id="sid-F5AB12B6-3491-4860-B910-58B43C1038A1start" refX="1" refY="5" markerUnits="userSpaceOnUse" markerWidth="17" markerHeight="11" orient="auto">
|
12
|
+
undefined
|
13
|
+
<path id="sid-F5AB12B6-3491-4860-B910-58B43C1038A1default" d="M 5 0 L 11 10" fill="white" stroke="#585858" stroke-width="1" display="none"/>
|
14
|
+
</marker><marker id="sid-F5AB12B6-3491-4860-B910-58B43C1038A1end" refX="15" refY="6" markerUnits="userSpaceOnUse" markerWidth="15" markerHeight="12" orient="auto">
|
15
|
+
<path id="sid-F5AB12B6-3491-4860-B910-58B43C1038A1arrowhead" d="M 0 1 L 15 6 L 0 11z" fill="#585858" stroke="#585858" stroke-linejoin="round" stroke-width="2"/>
|
16
|
+
</marker></defs><svg id="underlay-container"/><g stroke="none" font-family="Verdana, sans-serif" font-size-adjust="none" font-style="normal" font-variant="normal" font-weight="normal" line-heigth="normal" font-size="12"><g class="stencils"><g class="me"/><g class="children"><g id="svg-sid-C83EB92E-A578-48E7-9EF6-4CA94AA0FD87"><g class="stencils" transform="translate(135.5, 84)"><g class="me"><g pointer-events="fill" id="sid-EA303388-FA5F-4269-BCDE-55E6AFF2C80B" title="Start event">
|
17
|
+
<circle id="sid-EA303388-FA5F-4269-BCDE-55E6AFF2C80Bbg_frame" cx="15" cy="15" r="15" stroke="#585858" fill="#ffffff" stroke-width="1"/>
|
18
|
+
<text font-size="11" id="sid-EA303388-FA5F-4269-BCDE-55E6AFF2C80Btext_name" x="15" y="32" oryx:align="top center" stroke="#373e48" stroke-width="0pt" letter-spacing="-0.01px" transform="rotate(0 15 32)" oryx:fontSize="11" text-anchor="middle"/>
|
19
|
+
</g></g><g class="children" style="overflow:hidden"/><g class="edge"/></g><g class="controls"><g class="dockers"/><g class="magnets" transform="translate(135.5, 84)"><g pointer-events="all" display="none" transform="translate(7, 7)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g></g></g></g><g id="svg-sid-B5B84091-5597-4F31-AD82-C864B64DC910"><g class="stencils" transform="translate(210.5, 59)"><g class="me"><g pointer-events="fill" oryx:minimumSize="50 40" id="sid-9F80B7A6-9835-455D-AD69-A8902E202C2B" title="User task">
|
20
|
+
<rect id="sid-9F80B7A6-9835-455D-AD69-A8902E202C2Btext_frame" oryx:anchors="bottom top right left" x="1" y="1" width="94" height="79" rx="10" ry="10" stroke="none" stroke-width="0" fill="none"/>
|
21
|
+
<rect id="sid-9F80B7A6-9835-455D-AD69-A8902E202C2Bbg_frame" oryx:resize="vertical horizontal" x="0" y="0" width="100" height="80" rx="10" ry="10" stroke="#bbbbbb" stroke-width="1" fill="#f9f9f9"/>
|
22
|
+
<text font-size="12" id="sid-9F80B7A6-9835-455D-AD69-A8902E202C2Btext_name" x="50" y="40" oryx:align="middle center" oryx:fittoelem="text_frame" stroke="#373e48" stroke-width="0pt" letter-spacing="-0.01px" transform="rotate(0 50 40)" oryx:fontSize="12" text-anchor="middle"/>
|
23
|
+
|
24
|
+
<g id="sid-9F80B7A6-9835-455D-AD69-A8902E202C2BuserTask" transform="translate(3,3)">
|
25
|
+
<path oryx:anchors="top left" style="fill:#d1b575;stroke:none;" d="m 1,17 16,0 0,-1.7778 -5.333332,-3.5555 0,-1.7778 c 1.244444,0 1.244444,-2.3111 1.244444,-2.3111 l 0,-3.0222 C 12.555557,0.8221 9.0000001,1.0001 9.0000001,1.0001 c 0,0 -3.5555556,-0.178 -3.9111111,3.5555 l 0,3.0222 c 0,0 0,2.3111 1.2444443,2.3111 l 0,1.7778 L 1,15.2222 1,17 17,17" id="sid-9F80B7A6-9835-455D-AD69-A8902E202C2B_sid-9F80B7A6-9835-455D-AD69-A8902E202C2B_17"/>
|
26
|
+
|
27
|
+
</g>
|
28
|
+
|
29
|
+
<g id="sid-9F80B7A6-9835-455D-AD69-A8902E202C2Bparallel" display="none">
|
30
|
+
<path oryx:anchors="bottom" fill="none" stroke="#bbbbbb" d="M46 70 v8 M50 70 v8 M54 70 v8" stroke-width="2" id="sid-9F80B7A6-9835-455D-AD69-A8902E202C2B_sid-9F80B7A6-9835-455D-AD69-A8902E202C2B_18"/>
|
31
|
+
</g>
|
32
|
+
|
33
|
+
<g id="sid-9F80B7A6-9835-455D-AD69-A8902E202C2Bsequential" display="none">
|
34
|
+
<path oryx:anchors="bottom" fill="none" stroke="#bbbbbb" stroke-width="2" d="M46,76h10M46,72h10 M46,68h10" id="sid-9F80B7A6-9835-455D-AD69-A8902E202C2B_sid-9F80B7A6-9835-455D-AD69-A8902E202C2B_19"/>
|
35
|
+
</g>
|
36
|
+
|
37
|
+
|
38
|
+
<g id="sid-9F80B7A6-9835-455D-AD69-A8902E202C2Bcompensation" display="none">
|
39
|
+
<path oryx:anchors="bottom" fill="none" stroke="#bbbbbb" d="M 62 74 L 66 70 L 66 78 L 62 74 L 62 70 L 58 74 L 62 78 L 62 74" stroke-width="1" id="sid-9F80B7A6-9835-455D-AD69-A8902E202C2B_sid-9F80B7A6-9835-455D-AD69-A8902E202C2B_20"/>
|
40
|
+
</g>
|
41
|
+
</g></g><g class="children" style="overflow:hidden"/><g class="edge"/></g><g class="controls"><g class="dockers"/><g class="magnets" transform="translate(210.5, 59)"><g pointer-events="all" display="none" transform="translate(-7, 12)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(-7, 32)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(-7, 52)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(17, 71)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(42, 71)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(67, 71)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(91, 12)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(91, 32)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(91, 52)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(17, -7)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(42, -7)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(67, -7)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(42, 32)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g></g></g></g><g id="svg-sid-A3763AAE-E395-4B7E-B488-341B6B0C06D7"><g class="stencils" transform="translate(355.5, 59)"><g class="me"><g pointer-events="fill" oryx:minimumSize="50 40" id="sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499" title="User task">
|
42
|
+
<rect id="sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499text_frame" oryx:anchors="bottom top right left" x="1" y="1" width="94" height="79" rx="10" ry="10" stroke="none" stroke-width="0" fill="none"/>
|
43
|
+
<rect id="sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499bg_frame" oryx:resize="vertical horizontal" x="0" y="0" width="100" height="80" rx="10" ry="10" stroke="#bbbbbb" stroke-width="1" fill="#f9f9f9"/>
|
44
|
+
<text font-size="12" id="sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499text_name" x="50" y="40" oryx:align="middle center" oryx:fittoelem="text_frame" stroke="#373e48" stroke-width="0pt" letter-spacing="-0.01px" transform="rotate(0 50 40)" oryx:fontSize="12" text-anchor="middle"/>
|
45
|
+
|
46
|
+
<g id="sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499userTask" transform="translate(3,3)">
|
47
|
+
<path oryx:anchors="top left" style="fill:#d1b575;stroke:none;" d="m 1,17 16,0 0,-1.7778 -5.333332,-3.5555 0,-1.7778 c 1.244444,0 1.244444,-2.3111 1.244444,-2.3111 l 0,-3.0222 C 12.555557,0.8221 9.0000001,1.0001 9.0000001,1.0001 c 0,0 -3.5555556,-0.178 -3.9111111,3.5555 l 0,3.0222 c 0,0 0,2.3111 1.2444443,2.3111 l 0,1.7778 L 1,15.2222 1,17 17,17" id="sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499_sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499_17"/>
|
48
|
+
|
49
|
+
</g>
|
50
|
+
|
51
|
+
<g id="sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499parallel" display="none">
|
52
|
+
<path oryx:anchors="bottom" fill="none" stroke="#bbbbbb" d="M46 70 v8 M50 70 v8 M54 70 v8" stroke-width="2" id="sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499_sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499_18"/>
|
53
|
+
</g>
|
54
|
+
|
55
|
+
<g id="sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499sequential" display="none">
|
56
|
+
<path oryx:anchors="bottom" fill="none" stroke="#bbbbbb" stroke-width="2" d="M46,76h10M46,72h10 M46,68h10" id="sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499_sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499_19"/>
|
57
|
+
</g>
|
58
|
+
|
59
|
+
|
60
|
+
<g id="sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499compensation" display="none">
|
61
|
+
<path oryx:anchors="bottom" fill="none" stroke="#bbbbbb" d="M 62 74 L 66 70 L 66 78 L 62 74 L 62 70 L 58 74 L 62 78 L 62 74" stroke-width="1" id="sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499_sid-FF8EB08B-B504-487B-B4A3-6C70B3BB9499_20"/>
|
62
|
+
</g>
|
63
|
+
</g></g><g class="children" style="overflow:hidden"/><g class="edge"/></g><g class="controls"><g class="dockers"/><g class="magnets" transform="translate(355.5, 59)"><g pointer-events="all" display="none" transform="translate(-7, 12)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(-7, 32)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(-7, 52)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(17, 71)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(42, 71)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(67, 71)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(91, 12)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(91, 32)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(91, 52)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(17, -7)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(42, -7)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(67, -7)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g><g pointer-events="all" display="none" transform="translate(42, 32)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g></g></g></g><g id="svg-sid-6D2039A8-7E87-4787-A984-85A02EB1D6BF"><g class="stencils" transform="translate(500.5, 85)"><g class="me"><g pointer-events="fill" id="sid-5801957F-3AF3-47D0-9A93-B3D2710C7037" title="End event">
|
64
|
+
<circle id="sid-5801957F-3AF3-47D0-9A93-B3D2710C7037bg_frame" cx="14" cy="14" r="14" stroke="#585858" fill="#ffffff" stroke-width="3"/>
|
65
|
+
<text font-size="11" id="sid-5801957F-3AF3-47D0-9A93-B3D2710C7037text_name" x="14" y="30" oryx:align="top center" stroke="#373e48" stroke-width="0pt" letter-spacing="-0.01px" transform="rotate(0 14 30)" oryx:fontSize="11" text-anchor="middle"/>
|
66
|
+
</g></g><g class="children" style="overflow:hidden"/><g class="edge"/></g><g class="controls"><g class="dockers"/><g class="magnets" transform="translate(500.5, 85)"><g pointer-events="all" display="none" transform="translate(6, 6)"><circle cx="8" cy="8" r="4" stroke="none" fill="red" fill-opacity="0.3"/></g></g></g></g></g><g class="edge"><g id="svg-sid-3C52C40D-FE90-4F3C-A34B-6558409B3409"><g class="stencils"><g class="me"><g pointer-events="painted"><path id="sid-2012AF03-8087-4172-AF41-2DC00F7DE3D0_1" d="M166.109375 99L209.65625 99 " stroke="#585858" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" marker-start="url(#sid-2012AF03-8087-4172-AF41-2DC00F7DE3D0start)" marker-end="url(#sid-2012AF03-8087-4172-AF41-2DC00F7DE3D0end)"/></g><text id="sid-2012AF03-8087-4172-AF41-2DC00F7DE3D0text_name" x="174" y="91" oryx:edgePosition="startTop" stroke-width="0pt" letter-spacing="-0.01px" transform="rotate(360 166 99)" oryx:fontSize="12" text-anchor="start"/></g><g class="children" style="overflow:hidden"/><g class="edge"/></g><g class="controls"><g class="dockers"/><g class="magnets"/></g></g><g id="svg-sid-BCF65C26-7D39-41A7-BAE1-BB0B50FF60D0"><g class="stencils"><g class="me"><g pointer-events="painted"><path id="sid-8DC19896-8A8F-4829-ADEA-EF68DA2DFB83_1" d="M311.34375 99L354.65625 99 " stroke="#585858" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" marker-start="url(#sid-8DC19896-8A8F-4829-ADEA-EF68DA2DFB83start)" marker-end="url(#sid-8DC19896-8A8F-4829-ADEA-EF68DA2DFB83end)"/></g><text id="sid-8DC19896-8A8F-4829-ADEA-EF68DA2DFB83text_name" x="319" y="91" oryx:edgePosition="startTop" stroke-width="0pt" letter-spacing="-0.01px" transform="rotate(360 311 99)" oryx:fontSize="12" text-anchor="start"/></g><g class="children" style="overflow:hidden"/><g class="edge"/></g><g class="controls"><g class="dockers"/><g class="magnets"/></g></g><g id="svg-sid-A5ED38DA-BA70-405F-B30E-F54F22BBFC02"><g class="stencils"><g class="me"><g pointer-events="painted"><path id="sid-F5AB12B6-3491-4860-B910-58B43C1038A1_1" d="M455.890625 99L499.875 99 " stroke="#585858" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" marker-start="url(#sid-F5AB12B6-3491-4860-B910-58B43C1038A1start)" marker-end="url(#sid-F5AB12B6-3491-4860-B910-58B43C1038A1end)"/></g><text id="sid-F5AB12B6-3491-4860-B910-58B43C1038A1text_name" x="463" y="91" oryx:edgePosition="startTop" stroke-width="0pt" letter-spacing="-0.01px" transform="rotate(360 455 99)" oryx:fontSize="12" text-anchor="start"/></g><g class="children" style="overflow:hidden"/><g class="edge"/></g><g class="controls"><g class="dockers"/><g class="magnets"/></g></g></g></g><g class="svgcontainer"><g display="none" transform="translate(496.5, 81)"><rect x="0" y="0" stroke-width="1" stroke="#777777" fill="none" stroke-dasharray="2,2" pointer-events="none" width="36" height="36"/></g><g display="none"><path stroke-width="1" stroke="silver" fill="none" stroke-dasharray="5,5" pointer-events="none"/></g><g display="none"><path stroke-width="1" stroke="silver" fill="none" stroke-dasharray="5,5" pointer-events="none"/></g><g/></g></g></svg>
|
data/test/test_helper.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,130 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
4
|
+
|
5
|
+
<link rel="stylesheet" href="style.css" type="text/css" media="screen">
|
6
|
+
<script src="js/jstools.js" type="text/javascript" charset="utf-8"></script>
|
7
|
+
<script src="js/raphael.js" type="text/javascript" charset="utf-8"></script>
|
8
|
+
|
9
|
+
<script src="js/jquery/jquery.js" type="text/javascript" charset="utf-8"></script>
|
10
|
+
<script src="js/jquery/jquery.progressbar.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<script src="js/jquery/jquery.asyncqueue.js" type="text/javascript" charset="utf-8"></script>
|
12
|
+
|
13
|
+
<script src="js/Color.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="js/Polyline.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="js/ActivityImpl.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
<script src="js/ActivitiRest.js" type="text/javascript" charset="utf-8"></script>
|
17
|
+
<script src="js/LineBreakMeasurer.js" type="text/javascript" charset="utf-8"></script>
|
18
|
+
<script src="js/ProcessDiagramGenerator.js" type="text/javascript" charset="utf-8"></script>
|
19
|
+
<script src="js/ProcessDiagramCanvas.js" type="text/javascript" charset="utf-8"></script>
|
20
|
+
|
21
|
+
<style type="text/css" media="screen">
|
22
|
+
|
23
|
+
</style>
|
24
|
+
</head>
|
25
|
+
<body>
|
26
|
+
<div class="wrapper">
|
27
|
+
<div id="pb1"></div>
|
28
|
+
<div id="overlayBox" >
|
29
|
+
<div id="diagramBreadCrumbs" class="diagramBreadCrumbs" onmousedown="return false" onselectstart="return false"></div>
|
30
|
+
<div id="diagramHolder" class="diagramHolder"></div>
|
31
|
+
<div class="diagram-info" id="diagramInfo"></div>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
<script language='javascript'>
|
35
|
+
var DiagramGenerator = {};
|
36
|
+
var pb1;
|
37
|
+
$(document).ready(function(){
|
38
|
+
var query_string = {};
|
39
|
+
var query = window.location.search.substring(1);
|
40
|
+
var vars = query.split("&");
|
41
|
+
for (var i=0;i<vars.length;i++) {
|
42
|
+
var pair = vars[i].split("=");
|
43
|
+
query_string[pair[0]] = pair[1];
|
44
|
+
}
|
45
|
+
|
46
|
+
var processDefinitionId = query_string["processDefinitionId"];
|
47
|
+
var processInstanceId = query_string["processInstanceId"];
|
48
|
+
|
49
|
+
console.log("Initialize progress bar");
|
50
|
+
|
51
|
+
pb1 = new $.ProgressBar({
|
52
|
+
boundingBox: '#pb1',
|
53
|
+
label: 'Progressbar!',
|
54
|
+
on: {
|
55
|
+
complete: function() {
|
56
|
+
console.log("Progress Bar COMPLETE");
|
57
|
+
this.set('label', 'complete!');
|
58
|
+
if (processInstanceId) {
|
59
|
+
ProcessDiagramGenerator.drawHighLights(processInstanceId);
|
60
|
+
}
|
61
|
+
},
|
62
|
+
valueChange: function(e) {
|
63
|
+
this.set('label', e.newVal + '%');
|
64
|
+
}
|
65
|
+
},
|
66
|
+
value: 0
|
67
|
+
});
|
68
|
+
console.log("Progress bar inited");
|
69
|
+
|
70
|
+
ProcessDiagramGenerator.options = {
|
71
|
+
diagramBreadCrumbsId: "diagramBreadCrumbs",
|
72
|
+
diagramHolderId: "diagramHolder",
|
73
|
+
diagramInfoId: "diagramInfo",
|
74
|
+
on: {
|
75
|
+
click: function(canvas, element, contextObject){
|
76
|
+
var mouseEvent = this;
|
77
|
+
console.log("[CLICK] mouseEvent: %o, canvas: %o, clicked element: %o, contextObject: %o", mouseEvent, canvas, element, contextObject);
|
78
|
+
|
79
|
+
if (contextObject.getProperty("type") == "callActivity") {
|
80
|
+
var processDefinitonKey = contextObject.getProperty("processDefinitonKey");
|
81
|
+
var processDefinitons = contextObject.getProperty("processDefinitons");
|
82
|
+
var processDefiniton = processDefinitons[0];
|
83
|
+
console.log("Load callActivity '" + processDefiniton.processDefinitionKey + "', contextObject: ", contextObject);
|
84
|
+
|
85
|
+
// Load processDefinition
|
86
|
+
ProcessDiagramGenerator.drawDiagram(processDefiniton.processDefinitionId);
|
87
|
+
}
|
88
|
+
},
|
89
|
+
rightClick: function(canvas, element, contextObject){
|
90
|
+
var mouseEvent = this;
|
91
|
+
console.log("[RIGHTCLICK] mouseEvent: %o, canvas: %o, clicked element: %o, contextObject: %o", mouseEvent, canvas, element, contextObject);
|
92
|
+
},
|
93
|
+
over: function(canvas, element, contextObject){
|
94
|
+
var mouseEvent = this;
|
95
|
+
//console.log("[OVER] mouseEvent: %o, canvas: %o, clicked element: %o, contextObject: %o", mouseEvent, canvas, element, contextObject);
|
96
|
+
|
97
|
+
// TODO: show tooltip-window with contextObject info
|
98
|
+
ProcessDiagramGenerator.showActivityInfo(contextObject);
|
99
|
+
},
|
100
|
+
out: function(canvas, element, contextObject){
|
101
|
+
var mouseEvent = this;
|
102
|
+
//console.log("[OUT] mouseEvent: %o, canvas: %o, clicked element: %o, contextObject: %o", mouseEvent, canvas, element, contextObject);
|
103
|
+
|
104
|
+
ProcessDiagramGenerator.hideInfo();
|
105
|
+
}
|
106
|
+
}
|
107
|
+
};
|
108
|
+
|
109
|
+
var baseUrl = window.document.location.protocol + "//" + window.document.location.host + "/";
|
110
|
+
var shortenedUrl = window.document.location.href.replace(baseUrl, "");
|
111
|
+
baseUrl = baseUrl + shortenedUrl.substring(0, shortenedUrl.indexOf("/"));
|
112
|
+
|
113
|
+
ActivitiRest.options = {
|
114
|
+
processInstanceHighLightsUrl: baseUrl + "/service/process-instance/{processInstanceId}/highlights?callback=?",
|
115
|
+
processDefinitionUrl: baseUrl + "/service/process-definition/{processDefinitionId}/diagram-layout?callback=?",
|
116
|
+
processDefinitionByKeyUrl: baseUrl + "/service/process-definition/{processDefinitionKey}/diagram-layout?callback=?"
|
117
|
+
};
|
118
|
+
|
119
|
+
if (processDefinitionId) {
|
120
|
+
ProcessDiagramGenerator.drawDiagram(processDefinitionId);
|
121
|
+
|
122
|
+
} else {
|
123
|
+
alert("processDefinitionId parameter is required");
|
124
|
+
}
|
125
|
+
});
|
126
|
+
|
127
|
+
|
128
|
+
</script>
|
129
|
+
</body>
|
130
|
+
</html>
|
@@ -0,0 +1,74 @@
|
|
1
|
+
var ActivitiRest = {
|
2
|
+
options: {},
|
3
|
+
getProcessDefinitionByKey: function(processDefinitionKey, callback) {
|
4
|
+
var url = Lang.sub(this.options.processDefinitionByKeyUrl, {processDefinitionKey: processDefinitionKey});
|
5
|
+
|
6
|
+
$.ajax({
|
7
|
+
url: url,
|
8
|
+
dataType: 'jsonp',
|
9
|
+
cache: false,
|
10
|
+
async: true,
|
11
|
+
success: function(data, textStatus) {
|
12
|
+
var processDefinition = data;
|
13
|
+
if (!processDefinition) {
|
14
|
+
console.error("Process definition '" + processDefinitionKey + "' not found");
|
15
|
+
} else {
|
16
|
+
callback.apply({processDefinitionId: processDefinition.id});
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}).done(function(data, textStatus) {
|
20
|
+
console.log("ajax done");
|
21
|
+
}).fail(function(jqXHR, textStatus, error){
|
22
|
+
console.error('Get diagram layout['+processDefinitionKey+'] failure: ', textStatus, 'error: ', error, jqXHR);
|
23
|
+
});
|
24
|
+
},
|
25
|
+
|
26
|
+
getProcessDefinition: function(processDefinitionId, callback) {
|
27
|
+
var url = Lang.sub(this.options.processDefinitionUrl, {processDefinitionId: processDefinitionId});
|
28
|
+
|
29
|
+
$.ajax({
|
30
|
+
url: url,
|
31
|
+
dataType: 'jsonp',
|
32
|
+
cache: false,
|
33
|
+
async: true,
|
34
|
+
success: function(data, textStatus) {
|
35
|
+
var processDefinitionDiagramLayout = data;
|
36
|
+
if (!processDefinitionDiagramLayout) {
|
37
|
+
console.error("Process definition diagram layout '" + processDefinitionId + "' not found");
|
38
|
+
return;
|
39
|
+
} else {
|
40
|
+
callback.apply({processDefinitionDiagramLayout: processDefinitionDiagramLayout});
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}).done(function(data, textStatus) {
|
44
|
+
console.log("ajax done");
|
45
|
+
}).fail(function(jqXHR, textStatus, error){
|
46
|
+
console.log('Get diagram layout['+processDefinitionId+'] failure: ', textStatus, jqXHR);
|
47
|
+
});
|
48
|
+
},
|
49
|
+
|
50
|
+
getHighLights: function(processInstanceId, callback) {
|
51
|
+
var url = Lang.sub(this.options.processInstanceHighLightsUrl, {processInstanceId: processInstanceId});
|
52
|
+
|
53
|
+
$.ajax({
|
54
|
+
url: url,
|
55
|
+
dataType: 'jsonp',
|
56
|
+
cache: false,
|
57
|
+
async: true,
|
58
|
+
success: function(data, textStatus) {
|
59
|
+
console.log("ajax returned data");
|
60
|
+
var highLights = data;
|
61
|
+
if (!highLights) {
|
62
|
+
console.log("highLights not found");
|
63
|
+
return;
|
64
|
+
} else {
|
65
|
+
callback.apply({highLights: highLights});
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}).done(function(data, textStatus) {
|
69
|
+
console.log("ajax done");
|
70
|
+
}).fail(function(jqXHR, textStatus, error){
|
71
|
+
console.log('Get HighLights['+processInstanceId+'] failure: ', textStatus, jqXHR);
|
72
|
+
});
|
73
|
+
}
|
74
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
2
|
*
|
1
3
|
* @author Tom Baeyens
|
2
4
|
* @author (Javascript) Dmitry Farafonov
|
3
5
|
*/
|
4
6
|
|
5
7
|
isAsync: function() {
|
6
8
|
return this.isAsync;
|
7
9
|
},
|
8
10
|
|
9
11
|
setAsync: function(isAsync) {
|
10
12
|
this.isAsync = isAsync;
|
11
13
|
},
|
12
14
|
|
13
15
|
isExclusive: function() {
|
14
16
|
return this.isExclusive;
|
15
17
|
},
|
16
18
|
|
17
19
|
setExclusive: function(isExclusive) {
|
18
20
|
this.isExclusive = isExclusive;
|
19
21
|
},
|