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,429 @@
|
|
1
|
+
/*
|
2
|
+
* Activiti Modeler component part of the Activiti project
|
3
|
+
* Copyright 2005-2014 Alfresco Software, Ltd. All rights reserved.
|
4
|
+
*
|
5
|
+
* This library is free software; you can redistribute it and/or
|
6
|
+
* modify it under the terms of the GNU Lesser General Public
|
7
|
+
* License as published by the Free Software Foundation; either
|
8
|
+
* version 2.1 of the License, or (at your option) any later version.
|
9
|
+
*
|
10
|
+
* This library is distributed in the hope that it will be useful,
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
+
* Lesser General Public License for more details.
|
14
|
+
|
15
|
+
* You should have received a copy of the GNU Lesser General Public
|
16
|
+
* License along with this library; if not, write to the Free Software
|
17
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
|
+
*/
|
19
|
+
'use strict';
|
20
|
+
|
21
|
+
var KISBPM = KISBPM || {};
|
22
|
+
KISBPM.TOOLBAR = {
|
23
|
+
ACTIONS: {
|
24
|
+
|
25
|
+
saveModel: function (services) {
|
26
|
+
|
27
|
+
var modal = services.$modal({
|
28
|
+
backdrop: true,
|
29
|
+
keyboard: true,
|
30
|
+
template: 'editor-app/popups/save-model.html?version=' + Date.now(),
|
31
|
+
scope: services.$scope
|
32
|
+
});
|
33
|
+
},
|
34
|
+
|
35
|
+
undo: function (services) {
|
36
|
+
|
37
|
+
// Get the last commands
|
38
|
+
var lastCommands = services.$scope.undoStack.pop();
|
39
|
+
|
40
|
+
if (lastCommands) {
|
41
|
+
// Add the commands to the redo stack
|
42
|
+
services.$scope.redoStack.push(lastCommands);
|
43
|
+
|
44
|
+
// Force refresh of selection, might be that the undo command
|
45
|
+
// impacts properties in the selected item
|
46
|
+
if (services.$rootScope && services.$rootScope.forceSelectionRefresh)
|
47
|
+
{
|
48
|
+
services.$rootScope.forceSelectionRefresh = true;
|
49
|
+
}
|
50
|
+
|
51
|
+
// Rollback every command
|
52
|
+
for (var i = lastCommands.length - 1; i >= 0; --i) {
|
53
|
+
lastCommands[i].rollback();
|
54
|
+
}
|
55
|
+
|
56
|
+
// Update and refresh the canvas
|
57
|
+
services.$scope.editor.handleEvents({
|
58
|
+
type: ORYX.CONFIG.EVENT_UNDO_ROLLBACK,
|
59
|
+
commands: lastCommands
|
60
|
+
});
|
61
|
+
|
62
|
+
// Update
|
63
|
+
services.$scope.editor.getCanvas().update();
|
64
|
+
services.$scope.editor.updateSelection();
|
65
|
+
}
|
66
|
+
|
67
|
+
var toggleUndo = false;
|
68
|
+
if (services.$scope.undoStack.length == 0)
|
69
|
+
{
|
70
|
+
toggleUndo = true;
|
71
|
+
}
|
72
|
+
|
73
|
+
var toggleRedo = false;
|
74
|
+
if (services.$scope.redoStack.length > 0)
|
75
|
+
{
|
76
|
+
toggleRedo = true;
|
77
|
+
}
|
78
|
+
|
79
|
+
if (toggleUndo || toggleRedo) {
|
80
|
+
for (var i = 0; i < services.$scope.items.length; i++) {
|
81
|
+
var item = services.$scope.items[i];
|
82
|
+
if (toggleUndo && item.action === 'KISBPM.TOOLBAR.ACTIONS.undo') {
|
83
|
+
services.$scope.safeApply(function () {
|
84
|
+
item.enabled = false;
|
85
|
+
});
|
86
|
+
}
|
87
|
+
else if (toggleRedo && item.action === 'KISBPM.TOOLBAR.ACTIONS.redo') {
|
88
|
+
services.$scope.safeApply(function () {
|
89
|
+
item.enabled = true;
|
90
|
+
});
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
},
|
95
|
+
|
96
|
+
redo: function (services) {
|
97
|
+
|
98
|
+
// Get the last commands from the redo stack
|
99
|
+
var lastCommands = services.$scope.redoStack.pop();
|
100
|
+
|
101
|
+
if (lastCommands) {
|
102
|
+
// Add this commands to the undo stack
|
103
|
+
services.$scope.undoStack.push(lastCommands);
|
104
|
+
|
105
|
+
// Force refresh of selection, might be that the redo command
|
106
|
+
// impacts properties in the selected item
|
107
|
+
if (services.$rootScope && services.$rootScope.forceSelectionRefresh)
|
108
|
+
{
|
109
|
+
services.$rootScope.forceSelectionRefresh = true;
|
110
|
+
}
|
111
|
+
|
112
|
+
// Execute those commands
|
113
|
+
lastCommands.each(function (command) {
|
114
|
+
command.execute();
|
115
|
+
});
|
116
|
+
|
117
|
+
// Update and refresh the canvas
|
118
|
+
services.$scope.editor.handleEvents({
|
119
|
+
type: ORYX.CONFIG.EVENT_UNDO_EXECUTE,
|
120
|
+
commands: lastCommands
|
121
|
+
});
|
122
|
+
|
123
|
+
// Update
|
124
|
+
services.$scope.editor.getCanvas().update();
|
125
|
+
services.$scope.editor.updateSelection();
|
126
|
+
}
|
127
|
+
|
128
|
+
var toggleUndo = false;
|
129
|
+
if (services.$scope.undoStack.length > 0) {
|
130
|
+
toggleUndo = true;
|
131
|
+
}
|
132
|
+
|
133
|
+
var toggleRedo = false;
|
134
|
+
if (services.$scope.redoStack.length == 0) {
|
135
|
+
toggleRedo = true;
|
136
|
+
}
|
137
|
+
|
138
|
+
if (toggleUndo || toggleRedo) {
|
139
|
+
for (var i = 0; i < services.$scope.items.length; i++) {
|
140
|
+
var item = services.$scope.items[i];
|
141
|
+
if (toggleUndo && item.action === 'KISBPM.TOOLBAR.ACTIONS.undo') {
|
142
|
+
services.$scope.safeApply(function () {
|
143
|
+
item.enabled = true;
|
144
|
+
});
|
145
|
+
}
|
146
|
+
else if (toggleRedo && item.action === 'KISBPM.TOOLBAR.ACTIONS.redo') {
|
147
|
+
services.$scope.safeApply(function () {
|
148
|
+
item.enabled = false;
|
149
|
+
});
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
},
|
154
|
+
|
155
|
+
cut: function (services) {
|
156
|
+
KISBPM.TOOLBAR.ACTIONS._getOryxEditPlugin(services.$scope).editCut();
|
157
|
+
for (var i = 0; i < services.$scope.items.length; i++) {
|
158
|
+
var item = services.$scope.items[i];
|
159
|
+
if (item.action === 'KISBPM.TOOLBAR.ACTIONS.paste') {
|
160
|
+
services.$scope.safeApply(function () {
|
161
|
+
item.enabled = true;
|
162
|
+
});
|
163
|
+
}
|
164
|
+
}
|
165
|
+
},
|
166
|
+
|
167
|
+
copy: function (services) {
|
168
|
+
KISBPM.TOOLBAR.ACTIONS._getOryxEditPlugin(services.$scope).editCopy();
|
169
|
+
for (var i = 0; i < services.$scope.items.length; i++) {
|
170
|
+
var item = services.$scope.items[i];
|
171
|
+
if (item.action === 'KISBPM.TOOLBAR.ACTIONS.paste') {
|
172
|
+
services.$scope.safeApply(function () {
|
173
|
+
item.enabled = true;
|
174
|
+
});
|
175
|
+
}
|
176
|
+
}
|
177
|
+
},
|
178
|
+
|
179
|
+
paste: function (services) {
|
180
|
+
KISBPM.TOOLBAR.ACTIONS._getOryxEditPlugin(services.$scope).editPaste();
|
181
|
+
},
|
182
|
+
|
183
|
+
deleteItem: function (services) {
|
184
|
+
KISBPM.TOOLBAR.ACTIONS._getOryxEditPlugin(services.$scope).editDelete();
|
185
|
+
},
|
186
|
+
|
187
|
+
addBendPoint: function (services) {
|
188
|
+
|
189
|
+
var dockerPlugin = KISBPM.TOOLBAR.ACTIONS._getOryxDockerPlugin(services.$scope);
|
190
|
+
|
191
|
+
var enableAdd = !dockerPlugin.enabledAdd();
|
192
|
+
dockerPlugin.setEnableAdd(enableAdd);
|
193
|
+
if (enableAdd)
|
194
|
+
{
|
195
|
+
dockerPlugin.setEnableRemove(false);
|
196
|
+
document.body.style.cursor = 'pointer';
|
197
|
+
}
|
198
|
+
else
|
199
|
+
{
|
200
|
+
document.body.style.cursor = 'default';
|
201
|
+
}
|
202
|
+
},
|
203
|
+
|
204
|
+
removeBendPoint: function (services) {
|
205
|
+
|
206
|
+
var dockerPlugin = KISBPM.TOOLBAR.ACTIONS._getOryxDockerPlugin(services.$scope);
|
207
|
+
|
208
|
+
var enableRemove = !dockerPlugin.enabledRemove();
|
209
|
+
dockerPlugin.setEnableRemove(enableRemove);
|
210
|
+
if (enableRemove)
|
211
|
+
{
|
212
|
+
dockerPlugin.setEnableAdd(false);
|
213
|
+
document.body.style.cursor = 'pointer';
|
214
|
+
}
|
215
|
+
else
|
216
|
+
{
|
217
|
+
document.body.style.cursor = 'default';
|
218
|
+
}
|
219
|
+
},
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Helper method: fetches the Oryx Edit plugin from the provided scope,
|
223
|
+
* if not on the scope, it is created and put on the scope for further use.
|
224
|
+
*
|
225
|
+
* It's important to reuse the same EditPlugin while the same scope is active,
|
226
|
+
* as the clipboard is stored for the whole lifetime of the scope.
|
227
|
+
*/
|
228
|
+
_getOryxEditPlugin: function ($scope) {
|
229
|
+
if ($scope.oryxEditPlugin === undefined || $scope.oryxEditPlugin === null) {
|
230
|
+
$scope.oryxEditPlugin = new ORYX.Plugins.Edit($scope.editor);
|
231
|
+
}
|
232
|
+
return $scope.oryxEditPlugin;
|
233
|
+
},
|
234
|
+
|
235
|
+
zoomIn: function (services) {
|
236
|
+
KISBPM.TOOLBAR.ACTIONS._getOryxViewPlugin(services.$scope).zoom([1.0 + ORYX.CONFIG.ZOOM_OFFSET]);
|
237
|
+
},
|
238
|
+
|
239
|
+
zoomOut: function (services) {
|
240
|
+
KISBPM.TOOLBAR.ACTIONS._getOryxViewPlugin(services.$scope).zoom([1.0 - ORYX.CONFIG.ZOOM_OFFSET]);
|
241
|
+
},
|
242
|
+
|
243
|
+
zoomActual: function (services) {
|
244
|
+
KISBPM.TOOLBAR.ACTIONS._getOryxViewPlugin(services.$scope).setAFixZoomLevel(1);
|
245
|
+
},
|
246
|
+
|
247
|
+
zoomFit: function (services) {
|
248
|
+
KISBPM.TOOLBAR.ACTIONS._getOryxViewPlugin(services.$scope).zoomFitToModel();
|
249
|
+
},
|
250
|
+
|
251
|
+
alignVertical: function (services) {
|
252
|
+
KISBPM.TOOLBAR.ACTIONS._getOryxArrangmentPlugin(services.$scope).alignShapes([ORYX.CONFIG.EDITOR_ALIGN_MIDDLE]);
|
253
|
+
},
|
254
|
+
|
255
|
+
alignHorizontal: function (services) {
|
256
|
+
KISBPM.TOOLBAR.ACTIONS._getOryxArrangmentPlugin(services.$scope).alignShapes([ORYX.CONFIG.EDITOR_ALIGN_CENTER]);
|
257
|
+
},
|
258
|
+
|
259
|
+
sameSize: function (services) {
|
260
|
+
KISBPM.TOOLBAR.ACTIONS._getOryxArrangmentPlugin(services.$scope).alignShapes([ORYX.CONFIG.EDITOR_ALIGN_SIZE]);
|
261
|
+
},
|
262
|
+
|
263
|
+
closeEditor: function(services) {
|
264
|
+
window.location.href = "./";
|
265
|
+
},
|
266
|
+
|
267
|
+
/**
|
268
|
+
* Helper method: fetches the Oryx View plugin from the provided scope,
|
269
|
+
* if not on the scope, it is created and put on the scope for further use.
|
270
|
+
*/
|
271
|
+
_getOryxViewPlugin: function ($scope) {
|
272
|
+
if ($scope.oryxViewPlugin === undefined || $scope.oryxViewPlugin === null) {
|
273
|
+
$scope.oryxViewPlugin = new ORYX.Plugins.View($scope.editor);
|
274
|
+
}
|
275
|
+
return $scope.oryxViewPlugin;
|
276
|
+
},
|
277
|
+
|
278
|
+
_getOryxArrangmentPlugin: function ($scope) {
|
279
|
+
if ($scope.oryxArrangmentPlugin === undefined || $scope.oryxArrangmentPlugin === null) {
|
280
|
+
$scope.oryxArrangmentPlugin = new ORYX.Plugins.Arrangement($scope.editor);
|
281
|
+
}
|
282
|
+
return $scope.oryxArrangmentPlugin;
|
283
|
+
},
|
284
|
+
|
285
|
+
_getOryxDockerPlugin: function ($scope) {
|
286
|
+
if ($scope.oryxDockerPlugin === undefined || $scope.oryxDockerPlugin === null) {
|
287
|
+
$scope.oryxDockerPlugin = new ORYX.Plugins.AddDocker($scope.editor);
|
288
|
+
}
|
289
|
+
return $scope.oryxDockerPlugin;
|
290
|
+
}
|
291
|
+
}
|
292
|
+
};
|
293
|
+
|
294
|
+
/** Custom controller for the save dialog */
|
295
|
+
var SaveModelCtrl = [ '$rootScope', '$scope', '$http', '$route', '$location',
|
296
|
+
function ($rootScope, $scope, $http, $route, $location) {
|
297
|
+
|
298
|
+
var modelMetaData = $scope.editor.getModelMetaData();
|
299
|
+
|
300
|
+
var description = '';
|
301
|
+
if (modelMetaData.description) {
|
302
|
+
description = modelMetaData.description;
|
303
|
+
}
|
304
|
+
|
305
|
+
var saveDialog = { 'name' : modelMetaData.name,
|
306
|
+
'description' : description};
|
307
|
+
|
308
|
+
$scope.saveDialog = saveDialog;
|
309
|
+
|
310
|
+
var json = $scope.editor.getJSON();
|
311
|
+
json = JSON.stringify(json);
|
312
|
+
|
313
|
+
var params = {
|
314
|
+
modeltype: modelMetaData.model.modelType,
|
315
|
+
json_xml: json,
|
316
|
+
name: 'model'
|
317
|
+
};
|
318
|
+
|
319
|
+
$scope.status = {
|
320
|
+
loading: false
|
321
|
+
};
|
322
|
+
|
323
|
+
$scope.close = function () {
|
324
|
+
$scope.$hide();
|
325
|
+
};
|
326
|
+
|
327
|
+
$scope.saveAndClose = function () {
|
328
|
+
$scope.save(function() {
|
329
|
+
window.location.href = "./";
|
330
|
+
});
|
331
|
+
};
|
332
|
+
$scope.save = function (successCallback) {
|
333
|
+
|
334
|
+
if (!$scope.saveDialog.name || $scope.saveDialog.name.length == 0) {
|
335
|
+
return;
|
336
|
+
}
|
337
|
+
|
338
|
+
// Indicator spinner image
|
339
|
+
$scope.status = {
|
340
|
+
loading: true
|
341
|
+
};
|
342
|
+
|
343
|
+
modelMetaData.name = $scope.saveDialog.name;
|
344
|
+
modelMetaData.description = $scope.saveDialog.description;
|
345
|
+
|
346
|
+
var json = $scope.editor.getJSON();
|
347
|
+
json = JSON.stringify(json);
|
348
|
+
|
349
|
+
var selection = $scope.editor.getSelection();
|
350
|
+
$scope.editor.setSelection([]);
|
351
|
+
|
352
|
+
// Get the serialized svg image source
|
353
|
+
var svgClone = $scope.editor.getCanvas().getSVGRepresentation(true);
|
354
|
+
$scope.editor.setSelection(selection);
|
355
|
+
if ($scope.editor.getCanvas().properties["oryx-showstripableelements"] === false) {
|
356
|
+
var stripOutArray = jQuery(svgClone).find(".stripable-element");
|
357
|
+
for (var i = stripOutArray.length - 1; i >= 0; i--) {
|
358
|
+
stripOutArray[i].remove();
|
359
|
+
}
|
360
|
+
}
|
361
|
+
|
362
|
+
// Remove all forced stripable elements
|
363
|
+
var stripOutArray = jQuery(svgClone).find(".stripable-element-force");
|
364
|
+
for (var i = stripOutArray.length - 1; i >= 0; i--) {
|
365
|
+
stripOutArray[i].remove();
|
366
|
+
}
|
367
|
+
|
368
|
+
// Parse dom to string
|
369
|
+
var svgDOM = DataManager.serialize(svgClone);
|
370
|
+
|
371
|
+
var params = {
|
372
|
+
json_xml: json,
|
373
|
+
svg_xml: svgDOM,
|
374
|
+
name: $scope.saveDialog.name,
|
375
|
+
description: $scope.saveDialog.description
|
376
|
+
};
|
377
|
+
|
378
|
+
// Update
|
379
|
+
$http({ method: 'PUT',
|
380
|
+
data: params,
|
381
|
+
ignoreErrors: true,
|
382
|
+
headers: {'Accept': 'application/json',
|
383
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'},
|
384
|
+
transformRequest: function (obj) {
|
385
|
+
var str = [];
|
386
|
+
for (var p in obj) {
|
387
|
+
str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
|
388
|
+
}
|
389
|
+
return str.join("&");
|
390
|
+
},
|
391
|
+
url: KISBPM.URL.putModel(modelMetaData.modelId)})
|
392
|
+
|
393
|
+
.success(function (data, status, headers, config) {
|
394
|
+
$scope.editor.handleEvents({
|
395
|
+
type: ORYX.CONFIG.EVENT_SAVED
|
396
|
+
});
|
397
|
+
$scope.modelData.name = $scope.saveDialog.name;
|
398
|
+
$scope.modelData.lastUpdated = data.lastUpdated;
|
399
|
+
|
400
|
+
$scope.status.loading = false;
|
401
|
+
$scope.$hide();
|
402
|
+
|
403
|
+
// Fire event to all who is listening
|
404
|
+
var saveEvent = {
|
405
|
+
type: KISBPM.eventBus.EVENT_TYPE_MODEL_SAVED,
|
406
|
+
model: params,
|
407
|
+
modelId: modelMetaData.modelId,
|
408
|
+
eventType: 'update-model'
|
409
|
+
};
|
410
|
+
KISBPM.eventBus.dispatch(KISBPM.eventBus.EVENT_TYPE_MODEL_SAVED, saveEvent);
|
411
|
+
|
412
|
+
// Reset state
|
413
|
+
$scope.error = undefined;
|
414
|
+
$scope.status.loading = false;
|
415
|
+
|
416
|
+
// Execute any callback
|
417
|
+
if (successCallback) {
|
418
|
+
successCallback();
|
419
|
+
}
|
420
|
+
|
421
|
+
})
|
422
|
+
.error(function (data, status, headers, config) {
|
423
|
+
$scope.error = {};
|
424
|
+
console.log('Something went wrong when updating the process model:' + JSON.stringify(data));
|
425
|
+
$scope.status.loading = false;
|
426
|
+
});
|
427
|
+
};
|
428
|
+
|
429
|
+
}];
|
@@ -0,0 +1,175 @@
|
|
1
|
+
/*
|
2
|
+
* Activiti Modeler component part of the Activiti project
|
3
|
+
* Copyright 2005-2014 Alfresco Software, Ltd. All rights reserved.
|
4
|
+
*
|
5
|
+
* This library is free software; you can redistribute it and/or
|
6
|
+
* modify it under the terms of the GNU Lesser General Public
|
7
|
+
* License as published by the Free Software Foundation; either
|
8
|
+
* version 2.1 of the License, or (at your option) any later version.
|
9
|
+
*
|
10
|
+
* This library is distributed in the hope that it will be useful,
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
+
* Lesser General Public License for more details.
|
14
|
+
|
15
|
+
* You should have received a copy of the GNU Lesser General Public
|
16
|
+
* License along with this library; if not, write to the Free Software
|
17
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
|
+
*/
|
19
|
+
'use strict';
|
20
|
+
|
21
|
+
var KISBPM = KISBPM || {};
|
22
|
+
KISBPM.TOOLBAR_CONFIG = {
|
23
|
+
"items" : [
|
24
|
+
{
|
25
|
+
"type" : "button",
|
26
|
+
"title" : "TOOLBAR.ACTION.SAVE",
|
27
|
+
"cssClass" : "editor-icon editor-icon-save",
|
28
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.saveModel"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"type" : "separator",
|
32
|
+
"title" : "",
|
33
|
+
"cssClass" : "toolbar-separator"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"type" : "button",
|
37
|
+
"title" : "TOOLBAR.ACTION.CUT",
|
38
|
+
"cssClass" : "editor-icon editor-icon-cut",
|
39
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.cut",
|
40
|
+
"enabled" : false,
|
41
|
+
"enabledAction" : "element"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"type" : "button",
|
45
|
+
"title" : "TOOLBAR.ACTION.COPY",
|
46
|
+
"cssClass" : "editor-icon editor-icon-copy",
|
47
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.copy",
|
48
|
+
"enabled" : false,
|
49
|
+
"enabledAction" : "element"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"type" : "button",
|
53
|
+
"title" : "TOOLBAR.ACTION.PASTE",
|
54
|
+
"cssClass" : "editor-icon editor-icon-paste",
|
55
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.paste",
|
56
|
+
"enabled" : false
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"type" : "button",
|
60
|
+
"title" : "TOOLBAR.ACTION.DELETE",
|
61
|
+
"cssClass" : "editor-icon editor-icon-delete",
|
62
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.deleteItem",
|
63
|
+
"enabled" : false,
|
64
|
+
"enabledAction" : "element"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"type" : "separator",
|
68
|
+
"title" : "TOOLBAR.ACTION.SAVE",
|
69
|
+
"cssClass" : "toolbar-separator"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"type" : "button",
|
73
|
+
"title" : "TOOLBAR.ACTION.REDO",
|
74
|
+
"cssClass" : "editor-icon editor-icon-redo",
|
75
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.redo",
|
76
|
+
"enabled" : false
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"type" : "button",
|
80
|
+
"title" : "TOOLBAR.ACTION.UNDO",
|
81
|
+
"cssClass" : "editor-icon editor-icon-undo",
|
82
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.undo",
|
83
|
+
"enabled" : false
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"type" : "separator",
|
87
|
+
"title" : "TOOLBAR.ACTION.SAVE",
|
88
|
+
"cssClass" : "toolbar-separator"
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"type" : "button",
|
92
|
+
"title" : "TOOLBAR.ACTION.ALIGNVERTICAL",
|
93
|
+
"cssClass" : "editor-icon editor-icon-align-vertical",
|
94
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.alignVertical",
|
95
|
+
"enabled" : false,
|
96
|
+
"enabledAction" : "element",
|
97
|
+
"minSelectionCount" : 2
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"type" : "button",
|
101
|
+
"title" : "TOOLBAR.ACTION.ALIGNHORIZONTAL",
|
102
|
+
"cssClass" : "editor-icon editor-icon-align-horizontal",
|
103
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.alignHorizontal",
|
104
|
+
"enabledAction" : "element",
|
105
|
+
"enabled" : false,
|
106
|
+
"minSelectionCount" : 2
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"type" : "button",
|
110
|
+
"title" : "TOOLBAR.ACTION.SAMESIZE",
|
111
|
+
"cssClass" : "editor-icon editor-icon-same-size",
|
112
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.sameSize",
|
113
|
+
"enabledAction" : "element",
|
114
|
+
"enabled" : false,
|
115
|
+
"minSelectionCount" : 2
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"type" : "separator",
|
119
|
+
"title" : "TOOLBAR.ACTION.SAVE",
|
120
|
+
"cssClass" : "toolbar-separator"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"type" : "button",
|
124
|
+
"title" : "TOOLBAR.ACTION.ZOOMIN",
|
125
|
+
"cssClass" : "editor-icon editor-icon-zoom-in",
|
126
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.zoomIn"
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"type" : "button",
|
130
|
+
"title" : "TOOLBAR.ACTION.ZOOMOUT",
|
131
|
+
"cssClass" : "editor-icon editor-icon-zoom-out",
|
132
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.zoomOut"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"type" : "button",
|
136
|
+
"title" : "TOOLBAR.ACTION.ZOOMACTUAL",
|
137
|
+
"cssClass" : "editor-icon editor-icon-zoom-actual",
|
138
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.zoomActual"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"type" : "button",
|
142
|
+
"title" : "TOOLBAR.ACTION.ZOOMFIT",
|
143
|
+
"cssClass" : "editor-icon editor-icon-zoom-fit",
|
144
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.zoomFit"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"type" : "separator",
|
148
|
+
"title" : "TOOLBAR.ACTION.SAVE",
|
149
|
+
"cssClass" : "toolbar-separator"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"type" : "button",
|
153
|
+
"title" : "TOOLBAR.ACTION.BENDPOINT.ADD",
|
154
|
+
"cssClass" : "editor-icon editor-icon-bendpoint-add",
|
155
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.addBendPoint",
|
156
|
+
"id" : "add-bendpoint-button"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"type" : "button",
|
160
|
+
"title" : "TOOLBAR.ACTION.BENDPOINT.REMOVE",
|
161
|
+
"cssClass" : "editor-icon editor-icon-bendpoint-remove",
|
162
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.removeBendPoint",
|
163
|
+
"id" : "remove-bendpoint-button"
|
164
|
+
}
|
165
|
+
],
|
166
|
+
|
167
|
+
"secondaryItems" : [
|
168
|
+
{
|
169
|
+
"type" : "button",
|
170
|
+
"title" : "Close",
|
171
|
+
"cssClass" : "editor-icon editor-icon-close",
|
172
|
+
"action" : "KISBPM.TOOLBAR.ACTIONS.closeEditor"
|
173
|
+
}
|
174
|
+
]
|
175
|
+
};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
/*
|
2
|
+
* Activiti Modeler component part of the Activiti project
|
3
|
+
* Copyright 2005-2014 Alfresco Software, Ltd. All rights reserved.
|
4
|
+
*
|
5
|
+
* This library is free software; you can redistribute it and/or
|
6
|
+
* modify it under the terms of the GNU Lesser General Public
|
7
|
+
* License as published by the Free Software Foundation; either
|
8
|
+
* version 2.1 of the License, or (at your option) any later version.
|
9
|
+
*
|
10
|
+
* This library is distributed in the hope that it will be useful,
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
+
* Lesser General Public License for more details.
|
14
|
+
|
15
|
+
* You should have received a copy of the GNU Lesser General Public
|
16
|
+
* License along with this library; if not, write to the Free Software
|
17
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
|
+
*/
|
19
|
+
var KISBPM = KISBPM || {};
|
20
|
+
|
21
|
+
KISBPM.URL = {
|
22
|
+
|
23
|
+
getModel: function(modelId) {
|
24
|
+
return ACTIVITI.CONFIG.contextRoot + '/model/' + modelId + '/json';
|
25
|
+
},
|
26
|
+
|
27
|
+
getStencilSet: function() {
|
28
|
+
return ACTIVITI.CONFIG.contextRoot + '/editor/stencilset?version=' + Date.now();
|
29
|
+
},
|
30
|
+
|
31
|
+
putModel: function(modelId) {
|
32
|
+
return ACTIVITI.CONFIG.contextRoot + '/model/' + modelId + '/save';
|
33
|
+
}
|
34
|
+
};
|