diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/.github/workflows/PR.yml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/.github/workflows/PR.yml new file mode 100644 index 0000000000000000000000000000000000000000..ad524a50829f0c923b02ed1213e3b7cb9f4e0efc --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/.github/workflows/PR.yml @@ -0,0 +1,15 @@ +name: PR +on: + pull_request: + types: [opened, edited, reopened, synchronize] + +permissions: + contents: read + pull-requests: read + +jobs: + Validate: + runs-on: ubuntu-latest + steps: + - name: Check PR quality + uses: bpmn-io/actions/pull-request-quality@dadd26245e7ccf2399bafb558cf2ca29c8b44f9e diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/.github/workflows/bump-versions.yml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/.github/workflows/bump-versions.yml new file mode 100644 index 0000000000000000000000000000000000000000..10620786969101a5526bcc7751a089ef800e3a51 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/.github/workflows/bump-versions.yml @@ -0,0 +1,28 @@ +name: Bump all versions in all examples +on: workflow_dispatch + +jobs: + bump-versions: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Set up Java environment + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + - name: Run Maven with bump-versions profile + run: mvn clean package --batch-mode -Pbump-versions + - name: Create pull request + uses: peter-evans/create-pull-request@v7 + with: + commit-message: 'chore(pom): Bump all versions in all examples' + branch: bump-versions + delete-branch: true + title: 'Bump all dependency and Camunda versions' + body: 'Created by Github action' + base: master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/.github/workflows/main.yml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/.github/workflows/main.yml new file mode 100644 index 0000000000000000000000000000000000000000..27e4cb33833f49a78820a9842b9b68278f3a0cea --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: Bump versions +on: + workflow_dispatch: + inputs: + oldVersion: + description: 'Old Version (search)' + required: true + default: '7.X.0' + newVersion: + description: 'New Version (replace)' + required: true + default: '7.X.0' + +jobs: + bump-versions: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Bump versions + uses: camunda/bump-versions-action@v1.7 + with: + files: "*/**/package.json,*/**/pom.xml,*/**/README.md" + sliceVersion: -2 + oldVersion: ${{ github.event.inputs.oldVersion }} + newVersion: ${{ github.event.inputs.newVersion }} + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/.gitignore b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..4f9e7e34b81933a29aae01fdfb0f709354612f3d --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/.gitignore @@ -0,0 +1,21 @@ +.idea +target +.classpath +.project +.settings +build.properties +bin +.metadata +transaction.log +nbactions*.xml +nb-configuration.xml +/webapps/fox-platform-tasklist/server-work +dependency-reduced-pom.xml +faces-config.NavData +dependency-reduced-pom.xml +*.iml +*.sublime-project +*.sublime-workspace +camunda-h2-default/ +camunda-h2-dbs/ + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/LICENSE b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..f433b1a53f5b830a205fd2df78e2b34974656c7b --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/LICENSE @@ -0,0 +1,177 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/NOTICE b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/NOTICE new file mode 100644 index 0000000000000000000000000000000000000000..3d9a2a0fec49420d9e3a5bd0d21bf924866e2fa9 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/NOTICE @@ -0,0 +1,2 @@ +Camunda +Copyright 2013-2025 Camunda Services GmbH diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..59de5e085672713fcced2676109cfb6d3d346123 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/README.md @@ -0,0 +1,263 @@ +Camunda Platform examples +==================== + +> Looking for the "invoice" example contained in the distribution? You can find it here: https://github.com/camunda/camunda-bpm-platform/tree/master/examples/invoice + +Camunda Platform examples is a collection of focused usage examples for the [Camunda Platform](https://github.com/camunda/camunda-bpm-platform), intended to get you started quickly. The sources on the master branch work with the current Camunda release. Follow the links below to browse the examples for the Camunda version you use: + +| Camunda Version | Link | Checkout command | +|-----------------|-----------------------------------------------------------------------|-----------------------| +| Latest | [Master branch](https://github.com/camunda/camunda-bpm-examples) | `git checkout master` | +| 7.24 | [7.24 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.24) | `git checkout 7.24` | +| 7.23 | [7.23 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.23) | `git checkout 7.23` | +| 7.22 | [7.22 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.22) | `git checkout 7.22` | +| 7.21 | [7.21 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.21) | `git checkout 7.21` | +| 7.20 | [7.20 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.20) | `git checkout 7.20` | +| 7.19 | [7.19 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.19) | `git checkout 7.19` | +| 7.18 | [7.18 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.18) | `git checkout 7.18` | +| 7.17 | [7.17 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.17) | `git checkout 7.17` | +| 7.16 | [7.16 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.16) | `git checkout 7.16` | +| 7.15 | [7.15 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.15) | `git checkout 7.15` | +| 7.14 | [7.14 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.14) | `git checkout 7.14` | +| 7.13 | [7.13 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.13) | `git checkout 7.13` | +| 7.12 | [7.12 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.12) | `git checkout 7.12` | +| 7.11 | [7.11 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.11) | `git checkout 7.11` | +| 7.10 | [7.10 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.10) | `git checkout 7.10` | +| 7.9 | [7.9 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.9) | `git checkout 7.9` | +| 7.8 | [7.8 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.8) | `git checkout 7.8` | +| 7.7 | [7.7 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.7) | `git checkout 7.7` | +| 7.6 | [7.6 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.6) | `git checkout 7.6` | +| 7.5 | [7.5 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.5) | `git checkout 7.5` | +| 7.4 | [7.4 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.4) | `git checkout 7.4` | +| 7.3 | [7.3 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.3) | `git checkout 7.3` | +| 7.2 | [7.2 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.2) | `git checkout 7.2` | +| 7.1 | [7.1 tag](https://github.com/camunda/camunda-bpm-examples/tree/7.1) | `git checkout 7.1` | + +If you clone this repository, use the checkout commands to access the sources for the desired version. + +## Overview + +* [Getting Started with Camunda Platform](#getting-started-with-camunda-platform) +* [BPMN 2.0 & Process Implementation](#bpmn-20--process-implementation-examples) +* [Deployment & Project Setup](#deployment--project-setup-examples) +* [Process Engine Plugin](#process-engine-plugin-examples) +* [Bpmn 2.0 Model API](#bpmn-20-model-api-examples) +* [Cmmn 1.1 Model API Examples](#cmmn-11-model-api-examples) +* [Cockpit](#cockpit-examples) +* [Tasklist](#tasklist-examples) +* [Multi-Tenancy](#multi-tenancy-examples) +* [Spin](#spin-examples) +* [DMN](#dmn-examples) +* [Process Instance Migration](#process-instance-migration-examples) +* [SDK-JS Examples](#sdk-js-examples) +* [Authentication](#authentication) +* [Spring Boot Starter examples](#spring-boot-starter-examples) +* [Quarkus Extension Examples](#quarkus-extension-examples) +* [External Task Client](#external-task-client) +* [External Task Client Spring](#external-task-client-spring) +* [External Task Client Spring Boot](#external-task-client-spring-boot) +* [Testing](#testing) + +### Getting Started with Camunda Platform + +| Name | Container | +|------------------------------------------------------------------------------------------------|--------------------| +| [Simple Process Applications](https://docs.camunda.org/get-started/bpmn20/) | All | +| [Camunda Platform and the Spring Framework](https://docs.camunda.org/get-started/spring/) [^1] | Tomcat | +| [Process Applications with JavaEE 6](https://docs.camunda.org/get-started/javaee6/) [^1] | JavaEE Containers | + +### BPMN 2.0 & Process Implementation Examples + +| Name | Container | Keywords | +|------------------------------------------------------------------------------------------------------------------|-------------------|---------------------------| +| [Service Task REST HTTP](/servicetask/rest-service) | Unit Test | Rest Scripting, classless | +| [Service Task SOAP HTTP](/servicetask/soap-service) [^1] | Unit Test | SOAP Scripting, classless | +| [Service Task SOAP CXF HTTP](/servicetask/soap-cxf-service) [^1] | Unit Test | SOAP, CXF, Spring, Spin | +| [Service Invocation Synchronous](/servicetask/service-invocation-synchronous) | Unit Test | Java Delegate, Sync | +| [Service Invocation Asynchronous](/servicetask/service-invocation-asynchronous) | Unit Test | Signal, Async | +| [User Task Assignment Email](/usertask/task-assignment-email) [^1][^2] | All | Email, Usertask | +| [User Task Form Embedded](/usertask/task-form-embedded) [^2] | All | Html, Form, Usertask | +| [User Task Form Embedded - Serialized Java Object](/usertask/task-form-embedded-serialized-java-object) [^1][^2] | All | Html, Form, Usertask | +| [User Task Form Embedded - JSON](/usertask/task-form-embedded-json-variables) [^2] | All | Html, Form, Usertask | +| [User Task Form Embedded - Bpmn Elements](/usertask/task-form-embedded-bpmn-events) [^2] | All | Html, Form, Usertask | +| [User Task Form Embedded - React](/usertask/task-form-embedded-react) [^2] | All | Html, Form, Usertask | +| [User Task Form - Camunda Forms](/usertask/task-camunda-forms) [^2] | All | Html, Form, Usertask | +| [User Task Form Generated](/usertask/task-form-generated) [^1][^2] | All | Html, Form, Usertask | +| [User Task Form JSF](/usertask/task-form-external-jsf) [^1][^2] | JavaEE Containers | JSF, Form, Usertask | +| [Script Task XSLT](/scripttask/xslt-scripttask) | Unit Test | XSLT Scripttask | +| [Script Task XQuery](/scripttask/xquery-scripttask) [^1] | Unit Test | XQuery Scripttask | +| [Start Event - Message](/startevent/message-start) | Unit Test | Message Start Event | +| [Start Process - SOAP CXF](/startevent/soap-cxf-server-start) [^1] | War | SOAP, CXF, Spring | + +### Deployment & Project Setup Examples + +| Name | Container | Keywords | +|-------------------------------------------------------------------------------------------------|--------------------------|---------------------------| +| [Process Application - Servlet](deployment/servlet-pa) | Jakarta EE Containers | War, Servlet | +| [Process Application - EJB](deployment/ejb-pa) [^1] | JavaEE Containers | Ejb, War | +| [Process Application - Jakarta EJB](deployment/ejb-pa-jakarta) | Jakarta EE Containers | Ejb, War | +| [Process Application - Spring 6 Servlet - WildFly](deployment/spring-servlet-pa-wildfly) | WildFly | Spring, Servlet, War | +| [Process Application - Spring 6 Servlet - Embedded Tomcat](deployment/spring-servlet-pa-tomcat) | Tomcat 10 | Spring, Servlet, War | +| [Embedded Spring 6 with embedded REST](deployment/embedded-spring-rest) | vanilla Apache Tomcat 10 | Spring, Rest, Embedded | +| [Plain Spring 6 Web application - WildFly](deployment/spring-wildfly-non-pa) | WildFly | Spring, Jndi, War | +| [Process Application - Spring Boot](deployment/spring-boot) [^1] | Spring Boot | Spring | + +### Process Engine Plugin Examples + +| Name | Container | Keywords | +|-------------------------------------------------------------------------------------------------|----------------------|---------------------------------------------| +| [BPMN Parse Listener](process-engine-plugin/bpmn-parse-listener) | Unit Test | Process Engine Plugin, Bpmn Parse Listener | +| [BPMN Parse Listener on User Task](process-engine-plugin/bpmn-parse-listener-on-user-task) [^1] | Unit Test | Process Engine Plugin, Bpmn Parse Listener | +| [Command Interceptor - Blocking](process-engine-plugin/command-interceptor-blocking) | Unit Test | Maintenance, Interceptor, Configuration | +| [Custom History Level](process-engine-plugin/custom-history-level) | Unit Test | Process Engine Plugin, Custom History Level | +| [Failed Job Retry Profile](process-engine-plugin/failed-job-retry-profile) | Unit Test | Process Engine Plugin, Failed Job Retry | + +### Bpmn 2.0 Model API Examples + +| Name | Container | Keywords | +|----------------------------------------------------------------------|----------------------|---------------------------| +| [Generate JSF forms](/bpmn-model-api/generate-jsf-form) [^1] | JavaEE Containers | JSF, Usertask | +| [Generate BPMN process](/bpmn-model-api/generate-process-fluent-api) | Unit Test | Fluent API | +| [Parse BPMN model](/bpmn-model-api/parse-bpmn) | Unit Test | BPMN | + +### Cmmn 1.1 Model API Examples + +| Name | Container | Keywords | +|--------------------------------------------------------------------------------------------------|----------------------|---------------------------| +| [Strongly-typed Access to Custom Extension Elements](/cmmn-model-api/typed-custom-elements) [^1] | Unit Test | CMMN, TransformListener | + +### Cockpit Examples + +| Name | Keywords | +|----------------------------------------------------------------------------------------------------------------|-------------------------------------------| +| [Fullstack (ReactJS 16.x & Java) "Count Processes" Cockpit Plugin](/cockpit/cockpit-fullstack-count-processes) | Plugin, Custom Script, Fullstack, ReactJS | +| [Angular "Open Usertasks" Cockpit Tab](/cockpit/cockpit-angular-open-usertasks) [^1] | Plugin, Custom Script, Angular | +| [AngularJS 1.x "Search Processes" Cockpit Plugin](/cockpit/cockpit-angularjs-search-processes) [^1] | Plugin, Custom Script, AngularJS | +| [ReactJS "Involved Users" Cockpit Plugin](/cockpit/cockpit-react-involved-users) | Plugin, Custom Script, ReactJS | +| ["Cats" Cockpit Plugin](/cockpit/cockpit-cats) [^1] | Plugin, Custom Script | +| ["Diagram interactions" Cockpit Plugin](/cockpit/cockpit-diagram-interactions) | Plugin, Custom Script | +| ["Open Incidents" Cockpit Plugin](/cockpit/cockpit-open-incidents) [^1] | Plugin, Custom Script | +| ["Request Interceptor" Cockpit Script](/cockpit/cockpit-request-interceptor) [^1] | Plugin, Custom Script | +| [bpmn-js Cockpit module](/cockpit/cockpit-bpmn-js-module) [^1] | Plugin, Custom Script, bpmn-js | +| [bpmn-js Cockpit module - bundled](/cockpit/cockpit-bpmn-js-module-bundled) | Plugin, Custom Script, bpmn-js, rollup | + +### Tasklist Examples + +| Name | Keywords | +|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------| +| [Create Standalone Task - client side](https://github.com/camunda/camunda-bpm-platform/tree/master/webapps/frontend/ui/tasklist/plugins/standaloneTask/app) | Plugin | +| [Create Standalone Task - server side](https://github.com/camunda/camunda-bpm-platform/blob/master/webapps/assembly/src/main/java/org/camunda/bpm/tasklist/impl/plugin) | Plugin | +| [Javascript Only Plugin](/tasklist/cats-plugin) | Plugin, Custom Script | +| [JQuery 3.4 Behavior Patch](/tasklist/jquery-34-behavior) [^1] | Plugin, Custom Script | + + +### SDK-JS Examples + +| Name | Environment | Keywords | +|------------------------------------------------|-------------|-----------------------------| +| [SDK JS forms](/sdk-js/browser-forms) [^1][^2] | Browser | HTML, task, form, SDK | + +### Multi-Tenancy Examples + +| Name | Container | Keywords | +|----------------------------------------------------------------------------------------------------------------------------|-----------|---------------| +| [Multi-Tenancy with Database Schema Isolation](multi-tenancy/schema-isolation) | Wildfly | Multi-Tenancy | +| [Multi-Tenancy with Tenant Identifiers for Embedded Process Engine](multi-tenancy/tenant-identifier-embedded) | Unit Test | Multi-Tenancy | +| [Multi-Tenancy with Tenant Identifiers for Shared Process Engine](multi-tenancy/tenant-identifier-shared) | All | Multi-Tenancy | +| [Multi-Tenancy with Tenant Identifiers and Shared Process Definitions](multi-tenancy/tenant-identifier-shared-definitions) | Unit Test | Multi-Tenancy | + +### Spin Examples + +| Name | Container | Keywords | +|------------------------------------------------------------------------------------------------------------------------------------------------|--------------------|------------------------------------| +| [Global Data Format Configuration to Customize JSON serialization](spin/dataformat-configuration-global) | Unit Test | Spin, Configuration | +| [Process-Application-Specific Data Format Configuration to Customize JSON serialization](spin/dataformat-configuration-in-process-application) | Application Server | Spin, Configuration, Shared Engine | + +### DMN Examples + +| Name | Container | Keywords | +|---------------------------------------------------------------------------------------|-----------|-----------------| +| [Embed Decision Engine - Dish Decision Maker](dmn-engine/dmn-engine-java-main-method) | Jar | DMN, Embed | +| [Decision Requirements Graph(DRG) Example](dmn-engine/dmn-engine-drg) | Jar | DMN, DRG, Embed | + +### Process Instance Migration Examples + +| Name | Container | Keywords | +|-----------------------------------------------------------------------------------|---------------------------------------|-----------------| +| [Migration on Deployment of New Process Version](migration/migrate-on-deployment) | Application Server with Shared Engine | BPMN, Migration | + +### Authentication + +| Name | Container | Keywords | +|---------------------------------------------------|----------------------------------------------------------------------------|-------------------------| +| [Basic Authentication](authentication/basic) [^1] | Spring boot with embedded engine, REST API and Basic Authentication filter | Authentication | + +### Spring Boot Starter examples + +| Name | Container | Keywords | +|-------------------------------------------------------------------|--------------------------------------------------------|---------------------------------------| +| [Plain Camunda Engine](spring-boot-starter/example-simple) | Jar | Spring Boot Starter | +| [Webapps](spring-boot-starter/example-webapp) | Spring boot with embedded engine and Webapps | Spring Boot Starter, Webapps | +| [Webapps EE](spring-boot-starter/example-webapp-ee) | Spring boot with embedded engine and Webapps | Spring Boot Starter, Webapps | +| [REST API](spring-boot-starter/example-web) | Spring boot with embedded engine and Webapps | Spring Boot Starter, REST API | +| [Twitter](spring-boot-starter/example-twitter) | Spring boot with embedded engine and Webapps | Spring Boot Starter, Webapps, Twitter | +| [Camunda Invoice Example](spring-boot-starter/example-invoice) | Spring boot with embedded engine, Webapps and Rest API | Spring Boot Starter, REST API | +| [Autodeployment](spring-boot-starter/example-autodeployment) [^1] | Spring boot with embedded engine and Webapps | Spring Boot Starter | +| [REST API DMN](spring-boot-starter/example-dmn-rest) [^1] | Spring boot with embedded engine and Webapps | Spring Boot Starter, REST API | + +### Quarkus Extension Examples + +| Name | Container | Keywords | +|-------------------------------------------------------------------|----------------------------------------------------------------------------|-------------------------| +| [Datasource Example](quarkus-extension/datasource-example) | Uber-Jar | Quarkus Extension | +| [Spin Plugin Example](quarkus-extension/spin-plugin-example) | Uber-Jar | Quarkus Extension | +| [Simple REST Example](quarkus-extension/simple-rest-example) [^1] | Uber-Jar | Quarkus Extension | + +### External Task Client + +| Name | Environment | Keywords | +|------------------------------------------------------------------------------------------------------------------------------|-------------------------------------|-----------------------------------| +| [Order Handling - Java](./clients/java/order-handling) | Java External Task Client | External Task Client, Servicetask | +| [Loan Granting - Java](./clients/java/loan-granting) [^1] | Java External Task Client | External Task Client, Servicetask | +| [Dataformat - Java](./clients/java/dataformat) [^1] | Java External Task Client | External Task Client, Servicetask | +| [Loan Granting - JavaScript](https://github.com/camunda/camunda-external-task-client-js/tree/master/examples/granting-loans) | JavaScript External Task Client | External Task Client, Servicetask | +| [Order Handling - JavaScript](https://github.com/camunda/camunda-external-task-client-js/tree/master/examples/order) | JavaScript External Task Client | External Task Client, Servicetask | + +### External Task Client Spring + +| Name | Keywords | +|------------------------------------------------------------------------------------------------|-----------------------------------| +| [Loan Granting Example](./spring-boot-starter/external-task-client/loan-granting-spring) [^1] | External Task Client, Servicetask | + +### External Task Client Spring Boot + +| Name | Container | Keywords | +|---------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------|--------------------------------------------------------| +| [Loan Granting w/ REST API & Webapp Example](./spring-boot-starter/external-task-client/loan-granting-spring-boot-webapp) | Spring Boot with embedded Client, REST API & Webapp | External Task Client, Servicetask, Spring Boot Starter | +| [Order Handling Example](./spring-boot-starter/external-task-client/order-handling-spring-boot) [^1] | Spring Boot with embedded Client | External Task Client, Servicetask, Spring Boot Starter | +| [Request Interceptor Example](./spring-boot-starter/external-task-client/request-interceptor-spring-boot) [^1] | Spring Boot with embedded Client | External Task Client, Servicetask, Spring Boot Starter | + +### Container Specifics + +| Name | Container | Keywords | +|-----------------------------------------------------------------------|-----------|--------------| +| [Jackson Annotation Example for WildFly](wildfly/jackson-annotations) | Wildfly | War, Servlet | + +### Testing + +| Name | Keywords | +|------------------------------------------------------------------------------------------------------|--------------------------| +| [Assert](testing/assert/job-announcement-publication-process) | Testing, Junit 4, Assert | +| [Assert and JUnit 5](testing/junit5/camunda-bpm-junit-assert/) | Testing, Junit 5, Assert | +| [Assert and Junit 5: configure a custom process engine](testing/junit5/camunda-bpm-junit-use-engine) | Testing, Junit 5, Assert | + +## Contributing + +Have a look at our [contribution guide](https://github.com/camunda/camunda-bpm-platform/blob/master/CONTRIBUTING.md) for how to contribute to this repository. + +## License +The source files in this repository are made available under the [Apache License Version 2.0](./LICENSE). + +[^1]: _This example is not actively maintained anymore._ + +[^2]: _Complete demo applications_ diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/authentication/basic/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/authentication/basic/README.md new file mode 100644 index 0000000000000000000000000000000000000000..15e1800b50de6ef0108a7780f3753950c194b394 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/authentication/basic/README.md @@ -0,0 +1,6 @@ +Basic authentication against embedded engine example +====================================================== + +This example is not actively maintained anymore. You can refer to the [example with fixed version of Camunda 7.18](https://github.com/camunda/camunda-bpm-examples/blob/7.18/authentication/basic). +Due to Camunda Platform 7 backward compatibility, the examples usually still work with later versions. However, you +might need to adjust them to make them work. diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-jsf-form/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-jsf-form/README.md new file mode 100644 index 0000000000000000000000000000000000000000..bfc274815fefcddb4a11e6bf068ccd1acc7f68d9 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-jsf-form/README.md @@ -0,0 +1,5 @@ +# Generate JSF forms with the BPMN model API + +This example is not actively maintained anymore. You can refer to the [example with fixed version of Camunda 7.18](https://github.com/camunda/camunda-bpm-examples/blob/7.18/bpmn-model-api/generate-jsf-form). +Due to Camunda Platform 7 backward compatibility, the examples usually still work with later versions. However, you +might need to adjust them to make them work. \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/README.md new file mode 100644 index 0000000000000000000000000000000000000000..3fefa214b4c910691fc664f742ea9714634678f7 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/README.md @@ -0,0 +1,183 @@ +# Create process with fluent BPMN model API + +This quickstart demonstrates how to create a process with the BPMN model API. We +will even learn how to create complex BPMN processes with the fluent builder API of the +BPMN model API. + +After this quickstart, you will be able to create processes with the +BPMN model API, composed of the following elements: + +* Start event +* End event +* Parallel gateway +* Exclusive gateway +* Service task +* User task +* Script task + +## Invoice example process + +The process we want to create is similar to the invoice process from the [camunda-bpm-platform/examples][1]. +We aim to file it again with the executable process definition of the depicted invoice process. + +![Invoice Process][3] + +## Create the process with the BPMN model API + +Have a look at the JUnit test [CreateInvoiceProcessTest][4] for an example on how to create a BPMN process by using the BPMN model API. + +The entry point for the fluent builder API is the `Bpmn.createProcess()` method. To finish the +building process we can call the `.done()` method at any time, which will return the +created model instance containing the process. + +```java +BpmnModelInstance modelInstance = Bpmn.createProcess() + .[...] + .done(); +``` + +After calling `Bpmn.createProcess()`, we can set attributes for the process. For example, we can set the name. + +```java +BpmnModelInstance modelInstance = Bpmn.createExecutableProcess("invoice") + .name("BPMN API Invoice Process") + .[...] + .done(); +``` + +The next step is to create a start event and set its attributes. In this example we set +a name. + +```java +BpmnModelInstance modelInstance = Bpmn.createExecutableProcess() + .name("BPMN API Invoice Process") + .startEvent() + .name("Invoice received") + .[...] + .done(); +``` + +From now on we can create user, service or script tasks and parallel or exclusive gateways to +model the process we want to create. For every task we can set attributes like the `id`, `name`, `camunda:formKey`, +`camunda:assignee`, `camunda:class`, `camunda:candidateUsers` or `camunda:candidateGroups`. + +```java +BpmnModelInstance modelInstance = Bpmn.createExecutableProcess() + .name("BPMN API Invoice Process") + .[...] + .userTask() + .name("Assign Approver") + .camundaAssignee("demo") + .userTask() + .id("approveInvoice") + .name("Approve Invoice") + .[...] + .userTask() + .name("Prepare Bank Transfer") + .camundaCandidateGroups("accounting") + .serviceTask() + .name("Archive Invoice") + .camundaClass("org.camunda.bpm.example.invoice.service.ArchiveInvoiceService") + .[...] + .done(); +``` + +Gateways are also flow nodes which we can add after every task. We can set the +gateway direction and conditions for outgoing sequence flows on exclusive gateways. + +```java +BpmnModelInstance modelInstance = Bpmn.createExecutableProcess() + .name("BPMN API Invoice Process") + .[...] + .userTask() + .id("approveInvoice") + .name("Approve Invoice") + .exclusiveGateway() + .name("Invoice approved?") + .gatewayDirection(GatewayDirection.Diverging) + .condition("yes", "${approved}") + .userTask() + .name("Prepare Bank Transfer") + .camundaCandidateGroups("accounting") + .[...] + .done(); +``` + +If we add a gateway, we usually want to create parallel execution paths. To create this, +the pattern is the following: + +1. Create a gateway (optionally set an ID) +2. Create the first execution path till another gateway or end event +3. Jump back to a gateway to create a new execution path + 1. Jump back to the last unique gateway with the method `.moveToLastGateway()`, or + 2. Jump to a specific gateway by ID with the method `.moveToNode(gatewayId)` + +```java +BpmnModelInstance modelInstance = Bpmn.createExecutableProcess() + .name("BPMN API Invoice Process") + .[...] + .exclusiveGateway() + .name("Invoice approved?") + .gatewayDirection(GatewayDirection.Diverging) + .condition("yes", "${approved}") + .userTask() + .name("Prepare Bank Transfer") + .camundaCandidateGroups("accounting") + .serviceTask() + .name("Archive Invoice") + .camundaClass("org.camunda.bpm.example.invoice.service.ArchiveInvoiceService") + .endEvent() + .name("Invoice processed") + .moveToLastGateway() + .condition("no", "${!approved}") + .userTask() + .name("Review Invoice") + .camundaAssignee("demo") + .[...] + .done(); +``` + +When we create parallel and diverging execution paths it is a common use case to +connect an execution path to an existing element such as a parallel +gateway (join) or a previous element in the process (loop). You can achieve that with the +`.connectTo(id)` method. + +```java +BpmnModelInstance modelInstance = Bpmn.createExecutableProcess() + .name("BPMN API Invoice Process") + .[...] + .userTask() + .id("approveInvoice") + .name("Approve Invoice") + .camundaAssignee("${approver}") + .[...] + .exclusiveGateway() + .name("Review successful?") + .gatewayDirection(GatewayDirection.Diverging) + .condition("no", "${!clarified}") + .endEvent() + .name("Invoice not processed") + .moveToLastGateway() + .condition("yes", "${clarified}") + .connectTo("approveInvoice") + .done(); +``` + +## How to use it? + +1. Checkout the project with Git +2. Import the project into your IDE +3. Inspect the sources and run the unit test +4. Check if the JUnit test is green + +Note: Please note that since the process is generated by our code, no DI information is contained. If you want to see the +process model XML, go to the end of the JUnit test [CreateInvoiceProcessTest][4] and uncomment the following line of code. + +```java +Bpmn.writeModelToStream(System.out, modelInstance); +``` + +[1]: https://github.com/camunda/camunda-bpm-platform/tree/master/examples/invoice +[3]: invoice.png +[4]: src/test/java/org/camunda/bpm/quickstart/CreateInvoiceProcessTest.java +[5]: https://github.com/camunda/camunda-bpm-platform/tree/master/model-api/bpmn-model diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/invoice.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/invoice.png new file mode 100644 index 0000000000000000000000000000000000000000..0780a5d37da3d76e7db414d2c456885057245c8f --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/invoice.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07d50ee83efec39379912fa4c43ceb5b10e702083e79d226f05170dc3068201b +size 55260 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..3e7ed7a1243c28cd6e2977fefccfc4a424e9fad5 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/pom.xml @@ -0,0 +1,89 @@ + + 4.0.0 + org.camunda.bpm.quickstart + camunda-quickstart-create-invoice-process + war + Create Invoice Process + 1.0-SNAPSHOT + + + 7.24.0 + 4.13.2 + 2.3.232 + 1.7.36 + + + 17 + 3.13.0 + 3.4.0 + + UTF-8 + false + + + + + + + org.camunda.bpm + camunda-bom + ${version.camunda} + pom + import + + + + + + + + org.camunda.bpm + camunda-engine + provided + + + + org.camunda.bpm.model + camunda-bpmn-model + + + + junit + junit + ${version.junit} + test + + + + com.h2database + h2 + ${version.h2} + test + + + + + org.slf4j + slf4j-jdk14 + ${version.slf4j} + + + + + + + + maven-compiler-plugin + ${maven.compiler.plugin.version} + + + maven-war-plugin + ${maven.war.plugin.version} + + false + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/src/main/java/org/camunda/bpm/example/invoice/service/ArchiveInvoiceService.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/src/main/java/org/camunda/bpm/example/invoice/service/ArchiveInvoiceService.java new file mode 100644 index 0000000000000000000000000000000000000000..dcf143d0c46b39a70447d759a4235490f3180f64 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/src/main/java/org/camunda/bpm/example/invoice/service/ArchiveInvoiceService.java @@ -0,0 +1,41 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.invoice.service; + +import java.util.logging.Logger; + +import org.camunda.bpm.engine.delegate.DelegateExecution; +import org.camunda.bpm.engine.delegate.JavaDelegate; + +/** + *

This is an empty service implementation illustrating how to use a plain + * Java Class as a BPMN 2.0 Service Task delegate.

+ */ +public class ArchiveInvoiceService implements JavaDelegate { + + private final Logger LOGGER = Logger.getLogger(ArchiveInvoiceService.class.getName()); + + public static boolean wasExecuted=false; + + public void execute(DelegateExecution execution) throws Exception { + + wasExecuted = true; + LOGGER.info("\n\n ... Now archiving invoice \n\n"); + + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/src/test/java/org/camunda/bpm/quickstart/CreateInvoiceProcessTest.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/src/test/java/org/camunda/bpm/quickstart/CreateInvoiceProcessTest.java new file mode 100644 index 0000000000000000000000000000000000000000..58850c3765b40e0377cfc061d6cc67ffb295ef1f --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/src/test/java/org/camunda/bpm/quickstart/CreateInvoiceProcessTest.java @@ -0,0 +1,112 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.quickstart; + +import java.util.HashMap; +import java.util.Map; + +import org.camunda.bpm.engine.task.TaskQuery; +import org.camunda.bpm.engine.test.ProcessEngineRule; +import org.camunda.bpm.example.invoice.service.ArchiveInvoiceService; +import org.camunda.bpm.model.bpmn.Bpmn; +import org.camunda.bpm.model.bpmn.BpmnModelInstance; +import org.camunda.bpm.model.bpmn.GatewayDirection; +import org.junit.Rule; +import org.junit.Test; + +/** + * @author Sebastian Menski + */ +public class CreateInvoiceProcessTest { + + @Rule + public ProcessEngineRule processEngine = new ProcessEngineRule(); + + @Test + public void testCreateInvoiceProcess() throws Exception { + BpmnModelInstance modelInstance = Bpmn.createExecutableProcess("invoice") + .camundaHistoryTimeToLive(180) + .name("BPMN API Invoice Process") + .startEvent() + .name("Invoice received") + .userTask() + .name("Assign Approver") + .camundaAssignee("demo") + .userTask() + .id("approveInvoice") + .name("Approve Invoice") + .exclusiveGateway() + .name("Invoice approved?") + .gatewayDirection(GatewayDirection.Diverging) + .condition("yes", "${approved}") + .userTask() + .name("Prepare Bank Transfer") + .camundaFormKey("embedded:app:forms/prepare-bank-transfer.html") + .camundaCandidateGroups("accounting") + .serviceTask() + .name("Archive Invoice") + .camundaClass("org.camunda.bpm.example.invoice.service.ArchiveInvoiceService") + .endEvent() + .name("Invoice processed") + .moveToLastGateway() + .condition("no", "${!approved}") + .userTask() + .name("Review Invoice") + .camundaAssignee("demo") + .exclusiveGateway() + .name("Review successful?") + .gatewayDirection(GatewayDirection.Diverging) + .condition("no", "${!clarified}") + .endEvent() + .name("Invoice not processed") + .moveToLastGateway() + .condition("yes", "${clarified}") + .connectTo("approveInvoice") + .done(); + + // deploy process model + processEngine.getRepositoryService().createDeployment().addModelInstance("invoice.bpmn", modelInstance).deploy(); + + // start process model + processEngine.getRuntimeService().startProcessInstanceByKey("invoice"); + + TaskQuery taskQuery = processEngine.getTaskService().createTaskQuery(); + // check and complete task "Assign Approver" + org.junit.Assert.assertEquals(1, taskQuery.count()); + processEngine.getTaskService().complete(taskQuery.singleResult().getId()); + + // check and complete task "Approve Invoice" + Map variables = new HashMap<>(); + variables.put("approved", true); + + org.junit.Assert.assertEquals(1, taskQuery.count()); + processEngine.getTaskService().complete(taskQuery.singleResult().getId(), variables); + + // check and complete task "Prepare Bank Transfer" + org.junit.Assert.assertEquals(1, taskQuery.count()); + processEngine.getTaskService().complete(taskQuery.singleResult().getId()); + + // check if Delegate was executed + org.junit.Assert.assertEquals(true, ArchiveInvoiceService.wasExecuted); + + // check if process instance is ended + org.junit.Assert.assertEquals(0, processEngine.getRuntimeService().createProcessInstanceQuery().count()); + + // show the BPMN 2.0 process model XML on the console log +// Bpmn.writeModelToStream(System.out, modelInstance); + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/src/test/resources/camunda.cfg.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/src/test/resources/camunda.cfg.xml new file mode 100644 index 0000000000000000000000000000000000000000..b539ab38ac168ff7fe9b0f6da5df4e8345dbf8e6 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/generate-process-fluent-api/src/test/resources/camunda.cfg.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/parse-bpmn/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/parse-bpmn/README.md new file mode 100644 index 0000000000000000000000000000000000000000..57c1b1a97e49f1237f17502d11fbe8c02c6fdbcb --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/parse-bpmn/README.md @@ -0,0 +1,25 @@ +# BPMN parsing using the BPMN model API + +This example demonstrates how to use the [Camunda BPMN model API][bpmn-model] to parse +a BPMN process. It shows how simple you can access attributes, child elements and +extension elements. Also it illustrates how to use references between model elements +to traverse the model. + +Please have a look at the source code and comments of the [unit test case][test-case] to get +an impression about this feature of the [Camunda BPMN model API][bpmn-model]. + +Also be aware that you can use: +* [Camunda XML model API][xml-model] to process XML in a generic way +* [Camunda CMMN model API][cmmn-model] to handle CMMN models +* [Camunda DMN model API][dmn-model] to handle DMN models + +## How to use it? + +1. Checkout the project with Git +2. Read and run the [unit test case][test-case] + +[bpmn-model]: https://github.com/camunda/camunda-bpm-platform/tree/master/model-api/bpmn-model +[xml-model]: https://github.com/camunda/camunda-bpm-platform/tree/master/model-api/xml-model +[cmmn-model]: https://github.com/camunda/camunda-bpm-platform/tree/master/model-api/cmmn-model +[dmn-model]: https://github.com/camunda/camunda-bpm-platform/tree/master/model-api/dmn-model +[test-case]: src/test/java/org/camunda/bpm/example/modelapi/ParseBpmnTest.java \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/parse-bpmn/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/parse-bpmn/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..e77eb9380e62705b8f72502ab2cc631d1fca2b3d --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/parse-bpmn/pom.xml @@ -0,0 +1,63 @@ + + 4.0.0 + + org.camunda.bpm.example + camunda-example-parse-bpmn + 0.0.1-SNAPSHOT + jar + Parse BPMN by model API + + + 7.24.0 + 4.13.2 + 3.27.6 + + + 17 + 3.13.0 + + UTF-8 + + + + + org.camunda.bpm.model + camunda-bpmn-model + ${version.camunda} + + + + junit + junit + ${version.junit} + test + + + + org.assertj + assertj-core + ${version.assertj} + + + + + + + + maven-compiler-plugin + ${maven.compiler.plugin.version} + + + + + + + camunda-bpm-nexus + camunda-bpm-nexus + https://artifacts.camunda.com/artifactory/private/ + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/parse-bpmn/src/test/java/org/camunda/bpm/example/modelapi/ParseBpmnTest.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/parse-bpmn/src/test/java/org/camunda/bpm/example/modelapi/ParseBpmnTest.java new file mode 100644 index 0000000000000000000000000000000000000000..8a1e98299011bd52eccce12956800aea1e5d7249 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/parse-bpmn/src/test/java/org/camunda/bpm/example/modelapi/ParseBpmnTest.java @@ -0,0 +1,222 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.modelapi; + +import static org.assertj.core.api.Assertions.assertThat; + +import java.util.Collection; + +import org.camunda.bpm.model.bpmn.Bpmn; +import org.camunda.bpm.model.bpmn.BpmnModelInstance; +import org.camunda.bpm.model.bpmn.impl.BpmnModelConstants; +import org.camunda.bpm.model.bpmn.instance.ConditionExpression; +import org.camunda.bpm.model.bpmn.instance.EndEvent; +import org.camunda.bpm.model.bpmn.instance.Event; +import org.camunda.bpm.model.bpmn.instance.ExclusiveGateway; +import org.camunda.bpm.model.bpmn.instance.ExtensionElements; +import org.camunda.bpm.model.bpmn.instance.FlowNode; +import org.camunda.bpm.model.bpmn.instance.Gateway; +import org.camunda.bpm.model.bpmn.instance.Script; +import org.camunda.bpm.model.bpmn.instance.ScriptTask; +import org.camunda.bpm.model.bpmn.instance.SequenceFlow; +import org.camunda.bpm.model.bpmn.instance.ServiceTask; +import org.camunda.bpm.model.bpmn.instance.StartEvent; +import org.camunda.bpm.model.bpmn.instance.UserTask; +import org.camunda.bpm.model.bpmn.instance.bpmndi.BpmnPlane; +import org.camunda.bpm.model.bpmn.instance.camunda.CamundaExecutionListener; +import org.camunda.bpm.model.bpmn.instance.camunda.CamundaFormData; +import org.camunda.bpm.model.bpmn.instance.camunda.CamundaFormField; +import org.camunda.bpm.model.xml.instance.ModelElementInstance; +import org.junit.Before; +import org.junit.Test; + +public class ParseBpmnTest { + + protected BpmnModelInstance modelInstance; + + @Before + public void loadProcess() { + // read a BPMN model from an input stream + modelInstance = Bpmn.readModelFromStream(getClass().getClassLoader().getResourceAsStream("process.bpmn")); + } + + @Test + /* + * You can access every element of the BPMN model by id. + */ + public void findElementById() { + // get the start event of the process by id + StartEvent startEvent = modelInstance.getModelElementById("startEvent"); + assertThat(startEvent.getName()).isEqualTo("Start Process"); + + // get the forking gateway by id + ExclusiveGateway fork = modelInstance.getModelElementById("gatewayFork"); + assertThat(fork.getName()).isEqualTo("Fork"); + + // get the end event of the process by id + EndEvent endEvent = modelInstance.getModelElementById("endEvent"); + assertThat(endEvent.getName()).isEqualTo("End Process"); + } + + @Test + /* + * You can access elements by their type. + */ + public void findElementByType() { + // get all service tasks from the model + Collection serviceTasks = modelInstance.getModelElementsByType(ServiceTask.class); + // it only exists one service task + assertThat(serviceTasks).hasSize(1); + + // get all events (eg start, intermediate, boundary and end events) from the model + Collection events = modelInstance.getModelElementsByType(Event.class); + // it exists a start and an end event + assertThat(events).hasSize(2); + + // get all flow nodes in the model + Collection flowNodes = modelInstance.getModelElementsByType(FlowNode.class); + // there exist 8 flow nodes: start event, service task, 2x exclusive gateways, 2x user tasks, script task, end event + assertThat(flowNodes).hasSize(8); + + // get all extension elements in the model + Collection extensionElements = modelInstance.getModelElementsByType(ExtensionElements.class); + // the start event and the end event contain extension elements + assertThat(extensionElements).hasSize(2); + } + + @Test + /* + * You can access attributes from model elements by special getters or by a generic getter. + */ + public void readAttributes() { + // get the service task and use special getters to access known attributes + ServiceTask serviceTask = modelInstance.getModelElementById("serviceTask"); + assertThat(serviceTask.getId()).isEqualTo("serviceTask"); + assertThat(serviceTask.getName()).isEqualTo("Service Task"); + // you can also access camunda extension attributes + assertThat(serviceTask.getCamundaExpression()).isEqualTo("${execution.setVariable('foo', 'bar')}"); + assertThat(serviceTask.isCamundaAsyncBefore()).isTrue(); + assertThat(serviceTask.isCamundaExclusive()).isFalse(); + + UserTask userTaskA = modelInstance.getModelElementById("userTaskA"); + assertThat(userTaskA.getCamundaCandidateGroupsList()).containsExactly("management", "accounting"); + + UserTask userTaskB = modelInstance.getModelElementById("userTaskB"); + assertThat(userTaskB.getCamundaAssignee()).isEqualTo("demo"); + + // if the element contains an attribute which is not accessible by a special getter a generic getter can be used + // Note: for demonstrating purpose we read attributes which also can be accessed by special getters + assertThat(userTaskB.getAttributeValue("name")).isEqualTo("User Task B"); + assertThat(userTaskB.getAttributeValueNs(BpmnModelConstants.CAMUNDA_NS, "assignee")).isEqualTo("demo"); + } + + @Test + /* + * You can access child elements by type or name and often by special getters + */ + public void readChildElements() { + SequenceFlow flow4 = modelInstance.getModelElementById("flow4"); + // get all child elements of type condition expression + Collection conditionExpressions = flow4.getChildElementsByType(ConditionExpression.class); + assertThat(conditionExpressions).hasSize(1); + + // get unique child element of type condition expression (throws an exception if there are more then one child element of this type) + ConditionExpression conditionExpression = (ConditionExpression) flow4.getUniqueChildElementByType(ConditionExpression.class); + assertThat(conditionExpression.getTextContent()).isEqualTo("${foo == 'bar'}"); + + // get unique child element by namespace and name + ScriptTask scriptTask = modelInstance.getModelElementById("scriptTask"); + Script script = (Script) scriptTask.getUniqueChildElementByNameNs(BpmnModelConstants.BPMN20_NS, "script"); + assertThat(script.getTextContent()).isEqualTo("println 'hello world'"); + + // use special getters for known child elements + ConditionExpression conditionExpression2 = flow4.getConditionExpression(); + assertThat(conditionExpression2).isEqualTo(conditionExpression); + + Script script2 = scriptTask.getScript(); + assertThat(script2).isEqualTo(script); + } + + @Test + /* + * You can access extension elements like other child elements + */ + public void readExtensionElements() { + StartEvent startEvent = modelInstance.getModelElementById("startEvent"); + // get the BPMN 'extensionElements' element of the start event + ExtensionElements extensionElements = startEvent.getExtensionElements(); + // get all extension elements of the start event (child elements of 'extensionElements') + Collection elements = extensionElements.getElements(); + // the start event contains a single extension element (camunda:formData) + assertThat(elements).hasSize(1); + + // get the camunda:formData extension element and containing form fields + CamundaFormData formData = extensionElements.getElementsQuery().filterByType(CamundaFormData.class).singleResult(); + for (CamundaFormField formField : formData.getCamundaFormFields()) { + assertThat(formField.getCamundaLabel()).isIn("Name", "Age"); + assertThat(formField.getCamundaType()).isIn("string", "long"); + assertThat(formField.getCamundaDefaultValue()).isIn("test", "0"); + } + + // the end event contains an execution listener + EndEvent endEvent = modelInstance.getModelElementById("endEvent"); + CamundaExecutionListener executionListener = endEvent.getExtensionElements().getElementsQuery().filterByType(CamundaExecutionListener.class).singleResult(); + assertThat(executionListener.getCamundaEvent()).isEqualTo("start"); + assertThat(executionListener.getCamundaExpression()).isEqualTo("${execution.setVariable('finished', true)}"); + } + + @Test + /* + * You can access references between model elements by special getters. These attributes usually have the prefix + * 'Ref' like 'sourceRef' and 'targetRef' of a sequenceFlow. But there are also other references like the + * 'bpmnElement' reference of a BPMN DI element. The model API also supports the revere reference from the BPMN + * element to its DI element. + */ + public void useReferences() { + // get the first sequence flow in the process + SequenceFlow flow1 = modelInstance.getModelElementById("flow1"); + // get the source element of the sequence flow (the start event) + assertThat(flow1.getSource()).isEqualTo(modelInstance.getModelElementById("startEvent")); + // get the target element of the sequence flow (the service task) + assertThat(flow1.getTarget()).isEqualTo(modelInstance.getModelElementById("serviceTask")); + + // get the joining gateway + Gateway join = modelInstance.getModelElementById("gatewayJoin"); + // the joining gateway has to previous flow nodes, both user tasks + assertThat(join.getPreviousNodes().list()).hasSize(2) + .containsOnly( + modelInstance.getModelElementById("userTaskA"), + modelInstance.getModelElementById("userTaskB") + ); + // the joining gateway has one succeeding flow node (the script task) + assertThat(join.getSucceedingNodes().list()).hasSize(1) + .containsOnly( + modelInstance.getModelElementById("scriptTask") + ); + + // get the bpmn plane DI element by type + BpmnPlane bpmnPlane = modelInstance.getModelElementsByType(BpmnPlane.class).iterator().next(); + // the process element is the bpmn element corresponding to the bpmn plane + assertThat(bpmnPlane.getBpmnElement()).isEqualTo(modelInstance.getModelElementById("testProcess")); + + // get the service task + ServiceTask serviceTask = modelInstance.getModelElementById("serviceTask"); + // use the reverse reference to get the corresponding BPMN DI element + assertThat(serviceTask.getDiagramElement()).isEqualTo(modelInstance.getModelElementById("_BPMNShape_ServiceTask_2")); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/parse-bpmn/src/test/resources/process.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/parse-bpmn/src/test/resources/process.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..c33cf37c5e9235f583938ba18138243cd24dd3d9 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/parse-bpmn/src/test/resources/process.bpmn @@ -0,0 +1,143 @@ + + + + + + + + + + + flow1 + + + flow1 + flow2 + + + + flow2 + flow3 + flow4 + + + + + + + flow3 + flow5 + + + + + + flow4 + flow6 + + + + flow6 + flow5 + flow7 + + + + flow7 + SequenceFlow_9 + + + + + + + + SequenceFlow_9 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/parse-bpmn/src/test/resources/process.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/parse-bpmn/src/test/resources/process.png new file mode 100644 index 0000000000000000000000000000000000000000..70128cbd3f60968155599121946a35fd0ce47153 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/bpmn-model-api/parse-bpmn/src/test/resources/process.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:123a93fef2ccd006423609e5297c1a124fc2953405a0c576c1aa714fa891cecb +size 13691 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/dataformat/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/dataformat/README.md new file mode 100644 index 0000000000000000000000000000000000000000..20fb566a4424c51bf766b4710cc8060c19160c69 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/dataformat/README.md @@ -0,0 +1,5 @@ +# Camunda External Task Client (Java) Example + +This example is not actively maintained anymore. You can refer to the [example with fixed version of Camunda 7.18](https://github.com/camunda/camunda-bpm-examples/blob/7.18/clients/java/dataformat). +Due to Camunda Platform 7 backward compatibility, the examples usually still work with later versions. However, you +might need to adjust them to make them work. \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/loan-granting/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/loan-granting/README.md new file mode 100644 index 0000000000000000000000000000000000000000..7417652bfa2bd00c4907f9f31b337c9985915ad9 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/loan-granting/README.md @@ -0,0 +1,5 @@ +# Camunda External Task Client (Java) Example + +This example is not actively maintained anymore. You can refer to the [example with fixed version of Camunda 7.18](https://github.com/camunda/camunda-bpm-examples/blob/7.18/clients/java/loan-granting). +Due to Camunda Platform 7 backward compatibility, the examples usually still work with later versions. However, you +might need to adjust them to make them work. \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/README.md new file mode 100644 index 0000000000000000000000000000000000000000..415f4ac571259caafdea9b042622c99202ec85fa --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/README.md @@ -0,0 +1,146 @@ +# Camunda External Task Client (Java) Example + +In this tutorial you will learn how to use the External Task client for Java. + +In a nutshell you will be guided through the following steps: +* Starting the Camunda Platform Runtime +* Modeling and Deploying a process with the Camunda Modeler +* Bootstrapping the External Task client +* Monitor the process in Camunda Cockpit + +## Prerequisites +* [Java JDK 11+](https://www.oracle.com/java/technologies/downloads/#java11) +* [Apache Maven](https://maven.apache.org/download.cgi) +* [Camunda Modeler](https://camunda.com/download/modeler/) +* [Camunda Platform Runtime](https://docs.camunda.org/manual/latest/installation/) +* Camunda External Task Client + +First, make sure you have downloaded and installed all the necessary prerequisites, +and the running platform is [compatible](https://docs.camunda.org/manual/user-guide/ext-client/compatibility-matrix/) with the client version. + +## Start the Camunda Platform Runtime +* Microsoft Windows users need to run the `start.bat` file +* Users of Unix based operating systems need to run the `start.sh` file + +## Deploy a Process + +Next, we want to deploy a model to the Camunda Platform Runtime with the following steps: + +* Download the BPMN 2.0 XML of that model [here](./order-handling.bpmn). +* Open the model in the Camunda Modeler. +* Click on the "Deploy" icon ![Camunda Modeler – Deploy Button](./img/deploy-icon.png). +* Select "Deploy Current Diagram". +* Select a deployment name of your choice. + +To complete the deployment, click on the "Deploy" button. +Your model is now ready to be executed by the **Camunda Platform Process Engine**. +Start an instance of it in [Camunda Tasklist](http://localhost:8080/camunda/app/tasklist). + +## Monitor the Process in Camunda Cockpit +Open [Camunda Cockpit](http://localhost:8080/camunda/app/cockpit) click in the top navigation on "Processes" and then +on the process "Order Process". You should see the process with the activity instances. + +## Set Up a Project +In this step we will set up the External Task client. + +You can create a new Maven project using your IDE, or run the following command: + +```sh +mvn archetype:generate \ + -DgroupId=org.camunda.bpm \ + -DartifactId=order-handling \ + -DarchetypeArtifactId=maven-archetype-quickstart \ + -DinteractiveMode=false +``` + +Add the `camunda-external-task-client` dependency to the project's `pom.xml`: +```xml + + org.camunda.bpm + camunda-external-task-client + ${version} + +``` + +Create a main class and add the following lines: +```java + // bootstrap the client + ExternalTaskClient client = ExternalTaskClient.create() + .baseUrl("http://localhost:8080/engine-rest") + .asyncResponseTimeout(1000) + .customizeHttpClient(httpClientBuilder -> { + httpClientBuilder.setDefaultRequestConfig(RequestConfig.custom() + .setResponseTimeout(Timeout.ofSeconds(15)) + .build()); + }) + .build(); + + // subscribe to the topic + client.subscribe("invoiceCreator") + .handler((externalTask, externalTaskService) -> { + + // instantiate an invoice object + Invoice invoice = new Invoice("A123"); + + // create an object typed variable with the serialization format XML + ObjectValue invoiceValue = ClientValues + .objectValue(invoice) + .serializationDataFormat("application/xml") + .create(); + + // add the invoice object and its id to a map + Map variables = new HashMap<>(); + variables.put("invoiceId", invoice.id); + variables.put("invoice", invoiceValue); + + // select the scope of the variables + boolean isRandomSample = Math.random() <= 0.5; + if (isRandomSample) { + externalTaskService.complete(externalTask, variables); + } else { + externalTaskService.complete(externalTask, null, variables); + } + + System.out.println("The External Task " + externalTask.getId() + + " has been completed!"); + + }).open(); + + client.subscribe("invoiceArchiver") + .handler((externalTask, externalTaskService) -> { + TypedValue typedInvoice = externalTask.getVariableTyped("invoice"); + Invoice invoice = (Invoice) typedInvoice.getValue(); + System.out.println("Invoice on process scope archived: " + invoice); + externalTaskService.complete(externalTask); + }).open(); +``` + +Create an `Invoice` class and add the following lines: +```java +public class Invoice { + + public String id; + + public Invoice(String id) { + this.id = id; + } + + public Invoice() { + } + + @Override + public String toString() { + return "Invoice [id=" + id + "]"; + } + +} +``` + +Now, just run your application. The client starts to continuously fetch and lock for External Task instances. + +You should see a similar result in your console window: +```sh +The External Task 5baf2670-1bad-11ec-9048-04d3b0c25ec0 has been completed! +Invoice on process scope archived: Invoice [id=A123] +... +``` diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/img/deploy-icon.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/img/deploy-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..6bb5bdb9646e993b0f0979ee63480f1707e2e358 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/img/deploy-icon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2cd73437c0246e122c521d16ef7c1acf9b0ec3430c216a0d1c041f84befe93bf +size 4220 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/order-handling.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/order-handling.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..578cf44c18576bd262758706b6814cf4c2053d6b --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/order-handling.bpmn @@ -0,0 +1,138 @@ + + + + + + SequenceFlow_0xz1ar4 + SequenceFlow_0mbhk8d + + SequenceFlow_1e8m45t + + + + SequenceFlow_131wrxd + + + + SequenceFlow_1e8m45t + SequenceFlow_131wrxd + + + + SequenceFlow_0mbhk8d + + + + SequenceFlow_140kl02 + + + + + SequenceFlow_0xz1ar4 + + 0/5 0/1 * 1/1 * ? + + + + SequenceFlow_1k59pur + + ${invoiceId != null} + + + + SequenceFlow_1k59pur + SequenceFlow_140kl02 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..180dd9b11a93b70ed9b0240344487c891c4692e6 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/pom.xml @@ -0,0 +1,55 @@ + + + 4.0.0 + + org.camunda.bpm + order-handling-example + 1.0-SNAPSHOT + + jar + order-handling-example + + + 7.24.0 + 1.7.36 + 4.0.5 + 3.11.0 + 11 + + + + + org.camunda.bpm + camunda-external-task-client + ${camunda.platform.version} + + + + org.slf4j + slf4j-simple + ${slf4j.version} + + + + com.sun.xml.bind + jaxb-impl + ${jaxb.version} + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${maven.compiler.version} + + ${java.version} + ${java.version} + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/src/main/java/org/camunda/bpm/App.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/src/main/java/org/camunda/bpm/App.java new file mode 100644 index 0000000000000000000000000000000000000000..927a37e67932afa3feaea42595ddd8f0cc365697 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/src/main/java/org/camunda/bpm/App.java @@ -0,0 +1,83 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm; + +import org.apache.hc.client5.http.config.RequestConfig; +import org.apache.hc.core5.util.Timeout; +import org.camunda.bpm.client.ExternalTaskClient; +import org.camunda.bpm.client.variable.ClientValues; +import org.camunda.bpm.engine.variable.value.ObjectValue; +import org.camunda.bpm.engine.variable.value.TypedValue; + +import java.util.HashMap; +import java.util.Map; + +public class App { + + public static void main(String... args) { + // bootstrap the client + ExternalTaskClient client = ExternalTaskClient.create() + .baseUrl("http://localhost:8080/engine-rest") + .asyncResponseTimeout(1000) + .customizeHttpClient(httpClientBuilder -> { + httpClientBuilder.setDefaultRequestConfig(RequestConfig.custom() + .setResponseTimeout(Timeout.ofSeconds(15)) + .build()); + }) + .build(); + + // subscribe to the topic + client.subscribe("invoiceCreator") + .handler((externalTask, externalTaskService) -> { + + // instantiate an invoice object + Invoice invoice = new Invoice("A123"); + + // create an object typed variable with the serialization format XML + ObjectValue invoiceValue = ClientValues + .objectValue(invoice) + .serializationDataFormat("application/xml") + .create(); + + // add the invoice object and its id to a map + Map variables = new HashMap<>(); + variables.put("invoiceId", invoice.id); + variables.put("invoice", invoiceValue); + + // select the scope of the variables + boolean isRandomSample = Math.random() <= 0.5; + if (isRandomSample) { + externalTaskService.complete(externalTask, variables); + } else { + externalTaskService.complete(externalTask, null, variables); + } + + System.out.println("The External Task " + externalTask.getId() + + " has been completed!"); + + }).open(); + + client.subscribe("invoiceArchiver") + .handler((externalTask, externalTaskService) -> { + TypedValue typedInvoice = externalTask.getVariableTyped("invoice"); + Invoice invoice = (Invoice) typedInvoice.getValue(); + System.out.println("Invoice on process scope archived: " + invoice); + externalTaskService.complete(externalTask); + }).open(); + } + +} \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/src/main/java/org/camunda/bpm/Invoice.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/src/main/java/org/camunda/bpm/Invoice.java new file mode 100644 index 0000000000000000000000000000000000000000..71e162df4612d074094e0abb615b5a52dd2eb677 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/clients/java/order-handling/src/main/java/org/camunda/bpm/Invoice.java @@ -0,0 +1,35 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm; + +public class Invoice { + + public String id; + + public Invoice(String id) { + this.id = id; + } + + public Invoice() { + } + + @Override + public String toString() { + return "Invoice [id=" + id + "]"; + } + +} \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cmmn-model-api/typed-custom-elements/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cmmn-model-api/typed-custom-elements/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e8cb708eeafa5d91566ad3f501c537461dd35fa8 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cmmn-model-api/typed-custom-elements/README.md @@ -0,0 +1,5 @@ +# Accessing custom CMMN extension elements in a strongly-typed way + +This example is not actively maintained anymore. You can refer to the [example with fixed version of Camunda 7.18](https://github.com/camunda/camunda-bpm-examples/blob/7.18/cmmn-model-api/typed-custom-elements). +Due to Camunda Platform 7 backward compatibility, the examples usually still work with later versions. However, you +might need to adjust them to make them work. \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-angular-open-usertasks/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-angular-open-usertasks/README.md new file mode 100644 index 0000000000000000000000000000000000000000..de65b0a7ca5da65e06a1f2bd8b10aff72f22e13d --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-angular-open-usertasks/README.md @@ -0,0 +1,6 @@ +Angular "Open Usertasks" Cockpit Tab +======================================= + +This example is not actively maintained anymore. You can refer to the [example with fixed version of Camunda 7.18](https://github.com/camunda/camunda-bpm-examples/blob/7.18/cockpit/cockpit-angular-open-usertasks). +Due to Camunda Platform 7 backward compatibility, the examples usually still work with later versions. However, you +might need to adjust them to make them work. \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-angularjs-search-processes/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-angularjs-search-processes/README.md new file mode 100644 index 0000000000000000000000000000000000000000..aaa2ff99756fa8a69bb5328567b227a1dc00518b --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-angularjs-search-processes/README.md @@ -0,0 +1,6 @@ +AngularJS 1.x "Search Processes" Cockpit Plugin +====================================================== + +This example is not actively maintained anymore. You can refer to the [example with fixed version of Camunda 7.18](https://github.com/camunda/camunda-bpm-examples/blob/7.18/cockpit/cockpit-angularjs-search-processes). +Due to Camunda Platform 7 backward compatibility, the examples usually still work with later versions. However, you +might need to adjust them to make them work. \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/.gitignore b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..8d87b1d267eabcb51a652ac62f9e0862dbde5541 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/.gitignore @@ -0,0 +1 @@ +node_modules/* diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f178a1333fd3c5c25f8a67c6106cc3fbeb2c07f6 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/README.md @@ -0,0 +1,70 @@ +# bpmn.js Cockpit module - bundled + +This example shows how to develop, bundle and include a bpmn-js custom module into Cockpit. + +For additional information, please also see the [documentation](https://docs.camunda.org/manual/latest/webapps/cockpit/extend/configuration/#bpmn-diagram-viewer-bpmn-js). + +Built and tested against Camunda Platform version `7.24.0`. + +![Screenshot](screenshot.png) + + +## Develop the custom bpmn-js module + + +For this example, we will implement a custom renderer, which will renderer BPMN UserTasks and Events differently. + +You can find the source code in the [`custom-renderer` directory](./custom-renderer). + +Implementing a custom renderer is just one of many examples how you can customize [bpmn-js](https://github.com/bpmn-io/bpmn-js) to your needs. Please visit the [bpmn-js Custom Rendering](https://github.com/bpmn-io/bpmn-js-example-custom-rendering) example to find out more about rendering and how to customize it. Please visit [awesome bpmn-js](https://github.com/bpmn-io/awesome-bpmn-io) for various other resources and projects around bpmn-js and other bpmn-io libraries. + + +## Bundle the custom renderer + + +The Cockpit WebApplication will import the additional modules during runtime in the browser. Hence, the [sources](./custom-renderer) need to be bundled so that they can be interpreted by the browser. In order to do that, we will use [rollup](https://rollupjs.org/). We will also use the [rollup-commonjs](https://github.com/rollup/plugins/tree/master/packages/commonjs) plugin to convert the sources to ES6 and the [rollup-node-resolve](https://github.com/rollup/plugins/tree/master/packages/node-resolve) plugin to include third party modules required by our custom renderer. + +Our `rollup.config.js` file looks like this: +```js +import resolve from "@rollup/plugin-node-resolve"; +import commonjs from "@rollup/plugin-commonjs"; + +export default { + input: "custom-renderer/index.js", + output: { + file: "dist/custom-renderer-module-bundled.js" + }, + plugins: [resolve(), commonjs()] +}; +``` + +We can create the bundled `.js` file by running +```sh +$ npm run bundle +``` + +Note that the bundled [`custom-renderer-module-bundled.js` module](./dist/custom-renderer-module-bundled.js) is included in this repository, so you don't necessarily have to locally run all of the above steps. + +## Include the bundled module in Cockpit + + +To include the bundled module in your Cockpit application, copy the [`custom-renderer-module-bundled.js` file](./dist/custom-renderer-module-bundled.js) into the `app/cockpit/scripts/` folder in your Camunda webapp distribution. +For the Tomcat distribution, this would be `server/apache-tomcat-X.X.XX/webapps/camunda/app/cockpit/scripts/`. + +Then, add the following content to the `app/cockpit/scripts/config.js` file: + +```javascript +// … + bpmnJs: { + additionalModules: [ + 'scripts/custom-renderer-module-bundled' + ] + } +// … +``` +After that, start the server, login to Cockpit and navigate to the Process instance view to check the result. + +License +------- + +Use under terms of the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/custom-renderer/CustomRenderer.js b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/custom-renderer/CustomRenderer.js new file mode 100644 index 0000000000000000000000000000000000000000..3a3880a9a57a89d2bf5c5e31d639d33b8a181ccf --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/custom-renderer/CustomRenderer.js @@ -0,0 +1,109 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +import BaseRenderer from 'diagram-js/lib/draw/BaseRenderer'; + +import { + append as svgAppend, + attr as svgAttr, + create as svgCreate, + remove as svgRemove +} from 'tiny-svg'; + +import { + getRoundRectPath +} from 'bpmn-js/lib/draw/BpmnRenderUtil'; + +import { is } from 'bpmn-js/lib/util/ModelUtil'; +import { isAny } from 'bpmn-js/lib/features/modeling/util/ModelingUtil'; + +const HIGH_PRIORITY = 1500, + TASK_BORDER_RADIUS = 2; + + +export default class CustomRenderer extends BaseRenderer { + constructor(eventBus, bpmnRenderer) { + super(eventBus, HIGH_PRIORITY); + + this.bpmnRenderer = bpmnRenderer; + } + + canRender(element) { + + // only render tasks and events (ignore labels) + return isAny(element, [ 'bpmn:Task', 'bpmn:Event' ]) && !element.labelTarget; + } + + drawShape(parentNode, element) { + const shape = this.bpmnRenderer.drawShape(parentNode, element); + + if (is(element, 'bpmn:Task')) { + const rect = drawRect(parentNode, 100, 80, TASK_BORDER_RADIUS, '#52B415'); + + prependTo(rect, parentNode); + + svgRemove(shape); + + return shape; + } + + const rect = drawRect(parentNode, 30, 20, TASK_BORDER_RADIUS, '#cc0000'); + + svgAttr(rect, { + transform: 'translate(-20, -10)' + }); + + return shape; + } + + getShapePath(shape) { + if (is(shape, 'bpmn:Task')) { + return getRoundRectPath(shape, TASK_BORDER_RADIUS); + } + + return this.bpmnRenderer.getShapePath(shape); + } +} + +CustomRenderer.$inject = [ 'eventBus', 'bpmnRenderer' ]; + +// helpers ////////// + +// copied from https://github.com/bpmn-io/bpmn-js/blob/master/lib/draw/BpmnRenderer.js +function drawRect(parentNode, width, height, borderRadius, strokeColor) { + const rect = svgCreate('rect'); + + svgAttr(rect, { + width: width, + height: height, + rx: borderRadius, + ry: borderRadius, + stroke: strokeColor || '#000', + strokeWidth: 2, + fill: '#fff' + }); + + svgAppend(parentNode, rect); + + return rect; +} + +// copied from https://github.com/bpmn-io/diagram-js/blob/master/lib/core/GraphicsFactory.js +function prependTo(newNode, parentNode, siblingNode) { + parentNode.insertBefore(newNode, siblingNode || parentNode.firstChild); +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/custom-renderer/index.js b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/custom-renderer/index.js new file mode 100644 index 0000000000000000000000000000000000000000..35fd7b4af0afb9f59c5c29a42e8b17b677a9a465 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/custom-renderer/index.js @@ -0,0 +1,24 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +import CustomRenderer from './CustomRenderer'; + +export default { + __init__: [ 'customRenderer' ], + customRenderer: [ 'type', CustomRenderer ] +}; diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/dist/custom-renderer-module-bundled.js b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/dist/custom-renderer-module-bundled.js new file mode 100644 index 0000000000000000000000000000000000000000..74442aa092a26544ef7ca39b13042d1eb5fed4a8 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/dist/custom-renderer-module-bundled.js @@ -0,0 +1,779 @@ +var DEFAULT_RENDER_PRIORITY = 1000; + +/** + * @typedef {import('../core/Types').ElementLike} Element + * @typedef {import('../core/Types').ConnectionLike} Connection + * @typedef {import('../core/Types').ShapeLike} Shape + * + * @typedef {import('../core/EventBus').default} EventBus + */ + +/** + * The base implementation of shape and connection renderers. + * + * @param {EventBus} eventBus + * @param {number} [renderPriority=1000] + */ +function BaseRenderer(eventBus, renderPriority) { + var self = this; + + renderPriority = renderPriority || DEFAULT_RENDER_PRIORITY; + + eventBus.on([ 'render.shape', 'render.connection' ], renderPriority, function(evt, context) { + var type = evt.type, + element = context.element, + visuals = context.gfx, + attrs = context.attrs; + + if (self.canRender(element)) { + if (type === 'render.shape') { + return self.drawShape(visuals, element, attrs); + } else { + return self.drawConnection(visuals, element, attrs); + } + } + }); + + eventBus.on([ 'render.getShapePath', 'render.getConnectionPath' ], renderPriority, function(evt, element) { + if (self.canRender(element)) { + if (evt.type === 'render.getShapePath') { + return self.getShapePath(element); + } else { + return self.getConnectionPath(element); + } + } + }); +} + +/** + * Checks whether an element can be rendered. + * + * @param {Element} element The element to be rendered. + * + * @return {boolean} Whether the element can be rendered. + */ +BaseRenderer.prototype.canRender = function(element) {}; + +/** + * Draws a shape. + * + * @param {SVGElement} visuals The SVG element to draw the shape into. + * @param {Shape} shape The shape to be drawn. + * + * @return {SVGElement} The SVG element of the shape drawn. + */ +BaseRenderer.prototype.drawShape = function(visuals, shape) {}; + +/** + * Draws a connection. + * + * @param {SVGElement} visuals The SVG element to draw the connection into. + * @param {Connection} connection The connection to be drawn. + * + * @return {SVGElement} The SVG element of the connection drawn. + */ +BaseRenderer.prototype.drawConnection = function(visuals, connection) {}; + +/** + * Gets the SVG path of the graphical representation of a shape. + * + * @param {Shape} shape The shape. + * + * @return {string} The SVG path of the shape. + */ +BaseRenderer.prototype.getShapePath = function(shape) {}; + +/** + * Gets the SVG path of the graphical representation of a connection. + * + * @param {Connection} connection The connection. + * + * @return {string} The SVG path of the connection. + */ +BaseRenderer.prototype.getConnectionPath = function(connection) {}; + +function ensureImported(element, target) { + + if (element.ownerDocument !== target.ownerDocument) { + try { + + // may fail on webkit + return target.ownerDocument.importNode(element, true); + } catch (e) { + + // ignore + } + } + + return element; +} + +/** + * appendTo utility + */ + + +/** + * Append a node to a target element and return the appended node. + * + * @param {SVGElement} element + * @param {SVGElement} target + * + * @return {SVGElement} the appended node + */ +function appendTo(element, target) { + return target.appendChild(ensureImported(element, target)); +} + +/** + * append utility + */ + + +/** + * Append a node to an element + * + * @param {SVGElement} element + * @param {SVGElement} node + * + * @return {SVGElement} the element + */ +function append(target, node) { + appendTo(node, target); + return target; +} + +/** + * attribute accessor utility + */ + +var LENGTH_ATTR = 2; + +var CSS_PROPERTIES = { + 'alignment-baseline': 1, + 'baseline-shift': 1, + 'clip': 1, + 'clip-path': 1, + 'clip-rule': 1, + 'color': 1, + 'color-interpolation': 1, + 'color-interpolation-filters': 1, + 'color-profile': 1, + 'color-rendering': 1, + 'cursor': 1, + 'direction': 1, + 'display': 1, + 'dominant-baseline': 1, + 'enable-background': 1, + 'fill': 1, + 'fill-opacity': 1, + 'fill-rule': 1, + 'filter': 1, + 'flood-color': 1, + 'flood-opacity': 1, + 'font': 1, + 'font-family': 1, + 'font-size': LENGTH_ATTR, + 'font-size-adjust': 1, + 'font-stretch': 1, + 'font-style': 1, + 'font-variant': 1, + 'font-weight': 1, + 'glyph-orientation-horizontal': 1, + 'glyph-orientation-vertical': 1, + 'image-rendering': 1, + 'kerning': 1, + 'letter-spacing': 1, + 'lighting-color': 1, + 'marker': 1, + 'marker-end': 1, + 'marker-mid': 1, + 'marker-start': 1, + 'mask': 1, + 'opacity': 1, + 'overflow': 1, + 'pointer-events': 1, + 'shape-rendering': 1, + 'stop-color': 1, + 'stop-opacity': 1, + 'stroke': 1, + 'stroke-dasharray': 1, + 'stroke-dashoffset': 1, + 'stroke-linecap': 1, + 'stroke-linejoin': 1, + 'stroke-miterlimit': 1, + 'stroke-opacity': 1, + 'stroke-width': LENGTH_ATTR, + 'text-anchor': 1, + 'text-decoration': 1, + 'text-rendering': 1, + 'unicode-bidi': 1, + 'visibility': 1, + 'word-spacing': 1, + 'writing-mode': 1 +}; + + +function getAttribute(node, name) { + if (CSS_PROPERTIES[name]) { + return node.style[name]; + } else { + return node.getAttributeNS(null, name); + } +} + +function setAttribute(node, name, value) { + var hyphenated = name.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); + + var type = CSS_PROPERTIES[hyphenated]; + + if (type) { + + // append pixel unit, unless present + if (type === LENGTH_ATTR && typeof value === 'number') { + value = String(value) + 'px'; + } + + node.style[hyphenated] = value; + } else { + node.setAttributeNS(null, name, value); + } +} + +function setAttributes(node, attrs) { + + var names = Object.keys(attrs), i, name; + + for (i = 0, name; (name = names[i]); i++) { + setAttribute(node, name, attrs[name]); + } +} + +/** + * Gets or sets raw attributes on a node. + * + * @param {SVGElement} node + * @param {Object} [attrs] + * @param {String} [name] + * @param {String} [value] + * + * @return {String} + */ +function attr(node, name, value) { + if (typeof name === 'string') { + { + return getAttribute(node, name); + } + } else { + setAttributes(node, name); + } + + return node; +} + +var ns = { + svg: 'http://www.w3.org/2000/svg' +}; + +/** + * DOM parsing utility + */ + + +var SVG_START = '' + svg + ''; + unwrap = true; + } + + var parsed = parseDocument(svg); + + if (!unwrap) { + return parsed; + } + + var fragment = document.createDocumentFragment(); + + var parent = parsed.firstChild; + + while (parent.firstChild) { + fragment.appendChild(parent.firstChild); + } + + return fragment; +} + +function parseDocument(svg) { + + var parser; + + // parse + parser = new DOMParser(); + parser.async = false; + + return parser.parseFromString(svg, 'text/xml'); +} + +/** + * Create utility for SVG elements + */ + + + +/** + * Create a specific type from name or SVG markup. + * + * @param {String} name the name or markup of the element + * @param {Object} [attrs] attributes to set on the element + * + * @returns {SVGElement} + */ +function create(name, attrs) { + var element; + + name = name.trim(); + + if (name.charAt(0) === '<') { + element = parse(name).firstChild; + element = document.importNode(element, true); + } else { + element = document.createElementNS(ns.svg, name); + } + + return element; +} + +function remove(element) { + var parent = element.parentNode; + + if (parent) { + parent.removeChild(element); + } + + return element; +} + +/** + * Flatten array, one level deep. + * + * @template T + * + * @param {T[][] | T[] | null} [arr] + * + * @return {T[]} + */ + +const nativeToString = Object.prototype.toString; +const nativeHasOwnProperty = Object.prototype.hasOwnProperty; + +function isUndefined(obj) { + return obj === undefined; +} + +function isNil(obj) { + return obj == null; +} + +function isArray(obj) { + return nativeToString.call(obj) === '[object Array]'; +} + +/** + * @param {any} obj + * + * @return {boolean} + */ +function isFunction(obj) { + const tag = nativeToString.call(obj); + + return ( + tag === '[object Function]' || + tag === '[object AsyncFunction]' || + tag === '[object GeneratorFunction]' || + tag === '[object AsyncGeneratorFunction]' || + tag === '[object Proxy]' + ); +} + +/** + * Return true, if target owns a property with the given key. + * + * @param {Object} target + * @param {String} key + * + * @return {Boolean} + */ +function has(target, key) { + return !isNil(target) && nativeHasOwnProperty.call(target, key); +} + +/** + * @template T + * @typedef { ( + * ((e: T) => boolean) | + * ((e: T, idx: number) => boolean) | + * ((e: T, key: string) => boolean) | + * string | + * number + * ) } Matcher + */ + +/** + * @template T + * @template U + * + * @typedef { ( + * ((e: T) => U) | string | number + * ) } Extractor + */ + + +/** + * @template T + * @typedef { (val: T, key: any) => boolean } MatchFn + */ + +/** + * @template T + * @typedef { T[] } ArrayCollection + */ + +/** + * @template T + * @typedef { { [key: string]: T } } StringKeyValueCollection + */ + +/** + * @template T + * @typedef { { [key: number]: T } } NumberKeyValueCollection + */ + +/** + * @template T + * @typedef { StringKeyValueCollection | NumberKeyValueCollection } KeyValueCollection + */ + +/** + * @template T + * @typedef { KeyValueCollection | ArrayCollection } Collection + */ + +/** + * Find element in collection. + * + * @template T + * @param {Collection} collection + * @param {Matcher} matcher + * + * @return {Object} + */ +function find(collection, matcher) { + + const matchFn = toMatcher(matcher); + + let match; + + forEach(collection, function(val, key) { + if (matchFn(val, key)) { + match = val; + + return false; + } + }); + + return match; + +} + + +/** + * Iterate over collection; returning something + * (non-undefined) will stop iteration. + * + * @template T + * @param {Collection} collection + * @param { ((item: T, idx: number) => (boolean|void)) | ((item: T, key: string) => (boolean|void)) } iterator + * + * @return {T} return result that stopped the iteration + */ +function forEach(collection, iterator) { + + let val, + result; + + if (isUndefined(collection)) { + return; + } + + const convertKey = isArray(collection) ? toNum : identity; + + for (let key in collection) { + + if (has(collection, key)) { + val = collection[key]; + + result = iterator(val, convertKey(key)); + + if (result === false) { + return val; + } + } + } +} + + +/** + * Return true if some elements in the collection + * match the criteria. + * + * @param {Object|Array} collection + * @param {Function} matcher + * + * @return {Boolean} + */ +function some(collection, matcher) { + + return !!find(collection, matcher); +} + + +/** + * @template T + * @param {Matcher} matcher + * + * @return {MatchFn} + */ +function toMatcher(matcher) { + return isFunction(matcher) ? matcher : (e) => { + return e === matcher; + }; +} + + +function identity(arg) { + return arg; +} + +function toNum(arg) { + return Number(arg); +} + +/** + * @typedef { import('../model/Types').Element } Element + * @typedef { import('../model/Types').ModdleElement } ModdleElement + */ + +/** + * Is an element of the given BPMN type? + * + * @param {Element|ModdleElement} element + * @param {string} type + * + * @return {boolean} + */ +function is(element, type) { + var bo = getBusinessObject(element); + + return bo && (typeof bo.$instanceOf === 'function') && bo.$instanceOf(type); +} + + +/** + * Return true if element has any of the given types. + * + * @param {Element|ModdleElement} element + * @param {string[]} types + * + * @return {boolean} + */ +function isAny(element, types) { + return some(types, function(t) { + return is(element, t); + }); +} + +/** + * Return the business object for a given element. + * + * @param {Element|ModdleElement} element + * + * @return {ModdleElement} + */ +function getBusinessObject(element) { + return (element && element.businessObject) || element; +} + +/** + * @typedef {(string|number)[]} Component + * + * @typedef {import('../util/Types').Point} Point + */ + +/** + * @param {Component[] | Component[][]} elements + * + * @return {string} + */ +function componentsToPath(elements) { + return elements.flat().join(',').replace(/,?([A-Za-z]),?/g, '$1'); +} + +/** + * @param {ShapeLike} shape + * @param {number} [borderRadius] + * + * @return {string} path + */ +function getRoundRectPath(shape, borderRadius) { + + var x = shape.x, + y = shape.y, + width = shape.width, + height = shape.height; + + var roundRectPath = [ + [ 'M', x + borderRadius, y ], + [ 'l', width - borderRadius * 2, 0 ], + [ 'a', borderRadius, borderRadius, 0, 0, 1, borderRadius, borderRadius ], + [ 'l', 0, height - borderRadius * 2 ], + [ 'a', borderRadius, borderRadius, 0, 0, 1, -borderRadius, borderRadius ], + [ 'l', borderRadius * 2 - width, 0 ], + [ 'a', borderRadius, borderRadius, 0, 0, 1, -borderRadius, -borderRadius ], + [ 'l', 0, borderRadius * 2 - height ], + [ 'a', borderRadius, borderRadius, 0, 0, 1, borderRadius, -borderRadius ], + [ 'z' ] + ]; + + return componentsToPath(roundRectPath); +} + +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +const HIGH_PRIORITY = 1500, + TASK_BORDER_RADIUS = 2; + + +class CustomRenderer extends BaseRenderer { + constructor(eventBus, bpmnRenderer) { + super(eventBus, HIGH_PRIORITY); + + this.bpmnRenderer = bpmnRenderer; + } + + canRender(element) { + + // only render tasks and events (ignore labels) + return isAny(element, [ 'bpmn:Task', 'bpmn:Event' ]) && !element.labelTarget; + } + + drawShape(parentNode, element) { + const shape = this.bpmnRenderer.drawShape(parentNode, element); + + if (is(element, 'bpmn:Task')) { + const rect = drawRect(parentNode, 100, 80, TASK_BORDER_RADIUS, '#52B415'); + + prependTo(rect, parentNode); + + remove(shape); + + return shape; + } + + const rect = drawRect(parentNode, 30, 20, TASK_BORDER_RADIUS, '#cc0000'); + + attr(rect, { + transform: 'translate(-20, -10)' + }); + + return shape; + } + + getShapePath(shape) { + if (is(shape, 'bpmn:Task')) { + return getRoundRectPath(shape, TASK_BORDER_RADIUS); + } + + return this.bpmnRenderer.getShapePath(shape); + } +} + +CustomRenderer.$inject = [ 'eventBus', 'bpmnRenderer' ]; + +// helpers ////////// + +// copied from https://github.com/bpmn-io/bpmn-js/blob/master/lib/draw/BpmnRenderer.js +function drawRect(parentNode, width, height, borderRadius, strokeColor) { + const rect = create('rect'); + + attr(rect, { + width: width, + height: height, + rx: borderRadius, + ry: borderRadius, + stroke: strokeColor || '#000', + strokeWidth: 2, + fill: '#fff' + }); + + append(parentNode, rect); + + return rect; +} + +// copied from https://github.com/bpmn-io/diagram-js/blob/master/lib/core/GraphicsFactory.js +function prependTo(newNode, parentNode, siblingNode) { + parentNode.insertBefore(newNode, parentNode.firstChild); +} + +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +var index = { + __init__: [ 'customRenderer' ], + customRenderer: [ 'type', CustomRenderer ] +}; + +export { index as default }; diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/package-lock.json b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/package-lock.json new file mode 100644 index 0000000000000000000000000000000000000000..6fd1129d5837b9fab39e88bc83ab51fcfa58b691 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/package-lock.json @@ -0,0 +1,830 @@ +{ + "name": "cockpit-bpmn-js-module-bundled", + "version": "0.0.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "cockpit-bpmn-js-module-bundled", + "version": "0.0.1", + "license": "Apache-2.0", + "dependencies": { + "@rollup/plugin-commonjs": "~28.0.3", + "@rollup/plugin-node-resolve": "~16.0.1", + "bpmn-js": "^18.7.0", + "diagram-js": "^15.4.0", + "rollup": "^4.52.3", + "tiny-svg": "^4.1.3" + } + }, + "node_modules/@bpmn-io/diagram-js-ui": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bpmn-io/diagram-js-ui/-/diagram-js-ui-0.2.3.tgz", + "integrity": "sha512-OGyjZKvGK8tHSZ0l7RfeKhilGoOGtFDcoqSGYkX0uhFlo99OVZ9Jn1K7TJGzcE9BdKwvA5Y5kGqHEhdTxHvFfw==", + "license": "MIT", + "dependencies": { + "htm": "^3.1.1", + "preact": "^10.11.2" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "license": "MIT" + }, + "node_modules/@rollup/plugin-commonjs": { + "version": "28.0.6", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-28.0.6.tgz", + "integrity": "sha512-XSQB1K7FUU5QP+3lOQmVCE3I0FcbbNvmNT4VJSj93iUjayaARrTQeoRdiYQoftAJBLrR9t2agwAd3ekaTgHNlw==", + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "commondir": "^1.0.1", + "estree-walker": "^2.0.2", + "fdir": "^6.2.0", + "is-reference": "1.2.1", + "magic-string": "^0.30.3", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0 || 14 >= 14.17" + }, + "peerDependencies": { + "rollup": "^2.68.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-node-resolve": { + "version": "16.0.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-16.0.1.tgz", + "integrity": "sha512-tk5YCxJWIG81umIvNkSod2qK5KyQW19qcBF/B78n1bjtOON6gzKoVeSzAE8yHCZEDmqkHKkxplExA8KzdJLJpA==", + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "@types/resolve": "1.20.2", + "deepmerge": "^4.2.2", + "is-module": "^1.0.0", + "resolve": "^1.22.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.78.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/pluginutils": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.3.0.tgz", + "integrity": "sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==", + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.52.3.tgz", + "integrity": "sha512-h6cqHGZ6VdnwliFG1NXvMPTy/9PS3h8oLh7ImwR+kl+oYnQizgjxsONmmPSb2C66RksfkfIxEVtDSEcJiO0tqw==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.52.3.tgz", + "integrity": "sha512-wd+u7SLT/u6knklV/ifG7gr5Qy4GUbH2hMWcDauPFJzmCZUAJ8L2bTkVXC2niOIxp8lk3iH/QX8kSrUxVZrOVw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.52.3.tgz", + "integrity": "sha512-lj9ViATR1SsqycwFkJCtYfQTheBdvlWJqzqxwc9f2qrcVrQaF/gCuBRTiTolkRWS6KvNxSk4KHZWG7tDktLgjg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.52.3.tgz", + "integrity": "sha512-+Dyo7O1KUmIsbzx1l+4V4tvEVnVQqMOIYtrxK7ncLSknl1xnMHLgn7gddJVrYPNZfEB8CIi3hK8gq8bDhb3h5A==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.52.3.tgz", + "integrity": "sha512-u9Xg2FavYbD30g3DSfNhxgNrxhi6xVG4Y6i9Ur1C7xUuGDW3banRbXj+qgnIrwRN4KeJ396jchwy9bCIzbyBEQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.52.3.tgz", + "integrity": "sha512-5M8kyi/OX96wtD5qJR89a/3x5x8x5inXBZO04JWhkQb2JWavOWfjgkdvUqibGJeNNaz1/Z1PPza5/tAPXICI6A==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.52.3.tgz", + "integrity": "sha512-IoerZJ4l1wRMopEHRKOO16e04iXRDyZFZnNZKrWeNquh5d6bucjezgd+OxG03mOMTnS1x7hilzb3uURPkJ0OfA==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.52.3.tgz", + "integrity": "sha512-ZYdtqgHTDfvrJHSh3W22TvjWxwOgc3ThK/XjgcNGP2DIwFIPeAPNsQxrJO5XqleSlgDux2VAoWQ5iJrtaC1TbA==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.52.3.tgz", + "integrity": "sha512-NcViG7A0YtuFDA6xWSgmFb6iPFzHlf5vcqb2p0lGEbT+gjrEEz8nC/EeDHvx6mnGXnGCC1SeVV+8u+smj0CeGQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.52.3.tgz", + "integrity": "sha512-d3pY7LWno6SYNXRm6Ebsq0DJGoiLXTb83AIPCXl9fmtIQs/rXoS8SJxxUNtFbJ5MiOvs+7y34np77+9l4nfFMw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.3.tgz", + "integrity": "sha512-3y5GA0JkBuirLqmjwAKwB0keDlI6JfGYduMlJD/Rl7fvb4Ni8iKdQs1eiunMZJhwDWdCvrcqXRY++VEBbvk6Eg==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.3.tgz", + "integrity": "sha512-AUUH65a0p3Q0Yfm5oD2KVgzTKgwPyp9DSXc3UA7DtxhEb/WSPfbG4wqXeSN62OG5gSo18em4xv6dbfcUGXcagw==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.3.tgz", + "integrity": "sha512-1makPhFFVBqZE+XFg3Dkq+IkQ7JvmUrwwqaYBL2CE+ZpxPaqkGaiWFEWVGyvTwZace6WLJHwjVh/+CXbKDGPmg==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.3.tgz", + "integrity": "sha512-OOFJa28dxfl8kLOPMUOQBCO6z3X2SAfzIE276fwT52uXDWUS178KWq0pL7d6p1kz7pkzA0yQwtqL0dEPoVcRWg==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.3.tgz", + "integrity": "sha512-jMdsML2VI5l+V7cKfZx3ak+SLlJ8fKvLJ0Eoa4b9/vCUrzXKgoKxvHqvJ/mkWhFiyp88nCkM5S2v6nIwRtPcgg==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.3.tgz", + "integrity": "sha512-tPgGd6bY2M2LJTA1uGq8fkSPK8ZLYjDjY+ZLK9WHncCnfIz29LIXIqUgzCR0hIefzy6Hpbe8Th5WOSwTM8E7LA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.3.tgz", + "integrity": "sha512-BCFkJjgk+WFzP+tcSMXq77ymAPIxsX9lFJWs+2JzuZTLtksJ2o5hvgTdIcZ5+oKzUDMwI0PfWzRBYAydAHF2Mw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.3.tgz", + "integrity": "sha512-KTD/EqjZF3yvRaWUJdD1cW+IQBk4fbQaHYJUmP8N4XoKFZilVL8cobFSTDnjTtxWJQ3JYaMgF4nObY/+nYkumA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.3.tgz", + "integrity": "sha512-+zteHZdoUYLkyYKObGHieibUFLbttX2r+58l27XZauq0tcWYYuKUwY2wjeCN9oK1Um2YgH2ibd6cnX/wFD7DuA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.3.tgz", + "integrity": "sha512-of1iHkTQSo3kr6dTIRX6t81uj/c/b15HXVsPcEElN5sS859qHrOepM5p9G41Hah+CTqSh2r8Bm56dL2z9UQQ7g==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.3.tgz", + "integrity": "sha512-s0hybmlHb56mWVZQj8ra9048/WZTPLILKxcvcq+8awSZmyiSUZjjem1AhU3Tf4ZKpYhK4mg36HtHDOe8QJS5PQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.52.3.tgz", + "integrity": "sha512-zGIbEVVXVtauFgl3MRwGWEN36P5ZGenHRMgNw88X5wEhEBpq0XrMEZwOn07+ICrwM17XO5xfMZqh0OldCH5VTA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "license": "MIT" + }, + "node_modules/@types/resolve": { + "version": "1.20.2", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz", + "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==", + "license": "MIT" + }, + "node_modules/bpmn-js": { + "version": "18.7.0", + "resolved": "https://registry.npmjs.org/bpmn-js/-/bpmn-js-18.7.0.tgz", + "integrity": "sha512-i4Xkcc5oJajTvsZv6Tmam3Tu4iB1AI4ARq4jGx5KaoJpDl11Qw8O5IurCw3u86Vrhe+a8EmXs1ibs4/oIwlAfg==", + "license": "SEE LICENSE IN LICENSE", + "dependencies": { + "bpmn-moddle": "^9.0.4", + "diagram-js": "^15.4.0", + "diagram-js-direct-editing": "^3.2.0", + "ids": "^1.0.5", + "inherits-browser": "^0.1.0", + "min-dash": "^4.1.1", + "min-dom": "^4.2.1", + "tiny-svg": "^3.1.2" + }, + "engines": { + "node": "*" + } + }, + "node_modules/bpmn-js/node_modules/tiny-svg": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/tiny-svg/-/tiny-svg-3.1.3.tgz", + "integrity": "sha512-9mwnPqXInRsBmH/DO6NMxBE++9LsqpVXQSSTZGc5bomoKKvL5OX/Hlotw7XVXP6XLRcHWIzZpxfovGqWKgCypQ==", + "license": "MIT" + }, + "node_modules/bpmn-moddle": { + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/bpmn-moddle/-/bpmn-moddle-9.0.4.tgz", + "integrity": "sha512-dr5s3vtOG8NkVSwa8CC55XBIKKwajomSZRb0RiMOOOF6TpqZBZvtbDjpzWICvdd/plDF6uOtaRfSgblPQLAioQ==", + "license": "MIT", + "dependencies": { + "min-dash": "^4.2.1", + "moddle": "^7.0.0", + "moddle-xml": "^11.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "license": "MIT" + }, + "node_modules/component-event": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/component-event/-/component-event-0.2.1.tgz", + "integrity": "sha512-wGA++isMqiDq1jPYeyv2as/Bt/u+3iLW0rEa+8NQ82jAv3TgqMiCM+B2SaBdn2DfLilLjjq736YcezihRYhfxw==", + "license": "MIT" + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/diagram-js": { + "version": "15.4.0", + "resolved": "https://registry.npmjs.org/diagram-js/-/diagram-js-15.4.0.tgz", + "integrity": "sha512-rpwDLA/w55wPfiZgp/z2T6cFdCXU3bARGdjhUpEOoh673K18OJ4ruEu3+/94ALRIIyEvJ0XHUk9sgZrzzE79ng==", + "license": "MIT", + "dependencies": { + "@bpmn-io/diagram-js-ui": "^0.2.3", + "clsx": "^2.1.0", + "didi": "^10.2.2", + "inherits-browser": "^0.1.0", + "min-dash": "^4.1.0", + "min-dom": "^4.2.1", + "object-refs": "^0.4.0", + "path-intersection": "^3.0.0", + "tiny-svg": "^3.1.2" + }, + "engines": { + "node": "*" + } + }, + "node_modules/diagram-js-direct-editing": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/diagram-js-direct-editing/-/diagram-js-direct-editing-3.2.0.tgz", + "integrity": "sha512-+pyxeQGBSdLiZX0/tmmsm2qZSvm9YtVzod5W3RMHSTR7VrkUMD6E7EX/W9JQv3ebxO7oIdqFmytmNDDpSHnYEw==", + "license": "MIT", + "dependencies": { + "min-dash": "^4.0.0", + "min-dom": "^4.2.1" + }, + "engines": { + "node": "*" + }, + "peerDependencies": { + "diagram-js": "*" + } + }, + "node_modules/diagram-js/node_modules/tiny-svg": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/tiny-svg/-/tiny-svg-3.1.3.tgz", + "integrity": "sha512-9mwnPqXInRsBmH/DO6NMxBE++9LsqpVXQSSTZGc5bomoKKvL5OX/Hlotw7XVXP6XLRcHWIzZpxfovGqWKgCypQ==", + "license": "MIT" + }, + "node_modules/didi": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/didi/-/didi-10.2.2.tgz", + "integrity": "sha512-l8NYkYFXV1izHI65EyT8EXOjUZtKmQkHLTT89cSP7HU5J/G7AOj0dXKtLc04EXYlga99PBY18IPjOeZ+c3DI4w==", + "license": "MIT", + "engines": { + "node": ">= 16" + } + }, + "node_modules/domify": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/domify/-/domify-1.4.2.tgz", + "integrity": "sha512-m4yreHcUWHBncGVV7U+yQzc12vIlq0jMrtHZ5mW6dQMiL/7skSYNVX9wqKwOtyO9SGCgevrAFEgOCAHmamHTUA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/htm": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/htm/-/htm-3.1.1.tgz", + "integrity": "sha512-983Vyg8NwUE7JkZ6NmOqpCZ+sh1bKv2iYTlUkzlWmA5JD2acKoxd4KVxbMmxX/85mtfdnDmTFoNKcg5DGAvxNQ==", + "license": "Apache-2.0" + }, + "node_modules/ids": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/ids/-/ids-1.0.5.tgz", + "integrity": "sha512-XQ0yom/4KWTL29sLG+tyuycy7UmeaM/79GRtSJq6IG9cJGIPeBz5kwDCguie3TwxaMNIc3WtPi0cTa1XYHicpw==", + "license": "MIT" + }, + "node_modules/inherits-browser": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/inherits-browser/-/inherits-browser-0.1.0.tgz", + "integrity": "sha512-CJHHvW3jQ6q7lzsXPpapLdMx5hDpSF3FSh45pwsj6bKxJJ8Nl8v43i5yXnr3BdfOimGHKyniewQtnAIp3vyJJw==", + "license": "ISC" + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", + "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", + "license": "MIT" + }, + "node_modules/is-reference": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", + "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", + "license": "MIT", + "dependencies": { + "@types/estree": "*" + } + }, + "node_modules/magic-string": { + "version": "0.30.19", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.19.tgz", + "integrity": "sha512-2N21sPY9Ws53PZvsEpVtNuSW+ScYbQdp4b9qUaL+9QkHUrGFKo56Lg9Emg5s9V/qrtNBmiR01sYhUOwu3H+VOw==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/min-dash": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/min-dash/-/min-dash-4.2.3.tgz", + "integrity": "sha512-VLMYQI5+FcD9Ad24VcB08uA83B07OhueAlZ88jBK6PyupTvEJwllTMUqMy0wPGYs7pZUEtEEMWdHB63m3LtEcg==", + "license": "MIT" + }, + "node_modules/min-dom": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/min-dom/-/min-dom-4.2.1.tgz", + "integrity": "sha512-TMoL8SEEIhUWYgkj7XMSgxmwSyGI+4fP2KFFGnN3FbHfbGHVdsLYSz8LoIsgPhz4dWRmLvxWWSMgzZMJW5sZuA==", + "license": "MIT", + "dependencies": { + "component-event": "^0.2.1", + "domify": "^1.4.1", + "min-dash": "^4.2.1" + } + }, + "node_modules/moddle": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/moddle/-/moddle-7.2.0.tgz", + "integrity": "sha512-x1+JREThy7JBOBR3g2hbOnOfrlC/YAWXX9RzrSZS5HhqeuBly9H/PCtOBtcQs+Y2sjRAXF+WTNSgHvn8Uq+6Yw==", + "license": "MIT", + "dependencies": { + "min-dash": "^4.2.1" + } + }, + "node_modules/moddle-xml": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/moddle-xml/-/moddle-xml-11.0.0.tgz", + "integrity": "sha512-L3Sseepfcq9Uy0iIfqEDTXSoYLva1Y/JGbN/4AMOeQ6cqbu8Ma/SDJIdOFm7smsAa64j2z3SwCGG3FIilQVnUg==", + "license": "MIT", + "dependencies": { + "min-dash": "^4.0.0", + "saxen": "^10.0.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "moddle": ">= 6.2.0" + } + }, + "node_modules/object-refs": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/object-refs/-/object-refs-0.4.0.tgz", + "integrity": "sha512-6kJqKWryKZmtte6QYvouas0/EIJKPI1/MMIuRsiBlNuhIMfqYTggzX2F1AJ2+cDs288xyi9GL7FyasHINR98BQ==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/path-intersection": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/path-intersection/-/path-intersection-3.1.0.tgz", + "integrity": "sha512-3xS3lvv/vuwm5aH2BVvNRvnvwR2Drde7jQClKpCXTYXIMMjcw/EnMhzCgeHwqbCpzi760PEfAkU53vSIlrNr9A==", + "license": "MIT", + "engines": { + "node": ">= 14.20" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "license": "MIT" + }, + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/preact": { + "version": "10.27.2", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.27.2.tgz", + "integrity": "sha512-5SYSgFKSyhCbk6SrXyMpqjb5+MQBgfvEKE/OC+PujcY34sOpqtr+0AZQtPYx5IA6VxynQ7rUPCtKzyovpj9Bpg==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/preact" + } + }, + "node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/rollup": { + "version": "4.52.3", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.3.tgz", + "integrity": "sha512-RIDh866U8agLgiIcdpB+COKnlCreHJLfIhWC3LVflku5YHfpnsIKigRZeFfMfCc4dVcqNVfQQ5gO/afOck064A==", + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.52.3", + "@rollup/rollup-android-arm64": "4.52.3", + "@rollup/rollup-darwin-arm64": "4.52.3", + "@rollup/rollup-darwin-x64": "4.52.3", + "@rollup/rollup-freebsd-arm64": "4.52.3", + "@rollup/rollup-freebsd-x64": "4.52.3", + "@rollup/rollup-linux-arm-gnueabihf": "4.52.3", + "@rollup/rollup-linux-arm-musleabihf": "4.52.3", + "@rollup/rollup-linux-arm64-gnu": "4.52.3", + "@rollup/rollup-linux-arm64-musl": "4.52.3", + "@rollup/rollup-linux-loong64-gnu": "4.52.3", + "@rollup/rollup-linux-ppc64-gnu": "4.52.3", + "@rollup/rollup-linux-riscv64-gnu": "4.52.3", + "@rollup/rollup-linux-riscv64-musl": "4.52.3", + "@rollup/rollup-linux-s390x-gnu": "4.52.3", + "@rollup/rollup-linux-x64-gnu": "4.52.3", + "@rollup/rollup-linux-x64-musl": "4.52.3", + "@rollup/rollup-openharmony-arm64": "4.52.3", + "@rollup/rollup-win32-arm64-msvc": "4.52.3", + "@rollup/rollup-win32-ia32-msvc": "4.52.3", + "@rollup/rollup-win32-x64-gnu": "4.52.3", + "@rollup/rollup-win32-x64-msvc": "4.52.3", + "fsevents": "~2.3.2" + } + }, + "node_modules/saxen": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/saxen/-/saxen-10.0.0.tgz", + "integrity": "sha512-RXsmWok/SAWqOG/f5ADEz51DN9WtZEzqih3e08ranldcaXekxjx8NBKjGh/y5hlowjo0JH/LekBu6gtPFD1G6g==", + "license": "MIT", + "engines": { + "node": ">= 18" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tiny-svg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/tiny-svg/-/tiny-svg-4.1.3.tgz", + "integrity": "sha512-OPXLrGkpdRxLBPV7RXkR9zFx6Zx5vXpHFnenaNhrLQbHxTdoU0T91nwFbIrAMiLr+XSpjt8S73qF7U9MP/Jhjg==", + "license": "MIT", + "engines": { + "node": ">= 16" + } + } + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/package.json b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/package.json new file mode 100644 index 0000000000000000000000000000000000000000..64bf32e55a16945d9e589d21421fae10b2ce63b6 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/package.json @@ -0,0 +1,32 @@ +{ + "name": "cockpit-bpmn-js-module-bundled", + "version": "0.0.1", + "description": "bundle a custom bpmn-js module to be used in cockpit", + "main": "index.js", + "scripts": { + "bundle": "rollup --config", + "start": "npm run bundle" + }, + "type": "module", + "repository": { + "type": "git", + "url": "git+https://github.com/camunda/camunda-bpm-examples.git" + }, + "keywords": [ + "bpmn-js" + ], + "author": "MaxTru", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/camunda/camunda-bpm-examples/issues" + }, + "homepage": "https://github.com/camunda/camunda-bpm-examples/tree/master/cockpit/cockpit-bpmn-js-module-bundled", + "dependencies": { + "@rollup/plugin-commonjs": "~28.0.3", + "@rollup/plugin-node-resolve": "~16.0.1", + "bpmn-js": "^18.7.0", + "diagram-js": "^15.4.0", + "rollup": "^4.52.3", + "tiny-svg": "^4.1.3" + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/rollup.config.js b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/rollup.config.js new file mode 100644 index 0000000000000000000000000000000000000000..d592d7e8cb1eb67f58cbca620d689df59ff13f17 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/rollup.config.js @@ -0,0 +1,27 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import resolve from "@rollup/plugin-node-resolve"; +import commonjs from "@rollup/plugin-commonjs"; + +export default { + input: "custom-renderer/index.js", + output: { + file: "dist/custom-renderer-module-bundled.js" + }, + plugins: [resolve(), commonjs()] +}; diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/screenshot.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..28aaa55a3dbb834ab693a6323d0b3f1788a6c5f8 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module-bundled/screenshot.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c46d3755bd951407dec762fdc2f58460afdfd3506cb1feeba0fbc7d128a8ec5a +size 176213 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module/README.md new file mode 100644 index 0000000000000000000000000000000000000000..255f22c5501a5ebb08fab4df787cd65122421f60 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-bpmn-js-module/README.md @@ -0,0 +1,6 @@ +bpmn.js Cockpit module +====================== + +This example is not actively maintained anymore. You can refer to the [example with fixed version of Camunda 7.18](https://github.com/camunda/camunda-bpm-examples/blob/7.18/cockpit/cockpit-bpmn-js-module). +Due to Camunda Platform 7 backward compatibility, the examples usually still work with later versions. However, you +might need to adjust them to make them work. \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-cats/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-cats/README.md new file mode 100644 index 0000000000000000000000000000000000000000..bea225f542ef4b2316c0dfbd81036dc70a60ffa1 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-cats/README.md @@ -0,0 +1,6 @@ +"Cats" Cockpit Plugin +===================== + +This example is not actively maintained anymore. You can refer to the [example with fixed version of Camunda 7.18](https://github.com/camunda/camunda-bpm-examples/blob/7.18/cockpit/cockpit-cats). +Due to Camunda Platform 7 backward compatibility, the examples usually still work with later versions. However, you +might need to adjust them to make them work. \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-diagram-interactions/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-diagram-interactions/README.md new file mode 100644 index 0000000000000000000000000000000000000000..4030e22122409d38bca0e40dfd482be4b5c8da9d --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-diagram-interactions/README.md @@ -0,0 +1,60 @@ +"Diagram interactions" Cockpit Plugin +===================================== + +This example shows how you can achieve diagram interactions with custom plugins. +Click on an activity in the BPMN diagram to apply a filter to the table. + +Built and tested against Camunda Platform version `7.24.0`. + +![Screenshot](screenshot.png) + + +Diagram Interaction +------------------- + +To achieve diagram interaction, we will use 2 plugins scoped in one module. +The first plugin registers at `cockpit.processDefinition.diagram.plugin` or another diagram plugin point and registers a listener on the viewer event bus. With the dispatched event we can call our own functions: +```javascript +render: viewer => { + viewer.get("eventBus").on("element.click", event => { + if (event.element.type.includes("Task")) { + cb(event.element); + } + // ... + }); +} +``` + +In the second plugin, we can create a callback function which the diagram plugin calls. In this example, we will apply a filter to a table depending on what task was clicked on. + +```javascript + render: (node, { processDefinitionId }) => { + // ... + cb = el => { + getUsertasks(el.id); + }; + } +``` + +Integrate into Camunda Webapp +----------------------------- + +Copy the `plugin.js` file into the `app/cockpit/scripts/` folder in your Camunda webapp distribution. +For the Tomcat distribution, this would be `server/apache-tomcat-X.X.XX/webapps/camunda/app/cockpit/scripts/`. + +Add the following content to the `app/cockpit/scripts/config.js` file: + +``` +// … + customScripts: [ + 'scripts/plugin.js' + ] +// … +``` + +After that start the server, login to Cockpit and navigate to the process definition view to check the result. + +License +------- + +Use under terms of the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-diagram-interactions/plugin.js b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-diagram-interactions/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..78faffaed5bc0c30be12442b5886d1b634736c92 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-diagram-interactions/plugin.js @@ -0,0 +1,119 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +const renderTable = async (operationMap, node) => { + if (!Object.keys(operationMap).length) { + node.innerHTML = "No open Tasks"; + return; + } + + const table = document.createElement("table"); + table.style = "table-layout: fixed; width: 100%;"; + table.createTHead().innerHTML = ` + User + Activity ID + Open Task Count`; + + const body = table.createTBody(); + + for (const [user, tasks] of Object.entries(operationMap)) { + for (const [task, count] of Object.entries(tasks)) { + const row = document.createElement("tr"); + const userCol = document.createElement("td"); + const taskCol = document.createElement("td"); + const countCol = document.createElement("td"); + + userCol.innerText = user; + taskCol.innerText = task; + countCol.innerText = count; + + row.appendChild(userCol); + row.appendChild(taskCol); + row.appendChild(countCol); + body.appendChild(row); + } + } + + node.innerHTML = ""; + node.appendChild(table); +}; + +let cb = el => console.error("No callback defined: ", el); + +const diagramPlugin = { + id: "diagramPlugin", + pluginPoint: "cockpit.processDefinition.diagram.plugin", + priority: 5, + render: viewer => { + viewer.get("eventBus").on("element.click", event => { + if (event.element.type.includes("Task")) { + cb(event.element); + } else { + cb(false); + } + }); + } +}; + +const tabPlugin = { + id: "tabPlugin", + pluginPoint: "cockpit.processDefinition.runtime.tab", + priority: 5, + render: (node, { processDefinitionId, api }) => { + async function getUsertasks(taskId) { + const apiUrl = api.engineApi; + let result; + + if (taskId) { + result = await fetch( + `${apiUrl}/task?processDefinitionId=${processDefinitionId}&taskDefinitionKey=${taskId}&maxResults=500` + ); + } else { + result = await fetch( + `${apiUrl}/task?processDefinitionId=${processDefinitionId}&maxResults=500` + ); + } + + const json = await result.json(); + const operationMap = {}; + json.forEach(task => { + const assignee = task.assignee || "unassigned"; + const operationPerUser = operationMap[assignee] || {}; + operationPerUser[task.taskDefinitionKey] = + operationPerUser[task.taskDefinitionKey] || 0; + operationPerUser[task.taskDefinitionKey]++; + operationMap[assignee] = operationPerUser; + }); + + renderTable(operationMap, node); + } + + getUsertasks(); + + cb = el => { + getUsertasks(el.id); + }; + }, + unmount: () => { + cb = () => {}; + }, + properties: { + label: "Open User Tasks" + } +}; + +export default [tabPlugin, diagramPlugin]; diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-diagram-interactions/screenshot.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-diagram-interactions/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..6db8edb1a4a82e531a760b2f94c6d952157dd0e2 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-diagram-interactions/screenshot.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce84f807d6c8926acc31f89e7e0a45f99ae7a7f6b283c1379564d8c24e2f44ea +size 382136 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/.gitignore b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..733e2e89575cd65c6c0bfa52d6c13ded2863232e --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/.gitignore @@ -0,0 +1,4 @@ +target +frontend/dist +frontend/node +frontend/node_modules \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/README.md new file mode 100644 index 0000000000000000000000000000000000000000..708d7f821f473a0cae947a5a6d539a8ec76f2e7e --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/README.md @@ -0,0 +1,510 @@ +Fullstack (ReactJS & Java) "Count Processes" Cockpit Plugin +=========================================================== + +This is a simple plugin that showcases the plugin system of Cockpit, the process monitoring tool of [Camunda Platform](http://docs.camunda.org). + +Built and tested against Camunda Platform version `7.24.0`. +This example uses Jakarta API. It is compatible with the latest releases of Camunda Tomcat and WildFly distributions. + +![Screenshot](screenshot.png) + +> Note: If you need please take a look at the [Cockpit Plug-ins](https://docs.camunda.org/manual/7.24/webapps/cockpit/extend/plugins/) for the basics first. + +# Table of contents + +1. [Integrate into Camunda Platform Webapp](#integrate-into-camunda-bpm-webapp) +2. [Server Side](#server-side) + 1. [Plug-in Archive](#plug-in-archive) + 2. [Plug-in Main Class](#plug-in-main-class) + * [Testing Plug-in Discovery](#testing-plug-in-discovery) + 3. [Custom Query](#custom-query) + * [Testing Queries](#testing-queries) + 4. [Defining and Publishing Plug-in Services](#defining-and-publishing-plug-in-services) + * [Use Tenant Check](#use-tenant-check) + * [Testing JAX-RS Resources](#testing-jax-rs-resources) +3. [Client Side](#client-side) + 1. [Static Plugin Assets](#static-plugin-assets) + * [Testing Assets](#testing-assets) + 2. [Integration into Cockpit](#integration-into-cockpit) + 3. [plugin.js Main File](#pluginjs-main-file) + 4. [HTML View](#html-view) +4. [Summary](#summary) + +## Integrate into Camunda Platform Webapp + +1. Build this demo: `mvn clean install` +2. There are two ways to add your plugin to the Camunda Platform webapp. + + 1. You can copy `./target/cockpit-sample-plugin-1.0-SNAPSHOT.jar` to the `WEB-INF/lib` folder of the Camunda webapp. + 2. You can set up a maven war overlay for the Camunda webapp. + + The first solution is the simplest: if you downloaded the tomcat distribution, you can copy the plugin + jar file to the `/server/apache-tomcat-${tomcat-version}/webapps/camunda/WEB-INF/lib/` folder and + restart the server. + +## Server Side + +We will walk through the important aspects of developing the server-side parts of the plug-in, i.e., creating a plug-in jar, defining a custom query and exposing that query via a JAX-RS resource. + +### Plug-in Archive + +As a first step we create a maven jar project that represents our plug-in library. Inside the projects `pom.xml` we must declare a dependency to the Camunda webapp with the maven coordinates `org.camunda.bpm.webapp:camunda-webapp`. The project contains all the infrastructure necessary to create and test the server-side parts of a plug-in. + +```xml + + 4.0.0 + + org.camunda.bpm.cockpit.plugin + cockpit-sample-plugin + 1.0-SNAPSHOT + jar + + cockpit-sample-plugin + + + org.camunda.bpm.webapp + camunda-webapp + classes + ${camunda.version} + + + + junit + junit + ${junit.version} + test + + + +``` + +### Plug-in Main Class + +The main entry point for a plug-in is the service provider interface (SPI) `org.camunda.bpm.cockpit.plugin.spi.CockpitPlugin`. Each plug-in must provide an implementation of this class and register it via `META-INF/services`. + +We will go ahead and create an implementation of that API called `SampleCockpitPlugin`. + +```java +package org.camunda.bpm.cockpit.plugin.sample; + +import org.camunda.bpm.cockpit.plugin.spi.impl.AbstractCockpitPlugin; + +public class SamplePlugin extends AbstractCockpitPlugin { + + public static final String ID = "sample-plugin"; + + public String getId() { + return ID; + } +} +``` + +By inheriting from `org.camunda.bpm.cockpit.plugin.spi.impl.AbstractCockpitPlugin`, we ensure that the plug-in is initialized with reasonable defaults. + +To register the plug-in with Cockpit, we must put its class name into a file called `org.camunda.bpm.cockpit.plugin.spi.CockpitPlugin` that resides in the directory `META-INF/services`. That will publish the plug-in via the Java [ServiceLoader facilities](http://docs.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html). + + +#### Testing Plug-in Discovery + +Now let's go ahead and write a test case that makes sure the plug-in gets discovered properly. Before we do so, we need to add test dependencies to our project `pom.xml`. + +```xml + + ... + + + + org.camunda.bpm + camunda-engine + ${camunda.version} + test + + + com.h2database + h2 + ${h2.version} + test + + + junit + junit + ${junit.version} + test + + ... +``` + +The next step consists of wiring the Camunda webapp and the process engine. To do this, we need to create a Service Provider that implements the interface `ProcessEngineProvider` and declare it in a file called `org.camunda.bpm.engine.rest.spi.ProcessEngineProvider` that resides in the directory `src/test/resources/META-INF/services/`. The file should contain the following content: + +```java +org.camunda.bpm.cockpit.plugin.test.application.TestProcessEngineProvider +``` + +The `TestProcessEngineProvider` is provided with the Camunda webapp core, uses the methods of the class `org.camunda.bpm.BpmPlatform` and exposes the default process engine. + +The class `org.camunda.bpm.cockpit.plugin.test.AbstractCockpitPluginTest` can work as a basis for Cockpit plugin tests. It initializes the Cockpit environment around each test and bootstraps a single process engine that is made available to Cockpit and the plug-in. + +A first test may look as follows: + +```java +package org.camunda.bpm.cockpit.plugin.sample; + +import org.camunda.bpm.cockpit.Cockpit; +import org.camunda.bpm.cockpit.plugin.spi.CockpitPlugin; +import org.camunda.bpm.cockpit.plugin.test.AbstractCockpitPluginTest; +import org.junit.Assert; +import org.junit.Test; + +public class SamplePluginsTest extends AbstractCockpitPluginTest { + + @Test + public void testPluginDiscovery() { + CockpitPlugin samplePlugin = Cockpit.getRuntimeDelegate().getPluginRegistry().getPlugin("sample-plugin"); + + Assert.assertNotNull(samplePlugin); + } +} +``` + +In the test `#testPluginDiscovery` we use the internal Cockpit API to check if the plug-in was recognized. + +Before we can actually run the test, we need to create a `camunda.cfg.xml` to be present on the class path (usually under `src/test/resources`). That file configures the process engine to be bootstrapped. + +Let's ahead and create the file with the following content: + +```xml + + + + + + + + + + + + + + + + + + + + + +``` + +### Custom Query + +The plug-in mechanism allows us to provide additional SQL queries that may be run against the process engine database. Those queries must be defined via MyBatis mapping files. + +To implement a custom query, we will create a file `sample.xml` in the directory `org/camunda/bpm/cockpit/plugin/sample/queries` with the following content: + +```xml + + + + + + + + + + + + + + +``` + + both the usage of a custom namespace (`cockpit.sample`) as well as the result mapping to the plug-in provided class `org.camunda.bpm.cockpit.plugin.sample.db.ProcessInstanceCountDto`. + +We need to define the class to which the result is mapped: + +```java +package org.camunda.bpm.cockpit.plugin.sample.db; + +public class ProcessInstanceCountDto { + + private String key; + + private int instanceCount; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public int getInstanceCount() { + return instanceCount; + } + + public void setInstanceCount(int instanceCount) { + this.instanceCount = instanceCount; + } +} +``` + +Additionally, we need to publish the mapping file by overriding the method `#getMappingFiles()` in our plug-in class: + +```java +public class SamplePlugin extends AbstractCockpitPlugin { + + // ... + + @Override + public List getMappingFiles() { + return Arrays.asList("org/camunda/bpm/cockpit/plugin/sample/queries/sample.xml"); + } +} +``` + +#### Testing Queries + +To test that the plug-in defined query actually works, we extend our testcase. By using the Cockpit provided service `QueryService` we can verify that the query can be executed: + +```java +public class SamplePluginsTest extends AbstractCockpitPluginTest { + + // ... + + @Test + public void testSampleQueryWorks() { + + QueryService queryService = getQueryService(); + + List instanceCounts = + queryService + .executeQuery( + "cockpit.sample.selectProcessInstanceCountsByProcessDefinition", + new QueryParameters()); + + Assert.assertEquals(0, instanceCounts.size()); + } +} +``` + +Note that `#getQueryService()` is merely a shortcut to the service that may also be accessed via Cockpit's main entry point, the `org.camunda.bpm.cockpit.Cockpit` class. + +### Defining and Publishing Plug-in Services + +Plug-ins publish their services via APIs defined through JAX-RS resources. + +First, we need to add the JAX-RS API to our projects `pom.xml`. That is best done by including the following dependency: + +```xml + + ... + + + + org.jboss.spec + jboss-javaee-6.0 + pom + provided + ${jboss-javaee.version} + + ... +``` + +A server-side plug-in API consists of a root resource and a number of sub resources that are provided by the root resource. A root resource may inherit from `org.camunda.bpm.cockpit.plugin.resource.AbstractPluginRootResource` to receive some basic traits. It must publish itself on the path `plugin/$pluginName` via a `@Path` annotation. + +A root resource for our plug-in may look as follows: + +```java +package org.camunda.bpm.cockpit.plugin.sample.resources; + +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import org.camunda.bpm.cockpit.plugin.resource.AbstractCockpitPluginRootResource; +import org.camunda.bpm.cockpit.plugin.sample.SamplePlugin; + +@Path("plugin/" + SamplePlugin.ID) +public class SamplePluginRootResource extends AbstractPluginRootResource { + + public SamplePluginRootResource() { + super(SamplePlugin.ID); + } + + @Path("{engineName}/process-instance") + public ProcessInstanceResource getProcessInstanceResource(@PathParam("engineName") String engineName) { + return subResource(new ProcessInstanceResource(engineName), engineName); + } +} +``` + +Note that a sub resource gets initialized by the plug-in when requests to `{engineName}/process-instance` are being made. That ensures that a Cockpit service is multi-tenancy ready out of the box (i.e. capable to work with all process engines provided by the Camunda Platform). + +A sub-resource may extend `org.camunda.bpm.cockpit.plugin.resource.AbstractPluginResource` to get initialized with the correct process engine mappings. The resource shown below exposes our custom SQL query to the client when accessing the resource via `GET`. + +```java +package org.camunda.bpm.cockpit.plugin.sample.resources; + +import java.util.List; +import jakarta.ws.rs.GET; + +import org.camunda.bpm.cockpit.db.QueryParameters; +import org.camunda.bpm.cockpit.plugin.resource.AbstractPluginResource; +import org.camunda.bpm.cockpit.plugin.sample.db.ProcessInstanceCountDto; + +public class ProcessInstanceResource extends AbstractPluginResource { + + public ProcessInstanceResource(String engineName) { + super(engineName); + } + + @GET + public List getProcessInstanceCounts() { + + return getQueryService() + .executeQuery( + "cockpit.sample.selectProcessInstanceCountsByProcessDefinition", + new QueryParameters()); + } +} +``` + +To include plug-in resources into the Cockpit application those resources must be published in the main plug-in file by overriding `#getResourceClasses()`: + +```java +import org.camunda.bpm.cockpit.plugin.sample.SamplePlugin; + +public class SamplePlugin extends AbstractCockpitPlugin { + + // ... + + @Override + public Set> getResourceClasses() { + Set> classes = new HashSet>(); + + classes.add(SamplePluginRootResource.class); + + return classes; + } + + // ... +} +``` + +Given the above setup the resource class extends the Cockpit API with the following paths + +``` +GET $cockpit_api_root/plugin/sample/$engine/process-instance +``` + +#### Use Tenant Check + +It is possible to use the tenant check in the sub-resource of the cockpit plugin. Therefore, the sub-resource may extend `org.camunda.bpm.cockpit.plugin.resource.AbstractPluginResource` to configure the custom query with the tenant check. See the following example for the tenant check usage. + +```java +package org.camunda.bpm.cockpit.plugin.sample.resources; + +import java.util.List; +import jakarta.ws.rs.GET; + +import org.camunda.bpm.cockpit.db.QueryParameters; +import org.camunda.bpm.cockpit.plugin.resource.AbstractPluginResource; +import org.camunda.bpm.cockpit.plugin.sample.db.ProcessInstanceCountDto; + +public class ProcessInstanceResource extends AbstractPluginResource { + + public ProcessInstanceResource(String engineName) { + super(engineName); + } + + @GET + public List getProcessInstanceCounts() { + QueryParameters queryParameters = new QueryParameters(); + + configureTenantCheck(queryParameters); + + return getQueryService() + .executeQuery( + "cockpit.sample.selectProcessInstanceCountsByProcessDefinition", queryParameters); + } +} +``` + +Additionally, it is necessary to include the tenant check query to the custom query XML file. For it, add the following line to the custom query. + +```xml + +``` + +#### Testing JAX-RS Resources + +To test your JAX-RS resources you can instantiate them directly during a plug-in test case. Alternatively, you can write a real API test using [arquillian](http://arquillian.org/). + +Now we are done with the server-side parts of the plug-in. Next, we will go ahead and write the client-side extension that exposes the functionality to the user. + +## Client Side + + +>This section only provides a short overview of the client-side plug-in mechanism in Cockpit. +>Consider reading about the [Structure of a Frontend Module](https://docs.camunda.org/manual/7.24/webapps/cockpit/extend/plugins/#structure-of-a-frontend-module) if you are interested in more details. + + +The client-side part of a Cockpit plug-in consists of an extension to the Cockpit webapp client application. It is served through the plug-in serverside extension as a static plug-in asset. + +### Static Plugin Assets + +When using `AbstractPluginRootResource` as the plug-in resources base class, serving static assets is already built in. The root resource accepts a `GET` request under `/static` to serve plug-in-provided client-side resources. Per convention, these resources must reside in a `/plugin-webapp/$plugin_id` directory absolute to the classpath root. + +So, let's create a file `plugin-webapp/$plugin_id/info.txt` in the `src/main/resources` directory of our project. We can give it the following content (optional): + +``` +FOO BAR +``` + +#### Testing Assets + +To test that the assets are served, we can either implement a test case or test the matter manually after we integrated the plug-in into the Cockpit webapp. + +### plugin.js Main File + +Each plug-in must contain a file `app/plugin.js` in the plug-ins assets directory (i.e., `plugin-webapp/$plugin_id`). That file bootstraps the client-side plug-in and registers it with Cockpit. To do so it must declare and export a default module. + +Without going too deeply into detail, our plugins `plugin.js` may look like this: + +```javascript +//... +export default { + id: "process-instance-count", + pluginPoint: "cockpit.dashboard", + render: node => { + // render plugin + }, + unmount: () => { + // unmount plugin + }, + + // make sure we have a higher priority than the default plugin + priority: 12, +}; +``` + +The file defines a plugin with the id `process-instance-count` which is automatically registered at the plugin point `cockpit.dashboard`. + +When deploying the extended Camunda webapplication on the Camunda Platform, we can see the plug-in in action. + +## Summary + +You made it! In this example we walked through all important steps required to build a Cockpit plug-in, from creating a plug-in skeleton through defining server-side plug-in parts up to implementing the client-side portions of the plug-in. + +# License + +Use under terms of the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) + +[1]: https://github.com/camunda/camunda-bpm-platform/tree/master/webapps diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/.babelrc b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/.babelrc new file mode 100644 index 0000000000000000000000000000000000000000..652def2ff81b9601ac68f7cc126684bbfe52eb1e --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/.babelrc @@ -0,0 +1,5 @@ +{ + "presets": ["@babel/preset-env", "@babel/preset-react"], + "exclude": "node_modules/**", + "plugins": ["@babel/plugin-transform-runtime"] +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/package-lock.json b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/package-lock.json new file mode 100644 index 0000000000000000000000000000000000000000..a7f66ae80c0f4651e643aae713a8a713599d230f --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/package-lock.json @@ -0,0 +1,3262 @@ +{ + "name": "camunda-cockpit-sample-plugin", + "version": "0.0.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "camunda-cockpit-sample-plugin", + "version": "0.0.1", + "dependencies": { + "@babel/runtime": "^7.28.4", + "react": "~18.3.1", + "react-dom": "~18.3.1" + }, + "devDependencies": { + "@babel/core": "~7.25.2", + "@babel/plugin-transform-runtime": "~7.25.4", + "@babel/preset-env": "~7.25.4", + "@babel/preset-react": "~7.24.7", + "@rollup/plugin-babel": "~6.0.4", + "@rollup/plugin-commonjs": "~28.0.0", + "@rollup/plugin-node-resolve": "~15.3.0", + "@rollup/plugin-replace": "~6.0.1", + "rollup": "~4.23.0", + "rollup-plugin-scss": "~4.0.0", + "sass": "^1.93.2" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.4.tgz", + "integrity": "sha512-YsmSKC29MJwf0gF8Rjjrg5LQCmyh+j/nD8/eP7f+BeoQTKYqs9RoWbjGOdy0+1Ekr68RJZMUOPVQaQisnIo4Rw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.9.tgz", + "integrity": "sha512-WYvQviPw+Qyib0v92AwNIrdLISTp7RfDkM7bPqBvpbnhY4wq8HvHBZREVdYDXk98C8BkOIVnHAY3yvj7AVISxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.25.9", + "@babel/generator": "^7.25.9", + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-module-transforms": "^7.25.9", + "@babel/helpers": "^7.25.9", + "@babel/parser": "^7.25.9", + "@babel/template": "^7.25.9", + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.3.tgz", + "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.3", + "@babel/types": "^7.28.2", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.27.3", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz", + "integrity": "sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.27.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", + "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.27.2", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.28.3.tgz", + "integrity": "sha512-V9f6ZFIYSLNEbuGA/92uOvYsGCJNsuA8ESZ4ldc09bWk/j8H8TKiPw8Mk1eG6olpnO0ALHJmYfZvF4MEE4gajg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-member-expression-to-functions": "^7.27.1", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/helper-replace-supers": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/traverse": "^7.28.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.27.1.tgz", + "integrity": "sha512-uVDC72XVf8UbrH5qQTc18Agb8emwjTiZrQE11Nv3CuBEZmVvTwwE9CBUEvHku06gQCAyYf8Nv6ja1IN+6LMbxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.1", + "regexpu-core": "^6.2.0", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.5.tgz", + "integrity": "sha512-uJnGFcPsWQK8fvjgGP5LZUZZsYGIoPeRjSF5PGwrelYgq7Q15/Ft9NGFp1zglwgIv//W0uG4BevRuSJRyylZPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-plugin-utils": "^7.27.1", + "debug": "^4.4.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.22.10" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.27.1.tgz", + "integrity": "sha512-E5chM8eWjTp/aNoVpcbfM7mLxu9XGLWYise2eBKGQomAk/Mb4XoxyqXTZbuTohbsl8EKqdlMhnDI2CCLfcs9wA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", + "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.28.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.27.1.tgz", + "integrity": "sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", + "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.27.1.tgz", + "integrity": "sha512-7fiA521aVw8lSPeI4ZOD3vRFkoqkJcS+z4hFo82bFSH/2tNd6eJ5qCVMS5OzDmZh/kaHQeBaeyxK6wljcPtveA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-wrap-function": "^7.27.1", + "@babel/traverse": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.27.1.tgz", + "integrity": "sha512-7EHz6qDZc8RYS5ElPoShMheWvEgERonFCs7IAonWLLUTXW59DP14bCZt89/GKyreYn8g3S83m21FelHKbeDCKA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-member-expression-to-functions": "^7.27.1", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/traverse": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.27.1.tgz", + "integrity": "sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.28.3.tgz", + "integrity": "sha512-zdf983tNfLZFletc0RRXYrHrucBEg95NIFMkn6K9dbeMYnsgHaSBGcQqdsCSStG2PYwRre0Qc2NNSCXbG+xc6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.3", + "@babel/types": "^7.28.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz", + "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.4.tgz", + "integrity": "sha512-yZbBqeM6TkpP9du/I2pUZnJsRMGGvOuIrhjzC1AwHwW+6he4mni6Bp/m8ijn0iOuZuPI2BfkCoSRunpyjnrQKg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.4" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.27.1.tgz", + "integrity": "sha512-QPG3C9cCVRQLxAVwmefEmwdTanECuUBMQZ/ym5kiw3XKCGA7qkuQLcjWWHcrD/GKbn/WmJwaezfuuAOcyKlRPA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.27.1.tgz", + "integrity": "sha512-qNeq3bCKnGgLkEXUuFry6dPlGfCdQNZbn7yUAPCInwAJHMU7THJfrBSozkcWq5sNM6RcF3S8XyQL2A52KNR9IA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.27.1.tgz", + "integrity": "sha512-g4L7OYun04N1WyqMNjldFwlfPCLVkgB54A/YCXICZYBsvJJE3kByKv9c9+R/nAfmIfjl2rKYLNyMHboYbZaWaA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.27.1.tgz", + "integrity": "sha512-oO02gcONcD5O1iTLi/6frMJBIwWEHceWGSGqrpCmEL8nogiS6J9PBlE48CaK20/Jx1LuRml9aDftLgdjXT8+Cw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/plugin-transform-optional-chaining": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.28.3.tgz", + "integrity": "sha512-b6YTX108evsvE4YgWyQ921ZAFFQm3Bn+CA3+ZXlNVnPhx+UfsVURoPjfGAPCjBgrqo30yX/C2nZGX96DxvR9Iw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.28.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.27.1.tgz", + "integrity": "sha512-UT/Jrhw57xg4ILHLFnzFpPDlMbcdEicaAtjPQpbj9wa8T4r5KVWCimHcL/460g8Ht0DMxDyjsLgiWSkVjnwPFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", + "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", + "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.27.1.tgz", + "integrity": "sha512-8Z4TGic6xW70FKThA5HYEKKyBpOOsucTOD1DjU3fZxDg+K3zBJcXMFnt/4yQiZnf5+MiOMSXQ9PaEK/Ilh1DeA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.28.0.tgz", + "integrity": "sha512-BEOdvX4+M765icNPZeidyADIvQ1m1gmunXufXxvRESy/jNNyfovIqUyE7MVgGBjWktCoJlzvFA1To2O4ymIO3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-remap-async-to-generator": "^7.27.1", + "@babel/traverse": "^7.28.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.27.1.tgz", + "integrity": "sha512-NREkZsZVJS4xmTr8qzE5y8AfIPqsdQfRuUiLRTEzb7Qii8iFWCyDKaUV2c0rCuh4ljDZ98ALHP/PetiBV2nddA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-remap-async-to-generator": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.27.1.tgz", + "integrity": "sha512-cnqkuOtZLapWYZUYM5rVIdv1nXYuFVIltZ6ZJ7nIj585QsjKM5dhL2Fu/lICXZ1OyIAFc7Qy+bvDAtTXqGrlhg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.28.4.tgz", + "integrity": "sha512-1yxmvN0MJHOhPVmAsmoW5liWwoILobu/d/ShymZmj867bAdxGbehIrew1DuLpw2Ukv+qDSSPQdYW1dLNE7t11A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.27.1.tgz", + "integrity": "sha512-D0VcalChDMtuRvJIu3U/fwWjf8ZMykz5iZsg77Nuj821vCKI3zCyRLwRdWbsuJ/uRwZhZ002QtCqIkwC/ZkvbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.28.3.tgz", + "integrity": "sha512-LtPXlBbRoc4Njl/oh1CeD/3jC+atytbnf/UqLoqTDcEYGUPj022+rvfkbDYieUrSj3CaV4yHDByPE+T2HwfsJg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.28.3", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.28.4.tgz", + "integrity": "sha512-cFOlhIYPBv/iBoc+KS3M6et2XPtbT2HiCRfBXWtfpc9OAyostldxIf9YAYB6ypURBBbx+Qv6nyrLzASfJe+hBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-globals": "^7.28.0", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-replace-supers": "^7.27.1", + "@babel/traverse": "^7.28.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.27.1.tgz", + "integrity": "sha512-lj9PGWvMTVksbWiDT2tW68zGS/cyo4AkZ/QTp0sQT0mjPopCmrSkzxeXkznjqBxzDI6TclZhOJbBmbBLjuOZUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/template": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.28.0.tgz", + "integrity": "sha512-v1nrSMBiKcodhsyJ4Gf+Z0U/yawmJDBOTpEB3mcQY52r9RIyPneGyAS/yM6seP/8I+mWI3elOMtT5dB8GJVs+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.28.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.27.1.tgz", + "integrity": "sha512-gEbkDVGRvjj7+T1ivxrfgygpT7GUd4vmODtYpbs0gZATdkX8/iSnOtZSxiZnsgm1YjTgjI6VKBGSJJevkrclzw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.27.1.tgz", + "integrity": "sha512-MTyJk98sHvSs+cvZ4nOauwTTG1JeonDjSGvGGUNHreGQns+Mpt6WX/dVzWBHgg+dYZhkC4X+zTDfkTU+Vy9y7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.27.1.tgz", + "integrity": "sha512-hkGcueTEzuhB30B3eJCbCYeCaaEQOmQR0AdvzpD4LoN0GXMWzzGSuRrxR2xTnCrvNbVwK9N6/jQ92GSLfiZWoQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.27.1.tgz", + "integrity": "sha512-MHzkWQcEmjzzVW9j2q8LGjwGWpG2mjwaaB0BNQwst3FIjqsg8Ct/mIZlvSPJvfi9y2AC8mi/ktxbFVL9pZ1I4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.27.1.tgz", + "integrity": "sha512-uspvXnhHvGKf2r4VVtBpeFnuDWsJLQ6MF6lGJLC89jBR1uoVeqM416AZtTuhTezOfgHicpJQmoD5YUakO/YmXQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.27.1.tgz", + "integrity": "sha512-tQvHWSZ3/jH2xuq/vZDy0jNn+ZdXJeM8gHvX4lnJmsc3+50yPlWdZXIc5ay+umX+2/tJIqHqiEqcJvxlmIvRvQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.27.1.tgz", + "integrity": "sha512-BfbWFFEJFQzLCQ5N8VocnCtA8J1CLkNTe2Ms2wocj75dd6VpiqS5Z5quTYcUoo4Yq+DN0rtikODccuv7RU81sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.27.1.tgz", + "integrity": "sha512-1bQeydJF9Nr1eBCMMbC+hdwmRlsv5XYOMu03YSWFwNs0HsAmtSxxF1fyuYPqemVldVyFmlCU7w8UE14LupUSZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.27.1.tgz", + "integrity": "sha512-6WVLVJiTjqcQauBhn1LkICsR2H+zm62I3h9faTDKt1qP4jn2o72tSvqMwtGFKGTpojce0gJs+76eZ2uCHRZh0Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.27.1.tgz", + "integrity": "sha512-0HCFSepIpLTkLcsi86GG3mTUzxV5jpmbv97hTETW3yzrAij8aqlD36toB1D0daVFJM8NK6GvKO0gslVQmm+zZA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.27.1.tgz", + "integrity": "sha512-SJvDs5dXxiae4FbSL1aBJlG4wvl594N6YEVVn9e3JGulwioy6z3oPjx/sQBO3Y4NwUu5HNix6KJ3wBZoewcdbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.27.1.tgz", + "integrity": "sha512-hqoBX4dcZ1I33jCSWcXrP+1Ku7kdqXf1oeah7ooKOIiAdKQ+uqftgCFNOSzA5AMS2XIHEYeGFg4cKRCdpxzVOQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.27.1.tgz", + "integrity": "sha512-iCsytMg/N9/oFq6n+gFTvUYDZQOMK5kEdeYxmxt91fcJGycfxVP9CnrxoliM0oumFERba2i8ZtwRUCMhvP1LnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.27.1.tgz", + "integrity": "sha512-OJguuwlTYlN0gBZFRPqwOGNWssZjfIUdS7HMYtN8c1KmwpwHFBwTeFZrg9XZa+DFTitWOW5iTAG7tyCUPsCCyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.27.1.tgz", + "integrity": "sha512-w5N1XzsRbc0PQStASMksmUeqECuzKuTJer7kFagK8AXgpCMkeDMO5S+aaFb7A51ZYDF7XI34qsTX+fkHiIm5yA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.27.1.tgz", + "integrity": "sha512-iQBE/xC5BV1OxJbp6WG7jq9IWiD+xxlZhLrdwpPkTX3ydmXdvoCpyfJN7acaIBZaOqTfr76pgzqBJflNbeRK+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.27.1.tgz", + "integrity": "sha512-SstR5JYy8ddZvD6MhV0tM/j16Qds4mIpJTOd1Yu9J9pJjH93bxHECF7pgtc28XvkzTD6Pxcm/0Z73Hvk7kb3Ng==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.27.1.tgz", + "integrity": "sha512-f6PiYeqXQ05lYq3TIfIDu/MtliKUbNwkGApPUvyo6+tc7uaR4cPjPe7DFPr15Uyycg2lZU6btZ575CuQoYh7MQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.27.1.tgz", + "integrity": "sha512-aGZh6xMo6q9vq1JGcw58lZ1Z0+i0xB2x0XaauNIUXd6O1xXc3RwoWEBlsTQrY4KQ9Jf0s5rgD6SiNkaUdJegTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.27.1.tgz", + "integrity": "sha512-fdPKAcujuvEChxDBJ5c+0BTaS6revLV7CJL08e4m3de8qJfNIuCc2nc7XJYOjBoTMJeqSmwXJ0ypE14RCjLwaw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.28.4.tgz", + "integrity": "sha512-373KA2HQzKhQCYiRVIRr+3MjpCObqzDlyrM6u4I201wL8Mp2wHf7uB8GhDwis03k2ti8Zr65Zyyqs1xOxUF/Ew==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/plugin-transform-destructuring": "^7.28.0", + "@babel/plugin-transform-parameters": "^7.27.7", + "@babel/traverse": "^7.28.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.27.1.tgz", + "integrity": "sha512-SFy8S9plRPbIcxlJ8A6mT/CxFdJx/c04JEctz4jf8YZaVS2px34j7NXRrlGlHkN/M2gnpL37ZpGRGVFLd3l8Ng==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-replace-supers": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.27.1.tgz", + "integrity": "sha512-txEAEKzYrHEX4xSZN4kJ+OfKXFVSWKB2ZxM9dpcE3wT7smwkNmXo5ORRlVzMVdJbD+Q8ILTgSD7959uj+3Dm3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.27.1.tgz", + "integrity": "sha512-BQmKPPIuc8EkZgNKsv0X4bPmOoayeu4F1YCwx2/CfmDSXDbp7GnzlUH+/ul5VGfRg1AoFPsrIThlEBj2xb4CAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.27.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.27.7.tgz", + "integrity": "sha512-qBkYTYCb76RRxUM6CcZA5KRu8K4SM8ajzVeUgVdMVO9NN9uI/GaVmBg/WKJJGnNokV9SY8FxNOVWGXzqzUidBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.27.1.tgz", + "integrity": "sha512-10FVt+X55AjRAYI9BrdISN9/AQWHqldOeZDUoLyif1Kn05a56xVBXb8ZouL8pZ9jem8QpXaOt8TS7RHUIS+GPA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.27.1.tgz", + "integrity": "sha512-5J+IhqTi1XPa0DXF83jYOaARrX+41gOewWbkPyjMNRDqgOCqdffGh8L3f/Ek5utaEBZExjSAzcyjmV9SSAWObQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-create-class-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.27.1.tgz", + "integrity": "sha512-oThy3BCuCha8kDZ8ZkgOg2exvPYUlprMukKQXI1r1pJ47NCvxfkEy8vK+r/hT9nF0Aa4H1WUPZZjHTFtAhGfmQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-display-name": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.28.0.tgz", + "integrity": "sha512-D6Eujc2zMxKjfa4Zxl4GHMsmhKKZ9VpcqIchJLvwTxad9zWIYulwYItBovpDOoNLISpcZSXoDJ5gaGbQUDqViA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.27.1.tgz", + "integrity": "sha512-2KH4LWGSrJIkVf5tSiBFYuXDAoWRq2MMwgivCf+93dd0GQi8RXLjKA/0EvRnVV5G0hrHczsquXuD01L8s6dmBw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/plugin-syntax-jsx": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-development": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.27.1.tgz", + "integrity": "sha512-ykDdF5yI4f1WrAolLqeF3hmYU12j9ntLQl/AOG1HAS21jxyg1Q0/J/tpREuYLfatGdGmXp/3yS0ZA76kOlVq9Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/plugin-transform-react-jsx": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-pure-annotations": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.27.1.tgz", + "integrity": "sha512-JfuinvDOsD9FVMTHpzA/pBLisxpv1aSf+OIV8lgH3MuWrks19R27e6a6DipIg4aX1Zm9Wpb04p8wljfKrVSnPA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.28.4.tgz", + "integrity": "sha512-+ZEdQlBoRg9m2NnzvEeLgtvBMO4tkFBw5SQIUgLICgTrumLoU7lr+Oghi6km2PFj+dbUt2u1oby2w3BDO9YQnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.27.1.tgz", + "integrity": "sha512-V2ABPHIJX4kC7HegLkYoDpfg9PVmuWy/i6vUM5eGK22bx4YVFD3M5F0QQnWQoDs6AGsUWTVOopBiMFQgHaSkVw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.25.9.tgz", + "integrity": "sha512-nZp7GlEl+yULJrClz0SwHPqir3lc0zsPrDHQUcxGspSL7AKrexNSEfTbfqnDNJUO13bgKyfuOLMF8Xqtu8j3YQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "babel-plugin-polyfill-corejs2": "^0.4.10", + "babel-plugin-polyfill-corejs3": "^0.10.6", + "babel-plugin-polyfill-regenerator": "^0.6.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.27.1.tgz", + "integrity": "sha512-N/wH1vcn4oYawbJ13Y/FxcQrWk63jhfNa7jef0ih7PHSIHX2LB7GWE1rkPrOnka9kwMxb6hMl19p7lidA+EHmQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.27.1.tgz", + "integrity": "sha512-kpb3HUqaILBJcRFVhFUs6Trdd4mkrzcGXss+6/mxUd273PfbWqSDHRzMT2234gIg2QYfAjvXLSquP1xECSg09Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.27.1.tgz", + "integrity": "sha512-lhInBO5bi/Kowe2/aLdBAawijx+q1pQzicSgnkB6dUPc1+RC8QmJHKf2OjvU+NZWitguJHEaEmbV6VWEouT58g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.27.1.tgz", + "integrity": "sha512-fBJKiV7F2DxZUkg5EtHKXQdbsbURW3DZKQUWphDum0uRP6eHGGa/He9mc0mypL680pb+e/lDIthRohlv8NCHkg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.27.1.tgz", + "integrity": "sha512-RiSILC+nRJM7FY5srIyc4/fGIwUhyDuuBSdWn4y6yT6gm652DpCHZjIipgn6B7MQ1ITOUnAKWixEUjQRIBIcLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.27.1.tgz", + "integrity": "sha512-Ysg4v6AmF26k9vpfFuTZg8HRfVWzsh1kVfowA23y9j/Gu6dOuahdUVhkLqpObp3JIv27MLSii6noRnuKN8H0Mg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.27.1.tgz", + "integrity": "sha512-uW20S39PnaTImxp39O5qFlHLS9LJEmANjMG7SxIhap8rCHqu0Ik+tLEPX5DKmHn6CsWQ7j3lix2tFOa5YtL12Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.27.1.tgz", + "integrity": "sha512-xvINq24TRojDuyt6JGtHmkVkrfVV3FPT16uytxImLeBZqW3/H52yN+kM1MGuyPkIQxrzKwPHs5U/MP3qKyzkGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.27.1.tgz", + "integrity": "sha512-EtkOujbc4cgvb0mlpQefi4NTPBzhSIevblFevACNLUspmrALgmEBdL/XfnyyITfd8fKBZrZys92zOWcik7j9Tw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.25.9.tgz", + "integrity": "sha512-XqDEt+hfsQukahSX9JOBDHhpUHDhj2zGSxoqWQFCMajOSBnbhBdgON/bU/5PkBA1yX5tqW6tTzuIPVsZTQ7h5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.25.9", + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-validator-option": "^7.25.9", + "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.9", + "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.9", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.9", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.25.9", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.9", + "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", + "@babel/plugin-syntax-import-assertions": "^7.25.9", + "@babel/plugin-syntax-import-attributes": "^7.25.9", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.25.9", + "@babel/plugin-transform-async-generator-functions": "^7.25.9", + "@babel/plugin-transform-async-to-generator": "^7.25.9", + "@babel/plugin-transform-block-scoped-functions": "^7.25.9", + "@babel/plugin-transform-block-scoping": "^7.25.9", + "@babel/plugin-transform-class-properties": "^7.25.9", + "@babel/plugin-transform-class-static-block": "^7.25.9", + "@babel/plugin-transform-classes": "^7.25.9", + "@babel/plugin-transform-computed-properties": "^7.25.9", + "@babel/plugin-transform-destructuring": "^7.25.9", + "@babel/plugin-transform-dotall-regex": "^7.25.9", + "@babel/plugin-transform-duplicate-keys": "^7.25.9", + "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.9", + "@babel/plugin-transform-dynamic-import": "^7.25.9", + "@babel/plugin-transform-exponentiation-operator": "^7.25.9", + "@babel/plugin-transform-export-namespace-from": "^7.25.9", + "@babel/plugin-transform-for-of": "^7.25.9", + "@babel/plugin-transform-function-name": "^7.25.9", + "@babel/plugin-transform-json-strings": "^7.25.9", + "@babel/plugin-transform-literals": "^7.25.9", + "@babel/plugin-transform-logical-assignment-operators": "^7.25.9", + "@babel/plugin-transform-member-expression-literals": "^7.25.9", + "@babel/plugin-transform-modules-amd": "^7.25.9", + "@babel/plugin-transform-modules-commonjs": "^7.25.9", + "@babel/plugin-transform-modules-systemjs": "^7.25.9", + "@babel/plugin-transform-modules-umd": "^7.25.9", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.25.9", + "@babel/plugin-transform-new-target": "^7.25.9", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.25.9", + "@babel/plugin-transform-numeric-separator": "^7.25.9", + "@babel/plugin-transform-object-rest-spread": "^7.25.9", + "@babel/plugin-transform-object-super": "^7.25.9", + "@babel/plugin-transform-optional-catch-binding": "^7.25.9", + "@babel/plugin-transform-optional-chaining": "^7.25.9", + "@babel/plugin-transform-parameters": "^7.25.9", + "@babel/plugin-transform-private-methods": "^7.25.9", + "@babel/plugin-transform-private-property-in-object": "^7.25.9", + "@babel/plugin-transform-property-literals": "^7.25.9", + "@babel/plugin-transform-regenerator": "^7.25.9", + "@babel/plugin-transform-reserved-words": "^7.25.9", + "@babel/plugin-transform-shorthand-properties": "^7.25.9", + "@babel/plugin-transform-spread": "^7.25.9", + "@babel/plugin-transform-sticky-regex": "^7.25.9", + "@babel/plugin-transform-template-literals": "^7.25.9", + "@babel/plugin-transform-typeof-symbol": "^7.25.9", + "@babel/plugin-transform-unicode-escapes": "^7.25.9", + "@babel/plugin-transform-unicode-property-regex": "^7.25.9", + "@babel/plugin-transform-unicode-regex": "^7.25.9", + "@babel/plugin-transform-unicode-sets-regex": "^7.25.9", + "@babel/preset-modules": "0.1.6-no-external-plugins", + "babel-plugin-polyfill-corejs2": "^0.4.10", + "babel-plugin-polyfill-corejs3": "^0.10.6", + "babel-plugin-polyfill-regenerator": "^0.6.1", + "core-js-compat": "^3.38.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.6-no-external-plugins", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", + "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/preset-react": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.24.7.tgz", + "integrity": "sha512-AAH4lEkpmzFWrGVlHaxJB7RLH21uPQ9+He+eFLWHmF9IuFQVugz8eAsamaW0DXRrTfco5zj1wWtpdcXJUOfsag==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-validator-option": "^7.24.7", + "@babel/plugin-transform-react-display-name": "^7.24.7", + "@babel/plugin-transform-react-jsx": "^7.24.7", + "@babel/plugin-transform-react-jsx-development": "^7.24.7", + "@babel/plugin-transform-react-pure-annotations": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.4.tgz", + "integrity": "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.4.tgz", + "integrity": "sha512-YEzuboP2qvQavAcjgQNVgsvHIDv6ZpwXvcvjmyySP2DIMuByS/6ioU5G9pYrWHM6T2YDfc7xga9iNzYOs12CFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.4", + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.4", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.4.tgz", + "integrity": "sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@parcel/watcher": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.1.tgz", + "integrity": "sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "dependencies": { + "detect-libc": "^1.0.3", + "is-glob": "^4.0.3", + "micromatch": "^4.0.5", + "node-addon-api": "^7.0.0" + }, + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "@parcel/watcher-android-arm64": "2.5.1", + "@parcel/watcher-darwin-arm64": "2.5.1", + "@parcel/watcher-darwin-x64": "2.5.1", + "@parcel/watcher-freebsd-x64": "2.5.1", + "@parcel/watcher-linux-arm-glibc": "2.5.1", + "@parcel/watcher-linux-arm-musl": "2.5.1", + "@parcel/watcher-linux-arm64-glibc": "2.5.1", + "@parcel/watcher-linux-arm64-musl": "2.5.1", + "@parcel/watcher-linux-x64-glibc": "2.5.1", + "@parcel/watcher-linux-x64-musl": "2.5.1", + "@parcel/watcher-win32-arm64": "2.5.1", + "@parcel/watcher-win32-ia32": "2.5.1", + "@parcel/watcher-win32-x64": "2.5.1" + } + }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.1.tgz", + "integrity": "sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-arm64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.1.tgz", + "integrity": "sha512-eAzPv5osDmZyBhou8PoF4i6RQXAfeKL9tjb3QzYuccXFMQU0ruIc/POh30ePnaOyD1UXdlKguHBmsTs53tVoPw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-x64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.1.tgz", + "integrity": "sha512-1ZXDthrnNmwv10A0/3AJNZ9JGlzrF82i3gNQcWOzd7nJ8aj+ILyW1MTxVk35Db0u91oD5Nlk9MBiujMlwmeXZg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-freebsd-x64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.1.tgz", + "integrity": "sha512-SI4eljM7Flp9yPuKi8W0ird8TI/JK6CSxju3NojVI6BjHsTyK7zxA9urjVjEKJ5MBYC+bLmMcbAWlZ+rFkLpJQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-glibc": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.1.tgz", + "integrity": "sha512-RCdZlEyTs8geyBkkcnPWvtXLY44BCeZKmGYRtSgtwwnHR4dxfHRG3gR99XdMEdQ7KeiDdasJwwvNSF5jKtDwdA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-musl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.1.tgz", + "integrity": "sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-glibc": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.1.tgz", + "integrity": "sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-musl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.1.tgz", + "integrity": "sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-glibc": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.1.tgz", + "integrity": "sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-musl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.1.tgz", + "integrity": "sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-arm64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.1.tgz", + "integrity": "sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-ia32": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.1.tgz", + "integrity": "sha512-c2KkcVN+NJmuA7CGlaGD1qJh1cLfDnQsHjE89E60vUEMlqduHGCdCLJCID5geFVM0dOtA3ZiIO8BoEQmzQVfpQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-x64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.1.tgz", + "integrity": "sha512-9lHBdJITeNR++EvSQVUcaZoWupyHfXe1jZvGZ06O/5MflPcuPLtEphScIBL+AiCWBO46tDSHzWyD0uDmmZqsgA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@rollup/plugin-babel": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-6.0.4.tgz", + "integrity": "sha512-YF7Y52kFdFT/xVSuVdjkV5ZdX/3YtmX0QulG+x0taQOtJdHYzVU61aSSkAgVJ7NOv6qPkIYiJSgSWWN/DM5sGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.18.6", + "@rollup/pluginutils": "^5.0.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "@types/babel__core": "^7.1.9", + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "@types/babel__core": { + "optional": true + }, + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-commonjs": { + "version": "28.0.6", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-28.0.6.tgz", + "integrity": "sha512-XSQB1K7FUU5QP+3lOQmVCE3I0FcbbNvmNT4VJSj93iUjayaARrTQeoRdiYQoftAJBLrR9t2agwAd3ekaTgHNlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "commondir": "^1.0.1", + "estree-walker": "^2.0.2", + "fdir": "^6.2.0", + "is-reference": "1.2.1", + "magic-string": "^0.30.3", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0 || 14 >= 14.17" + }, + "peerDependencies": { + "rollup": "^2.68.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-node-resolve": { + "version": "15.3.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.3.1.tgz", + "integrity": "sha512-tgg6b91pAybXHJQMAAwW9VuWBO6Thi+q7BCNARLwSqlmsHz0XYURtGvh/AuwSADXSI4h/2uHbs7s4FzlZDGSGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "@types/resolve": "1.20.2", + "deepmerge": "^4.2.2", + "is-module": "^1.0.0", + "resolve": "^1.22.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.78.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-replace": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-6.0.2.tgz", + "integrity": "sha512-7QaYCf8bqF04dOy7w/eHmJeNExxTYwvKAmlSAH/EaWWUzbT0h5sbF6bktFoX/0F/0qwng5/dWFMyf3gzaM8DsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "magic-string": "^0.30.3" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/pluginutils": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.3.0.tgz", + "integrity": "sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.23.0.tgz", + "integrity": "sha512-8OR+Ok3SGEMsAZispLx8jruuXw0HVF16k+ub2eNXKHDmdxL4cf9NlNpAzhlOhNyXzKDEJuFeq0nZm+XlNb1IFw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.23.0.tgz", + "integrity": "sha512-rEFtX1nP8gqmLmPZsXRMoLVNB5JBwOzIAk/XAcEPuKrPa2nPJ+DuGGpfQUR0XjRm8KjHfTZLpWbKXkA5BoFL3w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.23.0.tgz", + "integrity": "sha512-ZbqlMkJRMMPeapfaU4drYHns7Q5MIxjM/QeOO62qQZGPh9XWziap+NF9fsqPHT0KzEL6HaPspC7sOwpgyA3J9g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.23.0.tgz", + "integrity": "sha512-PfmgQp78xx5rBCgn2oYPQ1rQTtOaQCna0kRaBlc5w7RlA3TDGGo7m3XaptgitUZ54US9915i7KeVPHoy3/W8tA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.23.0.tgz", + "integrity": "sha512-WAeZfAAPus56eQgBioezXRRzArAjWJGjNo/M+BHZygUcs9EePIuGI1Wfc6U/Ki+tMW17FFGvhCfYnfcKPh18SA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.23.0.tgz", + "integrity": "sha512-v7PGcp1O5XKZxKX8phTXtmJDVpE20Ub1eF6w9iMmI3qrrPak6yR9/5eeq7ziLMrMTjppkkskXyxnmm00HdtXjA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.23.0.tgz", + "integrity": "sha512-nAbWsDZ9UkU6xQiXEyXBNHAKbzSAi95H3gTStJq9UGiS1v+YVXwRHcQOQEF/3CHuhX5BVhShKoeOf6Q/1M+Zhg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.23.0.tgz", + "integrity": "sha512-5QT/Di5FbGNPaVw8hHO1wETunwkPuZBIu6W+5GNArlKHD9fkMHy7vS8zGHJk38oObXfWdsuLMogD4sBySLJ54g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.23.0.tgz", + "integrity": "sha512-Sefl6vPyn5axzCsO13r1sHLcmPuiSOrKIImnq34CBurntcJ+lkQgAaTt/9JkgGmaZJ+OkaHmAJl4Bfd0DmdtOQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.23.0.tgz", + "integrity": "sha512-o4QI2KU/QbP7ZExMse6ULotdV3oJUYMrdx3rBZCgUF3ur3gJPfe8Fuasn6tia16c5kZBBw0aTmaUygad6VB/hQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.23.0.tgz", + "integrity": "sha512-+bxqx+V/D4FGrpXzPGKp/SEZIZ8cIW3K7wOtcJAoCrmXvzRtmdUhYNbgd+RztLzfDEfA2WtKj5F4tcbNPuqgeg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.23.0.tgz", + "integrity": "sha512-I/eXsdVoCKtSgK9OwyQKPAfricWKUMNCwJKtatRYMmDo5N859tbO3UsBw5kT3dU1n6ZcM1JDzPRSGhAUkxfLxw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.23.0.tgz", + "integrity": "sha512-4ZoDZy5ShLbbe1KPSafbFh1vbl0asTVfkABC7eWqIs01+66ncM82YJxV2VtV3YVJTqq2P8HMx3DCoRSWB/N3rw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.23.0.tgz", + "integrity": "sha512-+5Ky8dhft4STaOEbZu3/NU4QIyYssKO+r1cD3FzuusA0vO5gso15on7qGzKdNXnc1gOrsgCqZjRw1w+zL4y4hQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.23.0.tgz", + "integrity": "sha512-0SPJk4cPZQhq9qA1UhIRumSE3+JJIBBjtlGl5PNC///BoaByckNZd53rOYD0glpTkYFBQSt7AkMeLVPfx65+BQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.23.0.tgz", + "integrity": "sha512-lqCK5GQC8fNo0+JvTSxcG7YB1UKYp8yrNLhsArlvPWN+16ovSZgoehlVHg6X0sSWPUkpjRBR5TuR12ZugowZ4g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/resolve": { + "version": "1.20.2", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz", + "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.14", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.14.tgz", + "integrity": "sha512-Co2Y9wX854ts6U8gAAPXfn0GmAyctHuK8n0Yhfjd6t30g7yvKjspvvOo9yG+z52PZRgFErt7Ka2pYnXCjLKEpg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.27.7", + "@babel/helper-define-polyfill-provider": "^0.6.5", + "semver": "^6.3.1" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.10.6", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz", + "integrity": "sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.2", + "core-js-compat": "^3.38.0" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.5.tgz", + "integrity": "sha512-ISqQ2frbiNU9vIJkzg7dlPpznPZ4jOiUQ1uSmB0fEHeowtN3COYRsXr/xexn64NpU13P06jc/L5TgiJXOgrbEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.5" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.9.tgz", + "integrity": "sha512-hY/u2lxLrbecMEWSB0IpGzGyDyeoMFQhCvZd2jGFSE5I17Fh01sYUBPCJtkWERw7zrac9+cIghxm/ytJa2X8iA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.js" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.26.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.26.2.tgz", + "integrity": "sha512-ECFzp6uFOSB+dcZ5BK/IBaGWssbSYBHvuMeMt3MMFyhI0Z8SqGgEkBLARgpRH3hutIgPVsALcMwbDrJqPxQ65A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.8.3", + "caniuse-lite": "^1.0.30001741", + "electron-to-chromium": "^1.5.218", + "node-releases": "^2.0.21", + "update-browserslist-db": "^1.1.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001746", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001746.tgz", + "integrity": "sha512-eA7Ys/DGw+pnkWWSE/id29f2IcPHVoE8wxtvE5JdvD2V28VTDPy1yEeo11Guz0sJ4ZeGRcm3uaTcAqK1LXaphA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/core-js-compat": { + "version": "3.45.1", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.45.1.tgz", + "integrity": "sha512-tqTt5T4PzsMIZ430XGviK4vzYSoeNJ6CXODi6c/voxOT6IZqBht5/EKaSNnYiEjjRYxjVz7DQIsOsY0XNi8PIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "browserslist": "^4.25.3" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "dev": true, + "license": "Apache-2.0", + "optional": true, + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.228", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.228.tgz", + "integrity": "sha512-nxkiyuqAn4MJ1QbobwqJILiDtu/jk14hEAWaMiJmNPh1Z+jqoFlBFZjdXwLWGeVSeu9hGLg6+2G9yJaW8rBIFA==", + "dev": true, + "license": "ISC" + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true, + "license": "MIT" + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/immutable": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.3.tgz", + "integrity": "sha512-+chQdDfvscSF1SJqv2gn4SRO2ZyS3xL3r7IW/wWEEzrzLisnOlKiQu5ytC/BVNcS15C39WT2Hg/bjKjDMcu+zg==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", + "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-reference": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", + "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "*" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true, + "license": "MIT" + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/magic-string": { + "version": "0.30.19", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.19.tgz", + "integrity": "sha512-2N21sPY9Ws53PZvsEpVtNuSW+ScYbQdp4b9qUaL+9QkHUrGFKo56Lg9Emg5s9V/qrtNBmiR01sYhUOwu3H+VOw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/node-releases": { + "version": "2.0.21", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.21.tgz", + "integrity": "sha512-5b0pgg78U3hwXkCM8Z9b2FJdPZlr9Psr9V2gQPESdGHqbntyFJKFW4r5TeWGFzafGY3hzs1JC62VEQMbl1JFkw==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, + "node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true, + "license": "MIT" + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.2.tgz", + "integrity": "sha512-m03P+zhBeQd1RGnYxrGyDAPpWX/epKirLrp8e3qevZdVkKtnCrjjWczIbYc8+xd6vcTStVlqfycTx1KR4LOr0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regexpu-core": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.4.0.tgz", + "integrity": "sha512-0ghuzq67LI9bLXpOX/ISfve/Mq33a4aFRzoQYhnnok1JOFpmE/A2TBGkNVenOGEeSBCjIiWcc6MVOG5HEQv0sA==", + "dev": true, + "license": "MIT", + "dependencies": { + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.2.2", + "regjsgen": "^0.8.0", + "regjsparser": "^0.13.0", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.2.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/regjsparser": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.0.tgz", + "integrity": "sha512-NZQZdC5wOE/H3UT28fVGL+ikOZcEzfMGk/c3iN9UGxzWHMa1op7274oyiUVrAG4B2EuFhus8SvkaYnhvW92p9Q==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "jsesc": "~3.1.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/rollup": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.23.0.tgz", + "integrity": "sha512-vXB4IT9/KLDrS2WRXmY22sVB2wTsTwkpxjB8Q3mnakTENcYw3FRmfdYDy/acNmls+lHmDazgrRjK/yQ6hQAtwA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.6" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.23.0", + "@rollup/rollup-android-arm64": "4.23.0", + "@rollup/rollup-darwin-arm64": "4.23.0", + "@rollup/rollup-darwin-x64": "4.23.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.23.0", + "@rollup/rollup-linux-arm-musleabihf": "4.23.0", + "@rollup/rollup-linux-arm64-gnu": "4.23.0", + "@rollup/rollup-linux-arm64-musl": "4.23.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.23.0", + "@rollup/rollup-linux-riscv64-gnu": "4.23.0", + "@rollup/rollup-linux-s390x-gnu": "4.23.0", + "@rollup/rollup-linux-x64-gnu": "4.23.0", + "@rollup/rollup-linux-x64-musl": "4.23.0", + "@rollup/rollup-win32-arm64-msvc": "4.23.0", + "@rollup/rollup-win32-ia32-msvc": "4.23.0", + "@rollup/rollup-win32-x64-msvc": "4.23.0", + "fsevents": "~2.3.2" + } + }, + "node_modules/rollup-plugin-scss": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/rollup-plugin-scss/-/rollup-plugin-scss-4.0.1.tgz", + "integrity": "sha512-3W3+3OzR+shkDl3hJ1XTAuGkP4AfiLgIjie2GtcoZ9pHfRiNqeDbtCu1EUnkjZ98EPIM6nnMIXkKlc7Sx5bRvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "rollup-pluginutils": "^2.3.3" + } + }, + "node_modules/rollup-pluginutils": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz", + "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "estree-walker": "^0.6.1" + } + }, + "node_modules/rollup-pluginutils/node_modules/estree-walker": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz", + "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==", + "dev": true, + "license": "MIT" + }, + "node_modules/rollup/node_modules/@types/estree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/sass": { + "version": "1.93.2", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.93.2.tgz", + "integrity": "sha512-t+YPtOQHpGW1QWsh1CHQ5cPIr9lbbGZLZnbihP/D/qZj/yuV68m8qarcV17nvkOX81BCrvzAlq2klCQFZghyTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^4.0.0", + "immutable": "^5.0.2", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=14.0.0" + }, + "optionalDependencies": { + "@parcel/watcher": "^2.4.1" + } + }, + "node_modules/scheduler": { + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz", + "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.1.tgz", + "integrity": "sha512-JQ84qTuMg4nVkx8ga4A16a1epI9H6uTXAknqxkGF/aFfRLw1xC/Bp24HNLaZhHSkWd3+84t8iXnp1J0kYcZHhg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.2.0.tgz", + "integrity": "sha512-hpbDzxUY9BFwX+UeBnxv3Sh1q7HFxj48DTmXchNgRa46lO8uj3/1iEn3MiNUYTg1g9ctIqXCCERn8gYZhHC5lQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + } + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/package.json b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/package.json new file mode 100644 index 0000000000000000000000000000000000000000..348d5860f4ee0d29879247fd9e1a2ca0c82242fa --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/package.json @@ -0,0 +1,26 @@ +{ + "name": "camunda-cockpit-sample-plugin", + "version": "0.0.1", + "scripts": { + "build": "rollup -c" + }, + "type": "module", + "dependencies": { + "@babel/runtime": "^7.28.4", + "react": "~18.3.1", + "react-dom": "~18.3.1" + }, + "devDependencies": { + "@babel/core": "~7.25.2", + "@babel/plugin-transform-runtime": "~7.25.4", + "@babel/preset-env": "~7.25.4", + "@babel/preset-react": "~7.24.7", + "@rollup/plugin-babel": "~6.0.4", + "@rollup/plugin-commonjs": "~28.0.0", + "@rollup/plugin-node-resolve": "~15.3.0", + "@rollup/plugin-replace": "~6.0.1", + "rollup": "~4.23.0", + "rollup-plugin-scss": "~4.0.0", + "sass": "^1.93.2" + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/rollup.config.js b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/rollup.config.js new file mode 100644 index 0000000000000000000000000000000000000000..c9c52bf6b889e0cfdf8dd235a7f75cdf1d6a4c1b --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/rollup.config.js @@ -0,0 +1,48 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import babel from "@rollup/plugin-babel"; +import resolve from "@rollup/plugin-node-resolve"; +import commonjs from "@rollup/plugin-commonjs"; +import replace from "@rollup/plugin-replace"; +import scss from "rollup-plugin-scss"; + +export default { + input: "src/plugin.js", + output: { + file: "dist/plugin.js" + }, + plugins: [ + resolve(), + babel({ + babelHelpers: "runtime", + skipPreflightCheck: true, + compact: true + }), + commonjs({ + include: "node_modules/**" + }), + replace({ + "process.env.NODE_ENV": JSON.stringify("production"), + preventAssignment: true + }), + scss({ + failOnError: true, + fileName: 'plugin.css', + }) + ] +}; diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/src/ProcessInstanceCount.js b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/src/ProcessInstanceCount.js new file mode 100644 index 0000000000000000000000000000000000000000..3c83ba8e59f059ece224938c56fcfc8d30fc2520 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/src/ProcessInstanceCount.js @@ -0,0 +1,74 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import React, { useState, useEffect } from "react"; + +import { Table } from "./Table"; + +function ProcessInstanceCount({ camundaAPI }) { + const [processInstanceCounts, setProcessInstanceCounts] = useState(); + + const cockpitApi = camundaAPI.cockpitApi; + const engine = camundaAPI.engine; + + useEffect(() => { + fetch( + `${cockpitApi}/plugin/sample-plugin/${engine}/process-instance`, + { + headers: { + 'Accept': 'application/json' + } + } + ) + .then(async res => { + setProcessInstanceCounts(await res.json()); + }) + .catch(err => { + console.error(err); + }); + }, []); + + if (!processInstanceCounts) { + return
Loading...
; + } + + return ( + <> +

Process Instances per Definition

+ + + Key + Instances + + } + > + {processInstanceCounts.map(processDefinition => { + return ( + + {processDefinition.key} + {processDefinition.instanceCount} + + ); + })} +
+ + ); +} + +export default ProcessInstanceCount; diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/src/Table/Table.js b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/src/Table/Table.js new file mode 100644 index 0000000000000000000000000000000000000000..ab7c0149542e41f74c1303bdf1f473d801b929e2 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/src/Table/Table.js @@ -0,0 +1,43 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import React from "react"; + +import "./Table.scss"; + +export default function Table({ head, children }) { + return ( + + + {head} + + {children} +
+ ); +} + +Table.Head = function Head({ children }) { + return {children}; +}; + +Table.Row = function Row({ children }) { + return {children}; +}; + +Table.Cell = function Cell({ children }) { + return {children}; +}; diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/src/Table/Table.scss b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/src/Table/Table.scss new file mode 100644 index 0000000000000000000000000000000000000000..6bf06fa3888b8dc01d2ed74249752da1240da6d9 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/src/Table/Table.scss @@ -0,0 +1,25 @@ +.Table { + width: 100%; + max-width: 100%; + + .TableRow { + &:nth-of-type(odd) { + background-color: #f9f9f9; + } + &:hover { + background-color: #eaf0f8; + } + } + + .TableHead { + padding: 5px; + border-bottom: 2px solid #ddd; + } + + .TableCell { + padding: 5px; + line-height: 1.5; + vertical-align: top; + border-top: 1px solid #ddd; + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/src/Table/index.js b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/src/Table/index.js new file mode 100644 index 0000000000000000000000000000000000000000..149b158d72b221a9de301ec0f6e0ccb95ad6ddf0 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/src/Table/index.js @@ -0,0 +1,18 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export { default as Table } from "./Table"; diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/src/plugin.js b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/src/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..16861f8949538d56117a8be15647cc41bbf99bde --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/frontend/src/plugin.js @@ -0,0 +1,41 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import React from "react"; +import ReactDOM from "react-dom"; + +import ProcessInstanceCount from "./ProcessInstanceCount"; + +let container = null; + +export default { + id: "process-instance-count", + pluginPoint: "cockpit.dashboard", + render: (node, { api }) => { + container = node; + ReactDOM.render( + , + container + ); + }, + unmount: () => { + ReactDOM.unmountComponentAtNode(container); + }, + + // make sure we have a higher priority than the default plugin + priority: 12, +}; diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..87007154878a321f590cc49cefbe9fa90fa65cd4 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/pom.xml @@ -0,0 +1,148 @@ + + 4.0.0 + + org.camunda.bpm.cockpit.plugin + cockpit-sample-plugin + 1.0-SNAPSHOT + jar + + Camunda Cockpit Plugin: Sample + This is a simple plugin that showcases the plugin system of Cockpit, the process monitoring tool of Camunda Platform. + https://github.com/camunda/camunda-bpm-examples/tree/7.24/cockpit/cockpit-sample-plugin + + + 7.24.0 + + 1.14.0 + 3.3.1 + 3.11.0 + 4.0.0 + 4.13.2 + 2.3.232 + 1.7.36 + v20.14.0 + 10.7.0 + + frontend/ + ${frontend.working.directory}dist/ + plugin-webapp/sample-plugin/app + + 11 + UTF-8 + + + + + org.camunda.bpm.webapp + camunda-webapp + classes + ${camunda.version} + + + jakarta.ws.rs + jakarta.ws.rs-api + ${jakarta.ws.rs-api.version} + provided + + + + org.camunda.bpm + camunda-engine + ${camunda.version} + provided + + + com.h2database + h2 + ${h2.version} + test + + + junit + junit + ${junit.version} + test + + + + org.slf4j + slf4j-jdk14 + ${slf4j.version} + test + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${maven-compiler-plugin.version} + + + com.github.eirslett + frontend-maven-plugin + ${frontend-maven-plugin.version} + + ${node.version} + ${frontend.working.directory} + + + + Install node and npm locally to the project + + install-node-and-npm + + + + npm install + + npm + + + + Build frontend + + npm + + + run build + + + + + + org.apache.maven.plugins + maven-resources-plugin + ${maven-resources-plugin.version} + + + Copy frontend build to target + process-resources + + copy-resources + + + ${basedir}/target/classes/${frontend.target.path} + + + ${basedir}/${frontend.build.path} + true + + + + + + + + + + + + camunda-bpm-nexus + camunda-bpm-nexus + https://artifacts.camunda.com/artifactory/private/ + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/screenshot.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..420edacfdb0fc148d6027b021a6c59a86bfe3d0c --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/screenshot.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8aee83d163bcff116ca32774ba33dfa9c56cc47ea6e8babe60b4509fd6f98cc +size 195743 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/java/org/camunda/bpm/cockpit/plugin/sample/SamplePlugin.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/java/org/camunda/bpm/cockpit/plugin/sample/SamplePlugin.java new file mode 100644 index 0000000000000000000000000000000000000000..be465d96269abe707c1f3e3fb8cc42521208ce90 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/java/org/camunda/bpm/cockpit/plugin/sample/SamplePlugin.java @@ -0,0 +1,52 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.cockpit.plugin.sample; + +import java.util.Arrays; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +import org.camunda.bpm.cockpit.plugin.sample.resources.SamplePluginRootResource; +import org.camunda.bpm.cockpit.plugin.spi.impl.AbstractCockpitPlugin; + +/** + * + * @author nico.rehwaldt + */ +public class SamplePlugin extends AbstractCockpitPlugin { + + public static final String ID = "sample-plugin"; + + public String getId() { + return ID; + } + + @Override + public Set> getResourceClasses() { + Set> classes = new HashSet<>(); + + classes.add(SamplePluginRootResource.class); + + return classes; + } + + @Override + public List getMappingFiles() { + return Arrays.asList("org/camunda/bpm/cockpit/plugin/sample/queries/sample.xml"); + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/java/org/camunda/bpm/cockpit/plugin/sample/db/ProcessInstanceCountDto.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/java/org/camunda/bpm/cockpit/plugin/sample/db/ProcessInstanceCountDto.java new file mode 100644 index 0000000000000000000000000000000000000000..cdbe13565487c205dbac11a460e60a9c60077463 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/java/org/camunda/bpm/cockpit/plugin/sample/db/ProcessInstanceCountDto.java @@ -0,0 +1,44 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.cockpit.plugin.sample.db; + +/** + * + * @author nico.rehwaldt + */ +public class ProcessInstanceCountDto { + + private String key; + + private int instanceCount; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public int getInstanceCount() { + return instanceCount; + } + + public void setInstanceCount(int instanceCount) { + this.instanceCount = instanceCount; + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/java/org/camunda/bpm/cockpit/plugin/sample/resources/ProcessInstanceResource.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/java/org/camunda/bpm/cockpit/plugin/sample/resources/ProcessInstanceResource.java new file mode 100644 index 0000000000000000000000000000000000000000..c5c7c36dc5ad36bdfb699b4aa764488a0b26e8c8 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/java/org/camunda/bpm/cockpit/plugin/sample/resources/ProcessInstanceResource.java @@ -0,0 +1,44 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.cockpit.plugin.sample.resources; + +import java.util.List; +import jakarta.ws.rs.GET; + +import org.camunda.bpm.cockpit.db.QueryParameters; +import org.camunda.bpm.cockpit.plugin.resource.AbstractCockpitPluginResource; +import org.camunda.bpm.cockpit.plugin.sample.db.ProcessInstanceCountDto; + +/** + * + * @author nico.rehwaldt + */ +public class ProcessInstanceResource extends AbstractCockpitPluginResource { + + public ProcessInstanceResource(String engineName) { + super(engineName); + } + + @GET + public List getProcessInstanceCounts() { + QueryParameters parameters = + new QueryParameters(); + parameters.disableMaxResultsLimit(); + return getQueryService() + .executeQuery("cockpit.sample.selectProcessInstanceCountsByProcessDefinition", parameters); + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/java/org/camunda/bpm/cockpit/plugin/sample/resources/SamplePluginRootResource.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/java/org/camunda/bpm/cockpit/plugin/sample/resources/SamplePluginRootResource.java new file mode 100644 index 0000000000000000000000000000000000000000..eba6349678b8df4528caac97dcc2929d3347d5c0 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/java/org/camunda/bpm/cockpit/plugin/sample/resources/SamplePluginRootResource.java @@ -0,0 +1,40 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.cockpit.plugin.sample.resources; + +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; + +import org.camunda.bpm.cockpit.plugin.resource.AbstractCockpitPluginRootResource; +import org.camunda.bpm.cockpit.plugin.sample.SamplePlugin; + +/** + * + * @author nico.rehwaldt + */ +@Path("plugin/" + SamplePlugin.ID) +public class SamplePluginRootResource extends AbstractCockpitPluginRootResource { + + public SamplePluginRootResource() { + super(SamplePlugin.ID); + } + + @Path("{engineName}/process-instance") + public ProcessInstanceResource getProcessInstanceResource(@PathParam("engineName") String engineName) { + return subResource(new ProcessInstanceResource(engineName), engineName); + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/resources/META-INF/services/org.camunda.bpm.cockpit.plugin.spi.CockpitPlugin b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/resources/META-INF/services/org.camunda.bpm.cockpit.plugin.spi.CockpitPlugin new file mode 100644 index 0000000000000000000000000000000000000000..45be6305a79546a701178182daf4701ca98940b1 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/resources/META-INF/services/org.camunda.bpm.cockpit.plugin.spi.CockpitPlugin @@ -0,0 +1 @@ +org.camunda.bpm.cockpit.plugin.sample.SamplePlugin \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/resources/org/camunda/bpm/cockpit/plugin/sample/queries/sample.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/resources/org/camunda/bpm/cockpit/plugin/sample/queries/sample.xml new file mode 100644 index 0000000000000000000000000000000000000000..7aac7382557eb8d59c6264dd60e3ca799d2519b3 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/resources/org/camunda/bpm/cockpit/plugin/sample/queries/sample.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/resources/plugin-webapp/sample-plugin/info.txt b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/resources/plugin-webapp/sample-plugin/info.txt new file mode 100644 index 0000000000000000000000000000000000000000..35dc8f83b08503d611d1020da0f8a2feb0c92632 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/main/resources/plugin-webapp/sample-plugin/info.txt @@ -0,0 +1 @@ +# Client side assets of the cockpit-plugin-sample \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/test/java/org/camunda/bpm/cockpit/plugin/sample/SamplePluginsTest.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/test/java/org/camunda/bpm/cockpit/plugin/sample/SamplePluginsTest.java new file mode 100644 index 0000000000000000000000000000000000000000..6fd26884c2001cee915f1930b2a92e5bdd1ddbcd --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/test/java/org/camunda/bpm/cockpit/plugin/sample/SamplePluginsTest.java @@ -0,0 +1,57 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.cockpit.plugin.sample; + +import java.util.List; + +import org.camunda.bpm.cockpit.Cockpit; +import org.camunda.bpm.cockpit.db.QueryParameters; +import org.camunda.bpm.cockpit.db.QueryService; +import org.camunda.bpm.cockpit.plugin.sample.db.ProcessInstanceCountDto; +import org.camunda.bpm.cockpit.plugin.spi.CockpitPlugin; +import org.camunda.bpm.cockpit.plugin.test.AbstractCockpitPluginTest; +import org.junit.Assert; +import org.junit.Test; + +/** +* +* @author nico.rehwaldt +*/ +public class SamplePluginsTest extends AbstractCockpitPluginTest { + + @Test + public void testPluginDiscovery() { + CockpitPlugin samplePlugin = Cockpit.getRuntimeDelegate().getAppPluginRegistry().getPlugin("sample-plugin"); + + Assert.assertNotNull(samplePlugin); + } + + @Test + public void testSampleQueryWorks() { + + QueryService queryService = getQueryService(); + + List instanceCounts = + queryService + .executeQuery( + "cockpit.sample.selectProcessInstanceCountsByProcessDefinition", + new QueryParameters()); + + Assert.assertEquals(0, instanceCounts.size()); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/test/resources/META-INF/services/org.camunda.bpm.engine.rest.spi.ProcessEngineProvider b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/test/resources/META-INF/services/org.camunda.bpm.engine.rest.spi.ProcessEngineProvider new file mode 100644 index 0000000000000000000000000000000000000000..a56225f851a05da92f9ec8f14da46f9d3f0d5153 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/test/resources/META-INF/services/org.camunda.bpm.engine.rest.spi.ProcessEngineProvider @@ -0,0 +1 @@ +org.camunda.bpm.cockpit.plugin.test.application.TestProcessEngineProvider \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/test/resources/camunda.cfg.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/test/resources/camunda.cfg.xml new file mode 100644 index 0000000000000000000000000000000000000000..56ab6a1479d5ffac4d91f23f2f6728ea74aa78f8 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-fullstack-count-processes/src/test/resources/camunda.cfg.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-greetings-plugin/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-greetings-plugin/README.md new file mode 100644 index 0000000000000000000000000000000000000000..5c6875178eb43678d384d4f2c89032c246e5717d --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-greetings-plugin/README.md @@ -0,0 +1,6 @@ +Cockpit Greetings Plugin +======================== + +This example is not actively maintained anymore. You can refer to the [example with fixed version of Camunda 7.18](https://github.com/camunda/camunda-bpm-examples/blob/7.18/cockpit/cockpit-greetings-plugin). +Due to Camunda Platform 7 backward compatibility, the examples usually still work with later versions. However, you +might need to adjust them to make them work. \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-open-incidents/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-open-incidents/README.md new file mode 100644 index 0000000000000000000000000000000000000000..94650a69584f394a408a90828f68b917d85c5fbd --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-open-incidents/README.md @@ -0,0 +1,6 @@ +"Open Incidents" Cockpit Plugin +=============================== + +This example is not actively maintained anymore. You can refer to the [example with fixed version of Camunda 7.18](https://github.com/camunda/camunda-bpm-examples/blob/7.18/cockpit/cockpit-open-incidents). +Due to Camunda Platform 7 backward compatibility, the examples usually still work with later versions. However, you +might need to adjust them to make them work. \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/.babelrc b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/.babelrc new file mode 100644 index 0000000000000000000000000000000000000000..47819ddaf327e05fb65723ae69535ae71beaa235 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/.babelrc @@ -0,0 +1,5 @@ +{ + "presets": ["@babel/preset-env", "@babel/preset-react"], + "exclude": "node_modules/**", + "plugins": ["@babel/plugin-transform-runtime"] +} \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/.gitignore b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..76add878f8dd778c3381fb3da45c8140db7db510 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/.gitignore @@ -0,0 +1,2 @@ +node_modules +dist \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/README.md new file mode 100644 index 0000000000000000000000000000000000000000..af730bdd2384609480f1c82cac75be1afb8ac43c --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/README.md @@ -0,0 +1,38 @@ +ReactJS "Involved Users" Cockpit Plugin +======================================= + +This example shows you how to build and bundle a plugin using react. When building your plugin using libraries, you have to make sure all your components are bundled into a single bundle. In this example, we use rollup to create the bundle. + + +![Screenshot](screenshot.png) + + +Building the Project +-------------------- + +Install the project with `npm i` and build the plugin with `npm run build`. Your plugin will be created in `dist/plugin.js`. + +Integrate into Camunda Webapp +----------------------------- + +Copy the `plugin.js` file into the `app/cockpit/scripts/` folder in your Camunda webapp distribution. +For the Tomcat distribution, this would be `server/apache-tomcat-X.X.XX/webapps/camunda/app/cockpit/scripts/`. + +Add the following content to the `app/cockpit/scripts/config.js` file: + +``` +// … + customScripts: [ + 'scripts/plugin.js' + ] +// … +``` + +You can add custom CSS by adding it to the `app/cockpit/styles/user-styles.css` + +After that start the server, login to Cockpit and navigate to the process definition view to check the result. + +License +------- + +Use under terms of the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/package-lock.json b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/package-lock.json new file mode 100644 index 0000000000000000000000000000000000000000..fe64f9d24afd4c44fd1232402d55c43b4486ed47 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/package-lock.json @@ -0,0 +1,3323 @@ +{ + "name": "reactjs", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "reactjs", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "@babel/runtime": "^7.28.4", + "react": "~19.0.0", + "react-dom": "~19.0.0" + }, + "devDependencies": { + "@babel/core": "~7.26.10", + "@babel/plugin-transform-runtime": "~7.26.10", + "@babel/preset-env": "~7.26.9", + "@babel/preset-react": "~7.26.3", + "@rollup/plugin-babel": "~6.0.4", + "@rollup/plugin-commonjs": "~28.0.3", + "@rollup/plugin-node-resolve": "~16.0.1", + "@rollup/plugin-replace": "~6.0.2", + "rollup": "~4.37.0", + "rollup-plugin-scss": "~4.0.1", + "sass": "^1.93.2" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.4.tgz", + "integrity": "sha512-YsmSKC29MJwf0gF8Rjjrg5LQCmyh+j/nD8/eP7f+BeoQTKYqs9RoWbjGOdy0+1Ekr68RJZMUOPVQaQisnIo4Rw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.26.10", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.10.tgz", + "integrity": "sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.26.10", + "@babel/helper-compilation-targets": "^7.26.5", + "@babel/helper-module-transforms": "^7.26.0", + "@babel/helpers": "^7.26.10", + "@babel/parser": "^7.26.10", + "@babel/template": "^7.26.9", + "@babel/traverse": "^7.26.10", + "@babel/types": "^7.26.10", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.3.tgz", + "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.3", + "@babel/types": "^7.28.2", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.27.3", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz", + "integrity": "sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.27.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", + "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.27.2", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.28.3.tgz", + "integrity": "sha512-V9f6ZFIYSLNEbuGA/92uOvYsGCJNsuA8ESZ4ldc09bWk/j8H8TKiPw8Mk1eG6olpnO0ALHJmYfZvF4MEE4gajg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-member-expression-to-functions": "^7.27.1", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/helper-replace-supers": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/traverse": "^7.28.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.27.1.tgz", + "integrity": "sha512-uVDC72XVf8UbrH5qQTc18Agb8emwjTiZrQE11Nv3CuBEZmVvTwwE9CBUEvHku06gQCAyYf8Nv6ja1IN+6LMbxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.1", + "regexpu-core": "^6.2.0", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.5.tgz", + "integrity": "sha512-uJnGFcPsWQK8fvjgGP5LZUZZsYGIoPeRjSF5PGwrelYgq7Q15/Ft9NGFp1zglwgIv//W0uG4BevRuSJRyylZPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-plugin-utils": "^7.27.1", + "debug": "^4.4.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.22.10" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.27.1.tgz", + "integrity": "sha512-E5chM8eWjTp/aNoVpcbfM7mLxu9XGLWYise2eBKGQomAk/Mb4XoxyqXTZbuTohbsl8EKqdlMhnDI2CCLfcs9wA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", + "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.28.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.27.1.tgz", + "integrity": "sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", + "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.27.1.tgz", + "integrity": "sha512-7fiA521aVw8lSPeI4ZOD3vRFkoqkJcS+z4hFo82bFSH/2tNd6eJ5qCVMS5OzDmZh/kaHQeBaeyxK6wljcPtveA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-wrap-function": "^7.27.1", + "@babel/traverse": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.27.1.tgz", + "integrity": "sha512-7EHz6qDZc8RYS5ElPoShMheWvEgERonFCs7IAonWLLUTXW59DP14bCZt89/GKyreYn8g3S83m21FelHKbeDCKA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-member-expression-to-functions": "^7.27.1", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/traverse": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.27.1.tgz", + "integrity": "sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.28.3.tgz", + "integrity": "sha512-zdf983tNfLZFletc0RRXYrHrucBEg95NIFMkn6K9dbeMYnsgHaSBGcQqdsCSStG2PYwRre0Qc2NNSCXbG+xc6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.3", + "@babel/types": "^7.28.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz", + "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.4.tgz", + "integrity": "sha512-yZbBqeM6TkpP9du/I2pUZnJsRMGGvOuIrhjzC1AwHwW+6he4mni6Bp/m8ijn0iOuZuPI2BfkCoSRunpyjnrQKg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.4" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.27.1.tgz", + "integrity": "sha512-QPG3C9cCVRQLxAVwmefEmwdTanECuUBMQZ/ym5kiw3XKCGA7qkuQLcjWWHcrD/GKbn/WmJwaezfuuAOcyKlRPA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.27.1.tgz", + "integrity": "sha512-qNeq3bCKnGgLkEXUuFry6dPlGfCdQNZbn7yUAPCInwAJHMU7THJfrBSozkcWq5sNM6RcF3S8XyQL2A52KNR9IA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.27.1.tgz", + "integrity": "sha512-g4L7OYun04N1WyqMNjldFwlfPCLVkgB54A/YCXICZYBsvJJE3kByKv9c9+R/nAfmIfjl2rKYLNyMHboYbZaWaA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.27.1.tgz", + "integrity": "sha512-oO02gcONcD5O1iTLi/6frMJBIwWEHceWGSGqrpCmEL8nogiS6J9PBlE48CaK20/Jx1LuRml9aDftLgdjXT8+Cw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/plugin-transform-optional-chaining": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.28.3.tgz", + "integrity": "sha512-b6YTX108evsvE4YgWyQ921ZAFFQm3Bn+CA3+ZXlNVnPhx+UfsVURoPjfGAPCjBgrqo30yX/C2nZGX96DxvR9Iw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.28.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.27.1.tgz", + "integrity": "sha512-UT/Jrhw57xg4ILHLFnzFpPDlMbcdEicaAtjPQpbj9wa8T4r5KVWCimHcL/460g8Ht0DMxDyjsLgiWSkVjnwPFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", + "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", + "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.27.1.tgz", + "integrity": "sha512-8Z4TGic6xW70FKThA5HYEKKyBpOOsucTOD1DjU3fZxDg+K3zBJcXMFnt/4yQiZnf5+MiOMSXQ9PaEK/Ilh1DeA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.28.0.tgz", + "integrity": "sha512-BEOdvX4+M765icNPZeidyADIvQ1m1gmunXufXxvRESy/jNNyfovIqUyE7MVgGBjWktCoJlzvFA1To2O4ymIO3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-remap-async-to-generator": "^7.27.1", + "@babel/traverse": "^7.28.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.27.1.tgz", + "integrity": "sha512-NREkZsZVJS4xmTr8qzE5y8AfIPqsdQfRuUiLRTEzb7Qii8iFWCyDKaUV2c0rCuh4ljDZ98ALHP/PetiBV2nddA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-remap-async-to-generator": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.27.1.tgz", + "integrity": "sha512-cnqkuOtZLapWYZUYM5rVIdv1nXYuFVIltZ6ZJ7nIj585QsjKM5dhL2Fu/lICXZ1OyIAFc7Qy+bvDAtTXqGrlhg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.28.4.tgz", + "integrity": "sha512-1yxmvN0MJHOhPVmAsmoW5liWwoILobu/d/ShymZmj867bAdxGbehIrew1DuLpw2Ukv+qDSSPQdYW1dLNE7t11A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.27.1.tgz", + "integrity": "sha512-D0VcalChDMtuRvJIu3U/fwWjf8ZMykz5iZsg77Nuj821vCKI3zCyRLwRdWbsuJ/uRwZhZ002QtCqIkwC/ZkvbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.28.3.tgz", + "integrity": "sha512-LtPXlBbRoc4Njl/oh1CeD/3jC+atytbnf/UqLoqTDcEYGUPj022+rvfkbDYieUrSj3CaV4yHDByPE+T2HwfsJg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.28.3", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.28.4.tgz", + "integrity": "sha512-cFOlhIYPBv/iBoc+KS3M6et2XPtbT2HiCRfBXWtfpc9OAyostldxIf9YAYB6ypURBBbx+Qv6nyrLzASfJe+hBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-globals": "^7.28.0", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-replace-supers": "^7.27.1", + "@babel/traverse": "^7.28.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.27.1.tgz", + "integrity": "sha512-lj9PGWvMTVksbWiDT2tW68zGS/cyo4AkZ/QTp0sQT0mjPopCmrSkzxeXkznjqBxzDI6TclZhOJbBmbBLjuOZUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/template": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.28.0.tgz", + "integrity": "sha512-v1nrSMBiKcodhsyJ4Gf+Z0U/yawmJDBOTpEB3mcQY52r9RIyPneGyAS/yM6seP/8I+mWI3elOMtT5dB8GJVs+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.28.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.27.1.tgz", + "integrity": "sha512-gEbkDVGRvjj7+T1ivxrfgygpT7GUd4vmODtYpbs0gZATdkX8/iSnOtZSxiZnsgm1YjTgjI6VKBGSJJevkrclzw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.27.1.tgz", + "integrity": "sha512-MTyJk98sHvSs+cvZ4nOauwTTG1JeonDjSGvGGUNHreGQns+Mpt6WX/dVzWBHgg+dYZhkC4X+zTDfkTU+Vy9y7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.27.1.tgz", + "integrity": "sha512-hkGcueTEzuhB30B3eJCbCYeCaaEQOmQR0AdvzpD4LoN0GXMWzzGSuRrxR2xTnCrvNbVwK9N6/jQ92GSLfiZWoQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.27.1.tgz", + "integrity": "sha512-MHzkWQcEmjzzVW9j2q8LGjwGWpG2mjwaaB0BNQwst3FIjqsg8Ct/mIZlvSPJvfi9y2AC8mi/ktxbFVL9pZ1I4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.27.1.tgz", + "integrity": "sha512-uspvXnhHvGKf2r4VVtBpeFnuDWsJLQ6MF6lGJLC89jBR1uoVeqM416AZtTuhTezOfgHicpJQmoD5YUakO/YmXQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.27.1.tgz", + "integrity": "sha512-tQvHWSZ3/jH2xuq/vZDy0jNn+ZdXJeM8gHvX4lnJmsc3+50yPlWdZXIc5ay+umX+2/tJIqHqiEqcJvxlmIvRvQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.27.1.tgz", + "integrity": "sha512-BfbWFFEJFQzLCQ5N8VocnCtA8J1CLkNTe2Ms2wocj75dd6VpiqS5Z5quTYcUoo4Yq+DN0rtikODccuv7RU81sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.27.1.tgz", + "integrity": "sha512-1bQeydJF9Nr1eBCMMbC+hdwmRlsv5XYOMu03YSWFwNs0HsAmtSxxF1fyuYPqemVldVyFmlCU7w8UE14LupUSZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.27.1.tgz", + "integrity": "sha512-6WVLVJiTjqcQauBhn1LkICsR2H+zm62I3h9faTDKt1qP4jn2o72tSvqMwtGFKGTpojce0gJs+76eZ2uCHRZh0Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.27.1.tgz", + "integrity": "sha512-0HCFSepIpLTkLcsi86GG3mTUzxV5jpmbv97hTETW3yzrAij8aqlD36toB1D0daVFJM8NK6GvKO0gslVQmm+zZA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.27.1.tgz", + "integrity": "sha512-SJvDs5dXxiae4FbSL1aBJlG4wvl594N6YEVVn9e3JGulwioy6z3oPjx/sQBO3Y4NwUu5HNix6KJ3wBZoewcdbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.27.1.tgz", + "integrity": "sha512-hqoBX4dcZ1I33jCSWcXrP+1Ku7kdqXf1oeah7ooKOIiAdKQ+uqftgCFNOSzA5AMS2XIHEYeGFg4cKRCdpxzVOQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.27.1.tgz", + "integrity": "sha512-iCsytMg/N9/oFq6n+gFTvUYDZQOMK5kEdeYxmxt91fcJGycfxVP9CnrxoliM0oumFERba2i8ZtwRUCMhvP1LnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.27.1.tgz", + "integrity": "sha512-OJguuwlTYlN0gBZFRPqwOGNWssZjfIUdS7HMYtN8c1KmwpwHFBwTeFZrg9XZa+DFTitWOW5iTAG7tyCUPsCCyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.27.1.tgz", + "integrity": "sha512-w5N1XzsRbc0PQStASMksmUeqECuzKuTJer7kFagK8AXgpCMkeDMO5S+aaFb7A51ZYDF7XI34qsTX+fkHiIm5yA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.27.1.tgz", + "integrity": "sha512-iQBE/xC5BV1OxJbp6WG7jq9IWiD+xxlZhLrdwpPkTX3ydmXdvoCpyfJN7acaIBZaOqTfr76pgzqBJflNbeRK+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.27.1.tgz", + "integrity": "sha512-SstR5JYy8ddZvD6MhV0tM/j16Qds4mIpJTOd1Yu9J9pJjH93bxHECF7pgtc28XvkzTD6Pxcm/0Z73Hvk7kb3Ng==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.27.1.tgz", + "integrity": "sha512-f6PiYeqXQ05lYq3TIfIDu/MtliKUbNwkGApPUvyo6+tc7uaR4cPjPe7DFPr15Uyycg2lZU6btZ575CuQoYh7MQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.27.1.tgz", + "integrity": "sha512-aGZh6xMo6q9vq1JGcw58lZ1Z0+i0xB2x0XaauNIUXd6O1xXc3RwoWEBlsTQrY4KQ9Jf0s5rgD6SiNkaUdJegTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.27.1.tgz", + "integrity": "sha512-fdPKAcujuvEChxDBJ5c+0BTaS6revLV7CJL08e4m3de8qJfNIuCc2nc7XJYOjBoTMJeqSmwXJ0ypE14RCjLwaw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.28.4.tgz", + "integrity": "sha512-373KA2HQzKhQCYiRVIRr+3MjpCObqzDlyrM6u4I201wL8Mp2wHf7uB8GhDwis03k2ti8Zr65Zyyqs1xOxUF/Ew==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/plugin-transform-destructuring": "^7.28.0", + "@babel/plugin-transform-parameters": "^7.27.7", + "@babel/traverse": "^7.28.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.27.1.tgz", + "integrity": "sha512-SFy8S9plRPbIcxlJ8A6mT/CxFdJx/c04JEctz4jf8YZaVS2px34j7NXRrlGlHkN/M2gnpL37ZpGRGVFLd3l8Ng==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-replace-supers": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.27.1.tgz", + "integrity": "sha512-txEAEKzYrHEX4xSZN4kJ+OfKXFVSWKB2ZxM9dpcE3wT7smwkNmXo5ORRlVzMVdJbD+Q8ILTgSD7959uj+3Dm3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.27.1.tgz", + "integrity": "sha512-BQmKPPIuc8EkZgNKsv0X4bPmOoayeu4F1YCwx2/CfmDSXDbp7GnzlUH+/ul5VGfRg1AoFPsrIThlEBj2xb4CAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.27.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.27.7.tgz", + "integrity": "sha512-qBkYTYCb76RRxUM6CcZA5KRu8K4SM8ajzVeUgVdMVO9NN9uI/GaVmBg/WKJJGnNokV9SY8FxNOVWGXzqzUidBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.27.1.tgz", + "integrity": "sha512-10FVt+X55AjRAYI9BrdISN9/AQWHqldOeZDUoLyif1Kn05a56xVBXb8ZouL8pZ9jem8QpXaOt8TS7RHUIS+GPA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.27.1.tgz", + "integrity": "sha512-5J+IhqTi1XPa0DXF83jYOaARrX+41gOewWbkPyjMNRDqgOCqdffGh8L3f/Ek5utaEBZExjSAzcyjmV9SSAWObQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-create-class-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.27.1.tgz", + "integrity": "sha512-oThy3BCuCha8kDZ8ZkgOg2exvPYUlprMukKQXI1r1pJ47NCvxfkEy8vK+r/hT9nF0Aa4H1WUPZZjHTFtAhGfmQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-display-name": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.28.0.tgz", + "integrity": "sha512-D6Eujc2zMxKjfa4Zxl4GHMsmhKKZ9VpcqIchJLvwTxad9zWIYulwYItBovpDOoNLISpcZSXoDJ5gaGbQUDqViA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.27.1.tgz", + "integrity": "sha512-2KH4LWGSrJIkVf5tSiBFYuXDAoWRq2MMwgivCf+93dd0GQi8RXLjKA/0EvRnVV5G0hrHczsquXuD01L8s6dmBw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/plugin-syntax-jsx": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-development": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.27.1.tgz", + "integrity": "sha512-ykDdF5yI4f1WrAolLqeF3hmYU12j9ntLQl/AOG1HAS21jxyg1Q0/J/tpREuYLfatGdGmXp/3yS0ZA76kOlVq9Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/plugin-transform-react-jsx": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-pure-annotations": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.27.1.tgz", + "integrity": "sha512-JfuinvDOsD9FVMTHpzA/pBLisxpv1aSf+OIV8lgH3MuWrks19R27e6a6DipIg4aX1Zm9Wpb04p8wljfKrVSnPA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.28.4.tgz", + "integrity": "sha512-+ZEdQlBoRg9m2NnzvEeLgtvBMO4tkFBw5SQIUgLICgTrumLoU7lr+Oghi6km2PFj+dbUt2u1oby2w3BDO9YQnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regexp-modifiers": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.27.1.tgz", + "integrity": "sha512-TtEciroaiODtXvLZv4rmfMhkCv8jx3wgKpL68PuiPh2M4fvz5jhsA7697N1gMvkvr/JTF13DrFYyEbY9U7cVPA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.27.1.tgz", + "integrity": "sha512-V2ABPHIJX4kC7HegLkYoDpfg9PVmuWy/i6vUM5eGK22bx4YVFD3M5F0QQnWQoDs6AGsUWTVOopBiMFQgHaSkVw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime": { + "version": "7.26.10", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.26.10.tgz", + "integrity": "sha512-NWaL2qG6HRpONTnj4JvDU6th4jYeZOJgu3QhmFTCihib0ermtOJqktA5BduGm3suhhVe9EMP9c9+mfJ/I9slqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.25.9", + "@babel/helper-plugin-utils": "^7.26.5", + "babel-plugin-polyfill-corejs2": "^0.4.10", + "babel-plugin-polyfill-corejs3": "^0.11.0", + "babel-plugin-polyfill-regenerator": "^0.6.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.27.1.tgz", + "integrity": "sha512-N/wH1vcn4oYawbJ13Y/FxcQrWk63jhfNa7jef0ih7PHSIHX2LB7GWE1rkPrOnka9kwMxb6hMl19p7lidA+EHmQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.27.1.tgz", + "integrity": "sha512-kpb3HUqaILBJcRFVhFUs6Trdd4mkrzcGXss+6/mxUd273PfbWqSDHRzMT2234gIg2QYfAjvXLSquP1xECSg09Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.27.1.tgz", + "integrity": "sha512-lhInBO5bi/Kowe2/aLdBAawijx+q1pQzicSgnkB6dUPc1+RC8QmJHKf2OjvU+NZWitguJHEaEmbV6VWEouT58g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.27.1.tgz", + "integrity": "sha512-fBJKiV7F2DxZUkg5EtHKXQdbsbURW3DZKQUWphDum0uRP6eHGGa/He9mc0mypL680pb+e/lDIthRohlv8NCHkg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.27.1.tgz", + "integrity": "sha512-RiSILC+nRJM7FY5srIyc4/fGIwUhyDuuBSdWn4y6yT6gm652DpCHZjIipgn6B7MQ1ITOUnAKWixEUjQRIBIcLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.27.1.tgz", + "integrity": "sha512-Ysg4v6AmF26k9vpfFuTZg8HRfVWzsh1kVfowA23y9j/Gu6dOuahdUVhkLqpObp3JIv27MLSii6noRnuKN8H0Mg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.27.1.tgz", + "integrity": "sha512-uW20S39PnaTImxp39O5qFlHLS9LJEmANjMG7SxIhap8rCHqu0Ik+tLEPX5DKmHn6CsWQ7j3lix2tFOa5YtL12Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.27.1.tgz", + "integrity": "sha512-xvINq24TRojDuyt6JGtHmkVkrfVV3FPT16uytxImLeBZqW3/H52yN+kM1MGuyPkIQxrzKwPHs5U/MP3qKyzkGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.27.1.tgz", + "integrity": "sha512-EtkOujbc4cgvb0mlpQefi4NTPBzhSIevblFevACNLUspmrALgmEBdL/XfnyyITfd8fKBZrZys92zOWcik7j9Tw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.26.9", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.26.9.tgz", + "integrity": "sha512-vX3qPGE8sEKEAZCWk05k3cpTAE3/nOYca++JA+Rd0z2NCNzabmYvEiSShKzm10zdquOIAVXsy2Ei/DTW34KlKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.26.8", + "@babel/helper-compilation-targets": "^7.26.5", + "@babel/helper-plugin-utils": "^7.26.5", + "@babel/helper-validator-option": "^7.25.9", + "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.9", + "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.9", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.9", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.25.9", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.9", + "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", + "@babel/plugin-syntax-import-assertions": "^7.26.0", + "@babel/plugin-syntax-import-attributes": "^7.26.0", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.25.9", + "@babel/plugin-transform-async-generator-functions": "^7.26.8", + "@babel/plugin-transform-async-to-generator": "^7.25.9", + "@babel/plugin-transform-block-scoped-functions": "^7.26.5", + "@babel/plugin-transform-block-scoping": "^7.25.9", + "@babel/plugin-transform-class-properties": "^7.25.9", + "@babel/plugin-transform-class-static-block": "^7.26.0", + "@babel/plugin-transform-classes": "^7.25.9", + "@babel/plugin-transform-computed-properties": "^7.25.9", + "@babel/plugin-transform-destructuring": "^7.25.9", + "@babel/plugin-transform-dotall-regex": "^7.25.9", + "@babel/plugin-transform-duplicate-keys": "^7.25.9", + "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.9", + "@babel/plugin-transform-dynamic-import": "^7.25.9", + "@babel/plugin-transform-exponentiation-operator": "^7.26.3", + "@babel/plugin-transform-export-namespace-from": "^7.25.9", + "@babel/plugin-transform-for-of": "^7.26.9", + "@babel/plugin-transform-function-name": "^7.25.9", + "@babel/plugin-transform-json-strings": "^7.25.9", + "@babel/plugin-transform-literals": "^7.25.9", + "@babel/plugin-transform-logical-assignment-operators": "^7.25.9", + "@babel/plugin-transform-member-expression-literals": "^7.25.9", + "@babel/plugin-transform-modules-amd": "^7.25.9", + "@babel/plugin-transform-modules-commonjs": "^7.26.3", + "@babel/plugin-transform-modules-systemjs": "^7.25.9", + "@babel/plugin-transform-modules-umd": "^7.25.9", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.25.9", + "@babel/plugin-transform-new-target": "^7.25.9", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.26.6", + "@babel/plugin-transform-numeric-separator": "^7.25.9", + "@babel/plugin-transform-object-rest-spread": "^7.25.9", + "@babel/plugin-transform-object-super": "^7.25.9", + "@babel/plugin-transform-optional-catch-binding": "^7.25.9", + "@babel/plugin-transform-optional-chaining": "^7.25.9", + "@babel/plugin-transform-parameters": "^7.25.9", + "@babel/plugin-transform-private-methods": "^7.25.9", + "@babel/plugin-transform-private-property-in-object": "^7.25.9", + "@babel/plugin-transform-property-literals": "^7.25.9", + "@babel/plugin-transform-regenerator": "^7.25.9", + "@babel/plugin-transform-regexp-modifiers": "^7.26.0", + "@babel/plugin-transform-reserved-words": "^7.25.9", + "@babel/plugin-transform-shorthand-properties": "^7.25.9", + "@babel/plugin-transform-spread": "^7.25.9", + "@babel/plugin-transform-sticky-regex": "^7.25.9", + "@babel/plugin-transform-template-literals": "^7.26.8", + "@babel/plugin-transform-typeof-symbol": "^7.26.7", + "@babel/plugin-transform-unicode-escapes": "^7.25.9", + "@babel/plugin-transform-unicode-property-regex": "^7.25.9", + "@babel/plugin-transform-unicode-regex": "^7.25.9", + "@babel/plugin-transform-unicode-sets-regex": "^7.25.9", + "@babel/preset-modules": "0.1.6-no-external-plugins", + "babel-plugin-polyfill-corejs2": "^0.4.10", + "babel-plugin-polyfill-corejs3": "^0.11.0", + "babel-plugin-polyfill-regenerator": "^0.6.1", + "core-js-compat": "^3.40.0", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.6-no-external-plugins", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", + "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/preset-react": { + "version": "7.26.3", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.26.3.tgz", + "integrity": "sha512-Nl03d6T9ky516DGK2YMxrTqvnpUW63TnJMOMonj+Zae0JiPC5BC9xPMSL6L8fiSpA5vP88qfygavVQvnLp+6Cw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-validator-option": "^7.25.9", + "@babel/plugin-transform-react-display-name": "^7.25.9", + "@babel/plugin-transform-react-jsx": "^7.25.9", + "@babel/plugin-transform-react-jsx-development": "^7.25.9", + "@babel/plugin-transform-react-pure-annotations": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.4.tgz", + "integrity": "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.4.tgz", + "integrity": "sha512-YEzuboP2qvQavAcjgQNVgsvHIDv6ZpwXvcvjmyySP2DIMuByS/6ioU5G9pYrWHM6T2YDfc7xga9iNzYOs12CFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.4", + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.4", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.4.tgz", + "integrity": "sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@parcel/watcher": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.1.tgz", + "integrity": "sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "dependencies": { + "detect-libc": "^1.0.3", + "is-glob": "^4.0.3", + "micromatch": "^4.0.5", + "node-addon-api": "^7.0.0" + }, + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "@parcel/watcher-android-arm64": "2.5.1", + "@parcel/watcher-darwin-arm64": "2.5.1", + "@parcel/watcher-darwin-x64": "2.5.1", + "@parcel/watcher-freebsd-x64": "2.5.1", + "@parcel/watcher-linux-arm-glibc": "2.5.1", + "@parcel/watcher-linux-arm-musl": "2.5.1", + "@parcel/watcher-linux-arm64-glibc": "2.5.1", + "@parcel/watcher-linux-arm64-musl": "2.5.1", + "@parcel/watcher-linux-x64-glibc": "2.5.1", + "@parcel/watcher-linux-x64-musl": "2.5.1", + "@parcel/watcher-win32-arm64": "2.5.1", + "@parcel/watcher-win32-ia32": "2.5.1", + "@parcel/watcher-win32-x64": "2.5.1" + } + }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.1.tgz", + "integrity": "sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-arm64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.1.tgz", + "integrity": "sha512-eAzPv5osDmZyBhou8PoF4i6RQXAfeKL9tjb3QzYuccXFMQU0ruIc/POh30ePnaOyD1UXdlKguHBmsTs53tVoPw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-x64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.1.tgz", + "integrity": "sha512-1ZXDthrnNmwv10A0/3AJNZ9JGlzrF82i3gNQcWOzd7nJ8aj+ILyW1MTxVk35Db0u91oD5Nlk9MBiujMlwmeXZg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-freebsd-x64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.1.tgz", + "integrity": "sha512-SI4eljM7Flp9yPuKi8W0ird8TI/JK6CSxju3NojVI6BjHsTyK7zxA9urjVjEKJ5MBYC+bLmMcbAWlZ+rFkLpJQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-glibc": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.1.tgz", + "integrity": "sha512-RCdZlEyTs8geyBkkcnPWvtXLY44BCeZKmGYRtSgtwwnHR4dxfHRG3gR99XdMEdQ7KeiDdasJwwvNSF5jKtDwdA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-musl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.1.tgz", + "integrity": "sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-glibc": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.1.tgz", + "integrity": "sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-musl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.1.tgz", + "integrity": "sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-glibc": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.1.tgz", + "integrity": "sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-musl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.1.tgz", + "integrity": "sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-arm64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.1.tgz", + "integrity": "sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-ia32": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.1.tgz", + "integrity": "sha512-c2KkcVN+NJmuA7CGlaGD1qJh1cLfDnQsHjE89E60vUEMlqduHGCdCLJCID5geFVM0dOtA3ZiIO8BoEQmzQVfpQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-x64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.1.tgz", + "integrity": "sha512-9lHBdJITeNR++EvSQVUcaZoWupyHfXe1jZvGZ06O/5MflPcuPLtEphScIBL+AiCWBO46tDSHzWyD0uDmmZqsgA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@rollup/plugin-babel": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-6.0.4.tgz", + "integrity": "sha512-YF7Y52kFdFT/xVSuVdjkV5ZdX/3YtmX0QulG+x0taQOtJdHYzVU61aSSkAgVJ7NOv6qPkIYiJSgSWWN/DM5sGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.18.6", + "@rollup/pluginutils": "^5.0.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "@types/babel__core": "^7.1.9", + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "@types/babel__core": { + "optional": true + }, + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-commonjs": { + "version": "28.0.6", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-28.0.6.tgz", + "integrity": "sha512-XSQB1K7FUU5QP+3lOQmVCE3I0FcbbNvmNT4VJSj93iUjayaARrTQeoRdiYQoftAJBLrR9t2agwAd3ekaTgHNlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "commondir": "^1.0.1", + "estree-walker": "^2.0.2", + "fdir": "^6.2.0", + "is-reference": "1.2.1", + "magic-string": "^0.30.3", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0 || 14 >= 14.17" + }, + "peerDependencies": { + "rollup": "^2.68.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-node-resolve": { + "version": "16.0.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-16.0.1.tgz", + "integrity": "sha512-tk5YCxJWIG81umIvNkSod2qK5KyQW19qcBF/B78n1bjtOON6gzKoVeSzAE8yHCZEDmqkHKkxplExA8KzdJLJpA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "@types/resolve": "1.20.2", + "deepmerge": "^4.2.2", + "is-module": "^1.0.0", + "resolve": "^1.22.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.78.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-replace": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-6.0.2.tgz", + "integrity": "sha512-7QaYCf8bqF04dOy7w/eHmJeNExxTYwvKAmlSAH/EaWWUzbT0h5sbF6bktFoX/0F/0qwng5/dWFMyf3gzaM8DsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "magic-string": "^0.30.3" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/pluginutils": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.3.0.tgz", + "integrity": "sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.37.0.tgz", + "integrity": "sha512-l7StVw6WAa8l3vA1ov80jyetOAEo1FtHvZDbzXDO/02Sq/QVvqlHkYoFwDJPIMj0GKiistsBudfx5tGFnwYWDQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.37.0.tgz", + "integrity": "sha512-6U3SlVyMxezt8Y+/iEBcbp945uZjJwjZimu76xoG7tO1av9VO691z8PkhzQ85ith2I8R2RddEPeSfcbyPfD4hA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.37.0.tgz", + "integrity": "sha512-+iTQ5YHuGmPt10NTzEyMPbayiNTcOZDWsbxZYR1ZnmLnZxG17ivrPSWFO9j6GalY0+gV3Jtwrrs12DBscxnlYA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.37.0.tgz", + "integrity": "sha512-m8W2UbxLDcmRKVjgl5J/k4B8d7qX2EcJve3Sut7YGrQoPtCIQGPH5AMzuFvYRWZi0FVS0zEY4c8uttPfX6bwYQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.37.0.tgz", + "integrity": "sha512-FOMXGmH15OmtQWEt174v9P1JqqhlgYge/bUjIbiVD1nI1NeJ30HYT9SJlZMqdo1uQFyt9cz748F1BHghWaDnVA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.37.0.tgz", + "integrity": "sha512-SZMxNttjPKvV14Hjck5t70xS3l63sbVwl98g3FlVVx2YIDmfUIy29jQrsw06ewEYQ8lQSuY9mpAPlmgRD2iSsA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.37.0.tgz", + "integrity": "sha512-hhAALKJPidCwZcj+g+iN+38SIOkhK2a9bqtJR+EtyxrKKSt1ynCBeqrQy31z0oWU6thRZzdx53hVgEbRkuI19w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.37.0.tgz", + "integrity": "sha512-jUb/kmn/Gd8epbHKEqkRAxq5c2EwRt0DqhSGWjPFxLeFvldFdHQs/n8lQ9x85oAeVb6bHcS8irhTJX2FCOd8Ag==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.37.0.tgz", + "integrity": "sha512-oNrJxcQT9IcbcmKlkF+Yz2tmOxZgG9D9GRq+1OE6XCQwCVwxixYAa38Z8qqPzQvzt1FCfmrHX03E0pWoXm1DqA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.37.0.tgz", + "integrity": "sha512-pfxLBMls+28Ey2enpX3JvjEjaJMBX5XlPCZNGxj4kdJyHduPBXtxYeb8alo0a7bqOoWZW2uKynhHxF/MWoHaGQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loongarch64-gnu": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.37.0.tgz", + "integrity": "sha512-yCE0NnutTC/7IGUq/PUHmoeZbIwq3KRh02e9SfFh7Vmc1Z7atuJRYWhRME5fKgT8aS20mwi1RyChA23qSyRGpA==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.37.0.tgz", + "integrity": "sha512-NxcICptHk06E2Lh3a4Pu+2PEdZ6ahNHuK7o6Np9zcWkrBMuv21j10SQDJW3C9Yf/A/P7cutWoC/DptNLVsZ0VQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.37.0.tgz", + "integrity": "sha512-PpWwHMPCVpFZLTfLq7EWJWvrmEuLdGn1GMYcm5MV7PaRgwCEYJAwiN94uBuZev0/J/hFIIJCsYw4nLmXA9J7Pw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.37.0.tgz", + "integrity": "sha512-DTNwl6a3CfhGTAOYZ4KtYbdS8b+275LSLqJVJIrPa5/JuIufWWZ/QFvkxp52gpmguN95eujrM68ZG+zVxa8zHA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.37.0.tgz", + "integrity": "sha512-hZDDU5fgWvDdHFuExN1gBOhCuzo/8TMpidfOR+1cPZJflcEzXdCy1LjnklQdW8/Et9sryOPJAKAQRw8Jq7Tg+A==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.37.0.tgz", + "integrity": "sha512-pKivGpgJM5g8dwj0ywBwe/HeVAUSuVVJhUTa/URXjxvoyTT/AxsLTAbkHkDHG7qQxLoW2s3apEIl26uUe08LVQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.37.0.tgz", + "integrity": "sha512-E2lPrLKE8sQbY/2bEkVTGDEk4/49UYRVWgj90MY8yPjpnGBQ+Xi1Qnr7b7UIWw1NOggdFQFOLZ8+5CzCiz143w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.37.0.tgz", + "integrity": "sha512-Jm7biMazjNzTU4PrQtr7VS8ibeys9Pn29/1bm4ph7CP2kf21950LgN+BaE2mJ1QujnvOc6p54eWWiVvn05SOBg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.37.0.tgz", + "integrity": "sha512-e3/1SFm1OjefWICB2Ucstg2dxYDkDTZGDYgwufcbsxTHyqQps1UQf33dFEChBNmeSsTOyrjw2JJq0zbG5GF6RA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.37.0.tgz", + "integrity": "sha512-LWbXUBwn/bcLx2sSsqy7pK5o+Nr+VCoRoAohfJ5C/aBio9nfJmGQqHAhU6pwxV/RmyTk5AqdySma7uwWGlmeuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/resolve": { + "version": "1.20.2", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz", + "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.14", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.14.tgz", + "integrity": "sha512-Co2Y9wX854ts6U8gAAPXfn0GmAyctHuK8n0Yhfjd6t30g7yvKjspvvOo9yG+z52PZRgFErt7Ka2pYnXCjLKEpg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.27.7", + "@babel/helper-define-polyfill-provider": "^0.6.5", + "semver": "^6.3.1" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.11.1.tgz", + "integrity": "sha512-yGCqvBT4rwMczo28xkH/noxJ6MZ4nJfkVYdoDaC/utLtWrXxv27HVrzAeSbqR8SxDsp46n0YF47EbHoixy6rXQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.3", + "core-js-compat": "^3.40.0" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.5.tgz", + "integrity": "sha512-ISqQ2frbiNU9vIJkzg7dlPpznPZ4jOiUQ1uSmB0fEHeowtN3COYRsXr/xexn64NpU13P06jc/L5TgiJXOgrbEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.5" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.9.tgz", + "integrity": "sha512-hY/u2lxLrbecMEWSB0IpGzGyDyeoMFQhCvZd2jGFSE5I17Fh01sYUBPCJtkWERw7zrac9+cIghxm/ytJa2X8iA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.js" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.26.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.26.2.tgz", + "integrity": "sha512-ECFzp6uFOSB+dcZ5BK/IBaGWssbSYBHvuMeMt3MMFyhI0Z8SqGgEkBLARgpRH3hutIgPVsALcMwbDrJqPxQ65A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.8.3", + "caniuse-lite": "^1.0.30001741", + "electron-to-chromium": "^1.5.218", + "node-releases": "^2.0.21", + "update-browserslist-db": "^1.1.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001746", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001746.tgz", + "integrity": "sha512-eA7Ys/DGw+pnkWWSE/id29f2IcPHVoE8wxtvE5JdvD2V28VTDPy1yEeo11Guz0sJ4ZeGRcm3uaTcAqK1LXaphA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/core-js-compat": { + "version": "3.45.1", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.45.1.tgz", + "integrity": "sha512-tqTt5T4PzsMIZ430XGviK4vzYSoeNJ6CXODi6c/voxOT6IZqBht5/EKaSNnYiEjjRYxjVz7DQIsOsY0XNi8PIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "browserslist": "^4.25.3" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "dev": true, + "license": "Apache-2.0", + "optional": true, + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.228", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.228.tgz", + "integrity": "sha512-nxkiyuqAn4MJ1QbobwqJILiDtu/jk14hEAWaMiJmNPh1Z+jqoFlBFZjdXwLWGeVSeu9hGLg6+2G9yJaW8rBIFA==", + "dev": true, + "license": "ISC" + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true, + "license": "MIT" + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/immutable": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.3.tgz", + "integrity": "sha512-+chQdDfvscSF1SJqv2gn4SRO2ZyS3xL3r7IW/wWEEzrzLisnOlKiQu5ytC/BVNcS15C39WT2Hg/bjKjDMcu+zg==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", + "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-reference": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", + "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "*" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true, + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/magic-string": { + "version": "0.30.19", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.19.tgz", + "integrity": "sha512-2N21sPY9Ws53PZvsEpVtNuSW+ScYbQdp4b9qUaL+9QkHUrGFKo56Lg9Emg5s9V/qrtNBmiR01sYhUOwu3H+VOw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/node-releases": { + "version": "2.0.21", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.21.tgz", + "integrity": "sha512-5b0pgg78U3hwXkCM8Z9b2FJdPZlr9Psr9V2gQPESdGHqbntyFJKFW4r5TeWGFzafGY3hzs1JC62VEQMbl1JFkw==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/react": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz", + "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.0.0.tgz", + "integrity": "sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.25.0" + }, + "peerDependencies": { + "react": "^19.0.0" + } + }, + "node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true, + "license": "MIT" + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.2.tgz", + "integrity": "sha512-m03P+zhBeQd1RGnYxrGyDAPpWX/epKirLrp8e3qevZdVkKtnCrjjWczIbYc8+xd6vcTStVlqfycTx1KR4LOr0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regexpu-core": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.4.0.tgz", + "integrity": "sha512-0ghuzq67LI9bLXpOX/ISfve/Mq33a4aFRzoQYhnnok1JOFpmE/A2TBGkNVenOGEeSBCjIiWcc6MVOG5HEQv0sA==", + "dev": true, + "license": "MIT", + "dependencies": { + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.2.2", + "regjsgen": "^0.8.0", + "regjsparser": "^0.13.0", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.2.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/regjsparser": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.0.tgz", + "integrity": "sha512-NZQZdC5wOE/H3UT28fVGL+ikOZcEzfMGk/c3iN9UGxzWHMa1op7274oyiUVrAG4B2EuFhus8SvkaYnhvW92p9Q==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "jsesc": "~3.1.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/rollup": { + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.37.0.tgz", + "integrity": "sha512-iAtQy/L4QFU+rTJ1YUjXqJOJzuwEghqWzCEYD2FEghT7Gsy1VdABntrO4CLopA5IkflTyqNiLNwPcOJ3S7UKLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.6" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.37.0", + "@rollup/rollup-android-arm64": "4.37.0", + "@rollup/rollup-darwin-arm64": "4.37.0", + "@rollup/rollup-darwin-x64": "4.37.0", + "@rollup/rollup-freebsd-arm64": "4.37.0", + "@rollup/rollup-freebsd-x64": "4.37.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.37.0", + "@rollup/rollup-linux-arm-musleabihf": "4.37.0", + "@rollup/rollup-linux-arm64-gnu": "4.37.0", + "@rollup/rollup-linux-arm64-musl": "4.37.0", + "@rollup/rollup-linux-loongarch64-gnu": "4.37.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.37.0", + "@rollup/rollup-linux-riscv64-gnu": "4.37.0", + "@rollup/rollup-linux-riscv64-musl": "4.37.0", + "@rollup/rollup-linux-s390x-gnu": "4.37.0", + "@rollup/rollup-linux-x64-gnu": "4.37.0", + "@rollup/rollup-linux-x64-musl": "4.37.0", + "@rollup/rollup-win32-arm64-msvc": "4.37.0", + "@rollup/rollup-win32-ia32-msvc": "4.37.0", + "@rollup/rollup-win32-x64-msvc": "4.37.0", + "fsevents": "~2.3.2" + } + }, + "node_modules/rollup-plugin-scss": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/rollup-plugin-scss/-/rollup-plugin-scss-4.0.1.tgz", + "integrity": "sha512-3W3+3OzR+shkDl3hJ1XTAuGkP4AfiLgIjie2GtcoZ9pHfRiNqeDbtCu1EUnkjZ98EPIM6nnMIXkKlc7Sx5bRvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "rollup-pluginutils": "^2.3.3" + } + }, + "node_modules/rollup-pluginutils": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz", + "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "estree-walker": "^0.6.1" + } + }, + "node_modules/rollup-pluginutils/node_modules/estree-walker": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz", + "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==", + "dev": true, + "license": "MIT" + }, + "node_modules/rollup/node_modules/@types/estree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/sass": { + "version": "1.93.2", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.93.2.tgz", + "integrity": "sha512-t+YPtOQHpGW1QWsh1CHQ5cPIr9lbbGZLZnbihP/D/qZj/yuV68m8qarcV17nvkOX81BCrvzAlq2klCQFZghyTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^4.0.0", + "immutable": "^5.0.2", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=14.0.0" + }, + "optionalDependencies": { + "@parcel/watcher": "^2.4.1" + } + }, + "node_modules/scheduler": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.25.0.tgz", + "integrity": "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz", + "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.1.tgz", + "integrity": "sha512-JQ84qTuMg4nVkx8ga4A16a1epI9H6uTXAknqxkGF/aFfRLw1xC/Bp24HNLaZhHSkWd3+84t8iXnp1J0kYcZHhg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.2.0.tgz", + "integrity": "sha512-hpbDzxUY9BFwX+UeBnxv3Sh1q7HFxj48DTmXchNgRa46lO8uj3/1iEn3MiNUYTg1g9ctIqXCCERn8gYZhHC5lQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + } + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/package.json b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/package.json new file mode 100644 index 0000000000000000000000000000000000000000..405b2fcfa80cec0874375e5798f69d8b8fa75779 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/package.json @@ -0,0 +1,30 @@ +{ + "name": "reactjs", + "version": "1.0.0", + "description": "", + "main": "plugin.js", + "scripts": { + "build": "rollup -c" + }, + "type": "module", + "author": "", + "license": "ISC", + "dependencies": { + "@babel/runtime": "^7.28.4", + "react": "~19.0.0", + "react-dom": "~19.0.0" + }, + "devDependencies": { + "@babel/core": "~7.26.10", + "@babel/plugin-transform-runtime": "~7.26.10", + "@babel/preset-env": "~7.26.9", + "@babel/preset-react": "~7.26.3", + "@rollup/plugin-babel": "~6.0.4", + "@rollup/plugin-commonjs": "~28.0.3", + "@rollup/plugin-node-resolve": "~16.0.1", + "@rollup/plugin-replace": "~6.0.2", + "rollup": "~4.37.0", + "rollup-plugin-scss": "~4.0.1", + "sass": "^1.93.2" + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/rollup.config.js b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/rollup.config.js new file mode 100644 index 0000000000000000000000000000000000000000..b79e2cc99f0805e7f6dc1c6177d07bc3299dccfc --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/rollup.config.js @@ -0,0 +1,45 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import babel from "@rollup/plugin-babel"; +import resolve from "@rollup/plugin-node-resolve"; +import commonjs from "@rollup/plugin-commonjs"; +import replace from "@rollup/plugin-replace"; +import scss from "rollup-plugin-scss"; + +export default { + input: "src/plugin.js", + output: { + file: "dist/plugin.js" + }, + plugins: [ + resolve(), + babel({ + babelHelpers: "runtime", + skipPreflightCheck: true, + compact: true + }), + commonjs({ + include: "node_modules/**" + }), + replace({ + "process.env.NODE_ENV": JSON.stringify("production"), + preventAssignment: true + }), + scss({fileName: 'plugin.css'}) + ] +}; \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/screenshot.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..15bc5c54da05b949fac2cd874acaeb8c01e56c52 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/screenshot.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6358b813505fb34a95072f9ee2f28d46623b144cda6ebdbc6651936e044e929d +size 152514 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/src/Table/Table.js b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/src/Table/Table.js new file mode 100644 index 0000000000000000000000000000000000000000..ab7c0149542e41f74c1303bdf1f473d801b929e2 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/src/Table/Table.js @@ -0,0 +1,43 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import React from "react"; + +import "./Table.scss"; + +export default function Table({ head, children }) { + return ( + + + {head} + + {children} +
+ ); +} + +Table.Head = function Head({ children }) { + return {children}; +}; + +Table.Row = function Row({ children }) { + return {children}; +}; + +Table.Cell = function Cell({ children }) { + return {children}; +}; diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/src/Table/Table.scss b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/src/Table/Table.scss new file mode 100644 index 0000000000000000000000000000000000000000..6bf06fa3888b8dc01d2ed74249752da1240da6d9 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/src/Table/Table.scss @@ -0,0 +1,25 @@ +.Table { + width: 100%; + max-width: 100%; + + .TableRow { + &:nth-of-type(odd) { + background-color: #f9f9f9; + } + &:hover { + background-color: #eaf0f8; + } + } + + .TableHead { + padding: 5px; + border-bottom: 2px solid #ddd; + } + + .TableCell { + padding: 5px; + line-height: 1.5; + vertical-align: top; + border-top: 1px solid #ddd; + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/src/Table/index.js b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/src/Table/index.js new file mode 100644 index 0000000000000000000000000000000000000000..149b158d72b221a9de301ec0f6e0ccb95ad6ddf0 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/src/Table/index.js @@ -0,0 +1,18 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export { default as Table } from "./Table"; diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/src/UserOperationCount.js b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/src/UserOperationCount.js new file mode 100644 index 0000000000000000000000000000000000000000..5fe81dee69c58a33e8644104d819d5bb28741533 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/src/UserOperationCount.js @@ -0,0 +1,83 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import React, { useState, useEffect } from "react"; + +import { Table } from "./Table"; + +function UserOperationCount({ processDefinitionId, camundaApi }) { + const [opLog, setOpLog] = useState(); + + const engineApi = camundaApi.engineApi; + + useEffect(() => { + fetch( + `${engineApi}/history/user-operation?maxResults=2000&processDefinitionId=${processDefinitionId}` + ) + .then(async res => { + setOpLog(await res.json()); + }) + .catch(err => { + console.error(err); + }); + }, [processDefinitionId]); + + if (!opLog) { + return
Loading...
; + } + + const userMap = {}; + + opLog.forEach(element => { + const currentEntry = userMap[element.userId] || { + categories: new Set(), + operations: 0 + }; + + currentEntry.operations++; + currentEntry.categories.add(element.category); + + userMap[element.userId] = currentEntry; + }); + + return ( + + UserId + User Roles + Number of Operations + + } + > + {Object.keys(userMap).map(value => { + const user = userMap[value]; + return ( + + {value} + + {[...user.categories].join(", ")} + + {user.operations} + + ); + })} +
+ ); +} + +export default UserOperationCount; diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/src/plugin.js b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/src/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..936ef6f5c91411856e32a444197b72c22286251e --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-react-involved-users/src/plugin.js @@ -0,0 +1,46 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import React from "react"; +import { createRoot } from 'react-dom/client'; + +import UserOperationCount from "./UserOperationCount"; + +let container; + +export default { + id: "involvedUsers", + pluginPoint: "cockpit.processDefinition.runtime.tab", + priority: 9, + render: (node, { processDefinitionId, api }) => { + container = createRoot(node); + container.render( + + ); + }, + unmount: () => { + if (container) { + container.unmount(); + } + }, + properties: { + label: "Involved Users" + } +}; diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-request-interceptor/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-request-interceptor/README.md new file mode 100644 index 0000000000000000000000000000000000000000..76c514136e0325735139f5c69c8e1274b95c2b7d --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/cockpit/cockpit-request-interceptor/README.md @@ -0,0 +1,6 @@ +"Request Interceptor" Cockpit Script +==================================== + +This example is not actively maintained anymore. You can refer to the [example with fixed version of Camunda 7.18](https://github.com/camunda/camunda-bpm-examples/blob/7.18/cockpit/cockpit-request-interceptor). +Due to Camunda Platform 7 backward compatibility, the examples usually still work with later versions. However, you +might need to adjust them to make them work. \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/README.md new file mode 100644 index 0000000000000000000000000000000000000000..15b96a9b2fd870cd9ea2044b569b33334ee54922 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/README.md @@ -0,0 +1,14 @@ +# Jakarta EJB Process Application Example + +This example demonstrates how to deploy a Jakarta EJB process application. + +## How to use it + +1. Build it with Maven. +2. Deploy it to a `camunda-bpm-platform` distro of your own choice that supports Jakarta EE 9+ EJBs (e.g. WildFly). +3. Wait a minute. +4. Watch out for this console log: + +```bash +This is a @Stateless Ejb component invoked from a BPMN 2.0 process. +``` diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..aa04b044678d0957851a365ffe9268ac4d384a31 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/pom.xml @@ -0,0 +1,69 @@ + + 4.0.0 + + org.camunda.bpm.quickstart + camunda-quickstart-ejb-pa-jakarta + war + Camunda Platform - Quickstarts - Jakarta Ejb Process Application + 1.0-SNAPSHOT + + + 7.24.0 + 11.0.0 + 3.14.1 + 3.4.0 + 17 + UTF-8 + false + + + + + + org.camunda.bpm + camunda-engine + ${version.camunda} + provided + + + + org.camunda.bpm.javaee + camunda-ejb-client-jakarta + ${version.camunda} + + + + org.camunda.bpm + camunda-engine-cdi-jakarta + ${version.camunda} + + + + + jakarta.platform + jakarta.jakartaee-api + ${version.jakarta-ee-specs} + pom + provided + + + + + + + + + + org.apache.maven.plugins + maven-war-plugin + ${version.maven-war-plugin} + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.maven-compiler-plugin} + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/src/main/java/org/camunda/bpm/quickstart/ejb/EjbJavaDelegate.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/src/main/java/org/camunda/bpm/quickstart/ejb/EjbJavaDelegate.java new file mode 100644 index 0000000000000000000000000000000000000000..adc1d0dbfb5f40e225e99304e49936ab004b7969 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/src/main/java/org/camunda/bpm/quickstart/ejb/EjbJavaDelegate.java @@ -0,0 +1,43 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.quickstart.ejb; + +import java.util.logging.Logger; + +import jakarta.ejb.Stateless; +import jakarta.inject.Named; + +import org.camunda.bpm.engine.delegate.DelegateExecution; +import org.camunda.bpm.engine.delegate.JavaDelegate; + +/** + * This is an Ejb which is invoked form a Service task + * + */ +@Named("exampleBean") +@Stateless +public class EjbJavaDelegate implements JavaDelegate { + + private final static Logger LOGGER = Logger.getLogger(EjbJavaDelegate.class.getName()); + + public void execute(DelegateExecution execution) { + + LOGGER.info("\n\n\n This is a @Stateless Ejb component invoked from a BPMN 2.0 process \n\n\n"); + + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/src/main/java/org/camunda/bpm/quickstart/ejb/EjbProcessStarter.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/src/main/java/org/camunda/bpm/quickstart/ejb/EjbProcessStarter.java new file mode 100644 index 0000000000000000000000000000000000000000..9f92d34257d52084bfdeba3c85c17b7f8aab9b71 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/src/main/java/org/camunda/bpm/quickstart/ejb/EjbProcessStarter.java @@ -0,0 +1,46 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.quickstart.ejb; + +import jakarta.ejb.DependsOn; +import jakarta.ejb.Schedule; +import jakarta.ejb.Singleton; +import jakarta.ejb.Startup; +import jakarta.inject.Inject; + +import org.camunda.bpm.engine.RuntimeService; + +/** + * Ejb which is automatically started when the application is deployed and creates a new process instance + * + */ +@Startup +@Singleton +@DependsOn("DefaultEjbProcessApplication") +public class EjbProcessStarter { + + @Inject + private RuntimeService runtimeService; + + @Schedule(hour="*", minute="*") + public void startProcessInstance() { + + runtimeService.startProcessInstanceByKey("testResolveBean"); + + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/src/main/resources/EjbExpressionResolvingTest.testResolveBean.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/src/main/resources/EjbExpressionResolvingTest.testResolveBean.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..3a0dd41b74323db5e91a4b4bbeb9be61d876dc2e --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/src/main/resources/EjbExpressionResolvingTest.testResolveBean.bpmn @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/src/main/resources/META-INF/processes.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/src/main/resources/META-INF/processes.xml new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/src/main/webapp/WEB-INF/beans.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/src/main/webapp/WEB-INF/beans.xml new file mode 100644 index 0000000000000000000000000000000000000000..e779ef1895d4557806ac156a0ce64ab771fe7137 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa-jakarta/src/main/webapp/WEB-INF/beans.xml @@ -0,0 +1,5 @@ + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b7ee47508df9ec4f701ec6c47661c05ff48eb22d --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/ejb-pa/README.md @@ -0,0 +1,6 @@ +# EJB Process Application Example + +This example is not actively maintained anymore. You can refer to the [example with fixed version of Camunda 7.22](https://github.com/camunda/camunda-bpm-examples/tree/7.22/deployment/ejb-pa). +Due to Camunda Platform 7 backward compatibility, the examples usually still work with later versions. However, you might need to adjust them to make them work. + +Or have a look at Jakarta EJB process application example: [deployment/ejb-pa-jakarta](/deployment/ejb-pa-jakarta). \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f256c7b474c27c132ad880cf8d0418aff530dae5 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/README.md @@ -0,0 +1,141 @@ +# Spring 6 configured embedded process engine and REST API + +This example demonstrates how to set up a web application, which + +* Bundles the `camunda-engine` JAR library +* Starts and configures a process engine in a Spring 6 Application context +* Bundles the `camunda-engine-rest-jakarta` library +* Exposes the Process Engine API via REST + +> **Note:** This project must be deployed on a vanilla Apache Tomcat 10 server, NOT the prepackaged distribution +> which can be downloaded from https://camunda.com. + +## Requirements + +* Java 17 + +## Why is this example interesting? + +This example demonstrates how to perform a standalone embedded setup with a Web application which +bundles both the Camunda Process Engine and Camunda Engine REST JARs. + +## Show me the important parts! + +The Process Engine is configured in the Spring application context: + +```xml + + + + + + + + + + + + + + + + + + +``` + +A custom JAX-RS Application class deploys the REST Endpoints: + +```java +public class RestProcessEngineDeployment extends Application { + + @Override + public Set> getClasses() { + Set> classes = new HashSet<>(); + + classes.addAll(CamundaRestResources.getResourceClasses()); + classes.addAll(CamundaRestResources.getConfigurationClasses()); + + return classes; + } + +} +``` + +Implement the REST Process Engine Provider SPI (provides the process engine to the REST application): + +```java +public class RestProcessEngineProvider implements ProcessEngineProvider { + + public ProcessEngine getDefaultProcessEngine() { + return ProcessEngines.getDefaultProcessEngine(); + } + + public ProcessEngine getProcessEngine(String name) { + return ProcessEngines.getProcessEngine(name); + } + + public Set getProcessEngineNames() { + return ProcessEngines.getProcessEngines().keySet(); + } + +} +``` + +Add a file named: + `src/main/resources/META-INF/services/org.camunda.bpm.engine.rest.spi.ProcessEngineProvider` +which contains the name of the provider: + `org.camunda.bpm.example.loanapproval.rest.RestProcessEngineProvider` + +Reference all required libraries in pom.xml: + +```xml + + org.camunda.bpm + camunda-engine + ${camunda.version} + + + + org.camunda.bpm + camunda-engine-spring + ${camunda.version} + + + + org.camunda.bpm + camunda-engine-rest-jakarta + ${camunda.version} + classes + + + + org.jboss.resteasy + resteasy-core + ${version.resteasy} + + + + org.springframework + spring-web + ${spring.version} + + + + com.h2database + h2 + ${version.h2} + +``` + +## How to use it? + +1. Build it with Maven. +2. Deploy it to a vanilla Apache Tomcat 10 server, NOT the prepackaged distribution which can be downloaded from https://camunda.com! +3. Access the [REST Endpoint](http://localhost:8080/camunda-quickstart-embedded-spring-rest-1.0-SNAPSHOT/engine/default/process-definition) diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..a309522151903d2deeed326ba24d7dcf511f27e2 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/pom.xml @@ -0,0 +1,133 @@ + + 4.0.0 + + org.camunda.bpm.quickstart + camunda-quickstart-embedded-spring-rest + war + Camunda Platform - Quickstarts - EMBEDDED - Spring REST + 1.0-SNAPSHOT + + + 7.24.0 + 6.2.11 + 6.2.14.Final + 2.3.232 + 1.7.32 + + 3.11.0 + 3.3.1 + 17 + UTF-8 + + + + + + org.camunda.bpm + camunda-bom + ${version.camunda} + import + pom + + + + + + + + org.camunda.bpm + camunda-engine + + + + org.camunda.bpm + camunda-engine-spring-6 + + + + org.camunda.bpm + camunda-engine-rest-jakarta + classes + + + + org.jboss.resteasy + resteasy-core + ${version.resteasy} + + + + org.springframework + spring-web + ${version.spring} + + + + org.springframework + spring-beans + ${version.spring} + + + + org.springframework + spring-context + ${version.spring} + + + + org.springframework + spring-jdbc + ${version.spring} + + + + org.springframework + spring-tx + ${version.spring} + + + + org.springframework + spring-orm + ${version.spring} + + + + com.h2database + h2 + ${version.h2} + + + + org.slf4j + slf4j-simple + ${version.slf4j} + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.maven-compiler-plugin} + + + org.apache.maven.plugins + maven-war-plugin + ${version.maven-war-plugin} + + + + + + + + camunda-bpm-nexus + camunda-bpm-nexus + https://artifacts.camunda.com/artifactory/private/ + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/java/org/camunda/bpm/example/loanapproval/CalculateInterestService.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/java/org/camunda/bpm/example/loanapproval/CalculateInterestService.java new file mode 100644 index 0000000000000000000000000000000000000000..ce29a211f614b35c3324b907fa398f5553884f57 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/java/org/camunda/bpm/example/loanapproval/CalculateInterestService.java @@ -0,0 +1,34 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.loanapproval; + +import org.camunda.bpm.engine.delegate.DelegateExecution; +import org.camunda.bpm.engine.delegate.JavaDelegate; + +import java.util.logging.Logger; + +public class CalculateInterestService implements JavaDelegate { + + protected static final Logger LOG = Logger.getLogger(CalculateInterestService.class.getName()); + + public void execute(DelegateExecution delegate) { + + LOG.info("Spring Bean invoked."); + + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/java/org/camunda/bpm/example/loanapproval/Starter.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/java/org/camunda/bpm/example/loanapproval/Starter.java new file mode 100644 index 0000000000000000000000000000000000000000..bc2c2dab3f59a76273dfe2668db9a34aef1c8ee2 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/java/org/camunda/bpm/example/loanapproval/Starter.java @@ -0,0 +1,32 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.loanapproval; + +import org.camunda.bpm.engine.RuntimeService; +import org.springframework.beans.factory.InitializingBean; +import org.springframework.beans.factory.annotation.Autowired; + +public class Starter implements InitializingBean { + + @Autowired + private RuntimeService runtimeService; + + public void afterPropertiesSet() { + runtimeService.startProcessInstanceByKey("loanApproval"); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/java/org/camunda/bpm/example/loanapproval/rest/RestProcessEngineDeployment.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/java/org/camunda/bpm/example/loanapproval/rest/RestProcessEngineDeployment.java new file mode 100644 index 0000000000000000000000000000000000000000..06aaa9a4e4e8900c77709bc8ce172c5d850d2a38 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/java/org/camunda/bpm/example/loanapproval/rest/RestProcessEngineDeployment.java @@ -0,0 +1,38 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.loanapproval.rest; + +import java.util.HashSet; +import java.util.Set; + +import jakarta.ws.rs.core.Application; + +import org.camunda.bpm.engine.rest.impl.CamundaRestResources; + +public class RestProcessEngineDeployment extends Application { + + @Override + public Set> getClasses() { + Set> classes = new HashSet<>(); + + classes.addAll(CamundaRestResources.getResourceClasses()); + classes.addAll(CamundaRestResources.getConfigurationClasses()); + + return classes; + } + +} \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/java/org/camunda/bpm/example/loanapproval/rest/RestProcessEngineProvider.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/java/org/camunda/bpm/example/loanapproval/rest/RestProcessEngineProvider.java new file mode 100644 index 0000000000000000000000000000000000000000..5a5b5bb1e96b740720dbe09f2a9ae5dd9060e80a --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/java/org/camunda/bpm/example/loanapproval/rest/RestProcessEngineProvider.java @@ -0,0 +1,39 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.loanapproval.rest; + +import java.util.Set; + +import org.camunda.bpm.engine.ProcessEngine; +import org.camunda.bpm.engine.ProcessEngines; +import org.camunda.bpm.engine.rest.spi.ProcessEngineProvider; + +public class RestProcessEngineProvider implements ProcessEngineProvider { + + public ProcessEngine getDefaultProcessEngine() { + return ProcessEngines.getDefaultProcessEngine(); + } + + public ProcessEngine getProcessEngine(String name) { + return ProcessEngines.getProcessEngine(name); + } + + public Set getProcessEngineNames() { + return ProcessEngines.getProcessEngines().keySet(); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/resources/META-INF/services/org.camunda.bpm.engine.rest.spi.ProcessEngineProvider b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/resources/META-INF/services/org.camunda.bpm.engine.rest.spi.ProcessEngineProvider new file mode 100644 index 0000000000000000000000000000000000000000..66350b4f560897f07d344c4003c4e7f896122dd9 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/resources/META-INF/services/org.camunda.bpm.engine.rest.spi.ProcessEngineProvider @@ -0,0 +1 @@ +org.camunda.bpm.example.loanapproval.rest.RestProcessEngineProvider \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/resources/loanApproval.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/resources/loanApproval.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..410d3064df39381102b306f9f50ebcc372dcaba2 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/resources/loanApproval.bpmn @@ -0,0 +1,50 @@ + + + + + SequenceFlow_1 + + + + SequenceFlow_3 + + + SequenceFlow_1 + SequenceFlow_3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/webapp/WEB-INF/applicationContext.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/webapp/WEB-INF/applicationContext.xml new file mode 100644 index 0000000000000000000000000000000000000000..e7cc999fbf486a7da3098b6f4b7d0ed31a33fd9a --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/webapp/WEB-INF/applicationContext.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/webapp/WEB-INF/web.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000000000000000000000000000000000..400e42b0abf56c5a5ac5855f8fcac375dbd86112 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/embedded-spring-rest/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,48 @@ + + + + contextConfigLocation + /WEB-INF/applicationContext.xml + + + + org.springframework.web.context.ContextLoaderListener + + + + EmptyBodyFilter + org.camunda.bpm.engine.rest.filter.EmptyBodyFilter + + + EmptyBodyFilter + /* + + + + CacheControlFilter + org.camunda.bpm.engine.rest.filter.CacheControlFilter + + + CacheControlFilter + /* + + + + Resteasy + + org.jboss.resteasy.plugins.server.servlet.FilterDispatcher + + + jakarta.ws.rs.Application + org.camunda.bpm.example.loanapproval.rest.RestProcessEngineDeployment + + + + + Resteasy + /* + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f0031f11fb046e638102cd6fde85ed638d4cf270 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/README.md @@ -0,0 +1,20 @@ +# Simple Jakarta Servlet Process Application Example + +This example demonstrates how to deploy a simple servlet process application. + +## How to use it + +1. Build it with Maven. +2. Deploy it to a `camunda-bpm-platform` distro of your choice (Tomcat 10/WildFly 35+). +3. Watch out for this console log: + +```bash +Service Task Example ServiceTask is invoked! +``` + +## Java EE API + +If you would like to deploy this on a Java EE server like Tomcat 9, you can refer to the [example with fixed version of Camunda 7.22][1]. + +[1]: [https://github.com/camunda/camunda-bpm-examples/tree/7.22/deployment/servlet-pa] + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..3ccd2a279db1ae5ead2af8878cee7495f3de8966 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/pom.xml @@ -0,0 +1,44 @@ + + 4.0.0 + + org.camunda.bpm.quickstart + camunda-quickstart-servlet-pa + war + Camunda Platform - Quickstarts - Servlet Process Application + 1.0-SNAPSHOT + + + 7.24.0 + 6.1.0 + 3.11.0 + 11 + UTF-8 + false + + + + + org.camunda.bpm + camunda-engine + ${version.camunda} + provided + + + jakarta.servlet + jakarta.servlet-api + ${version.jakarta-servlet-api} + provided + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.maven-compiler-plugin} + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/src/main/java/org/camunda/bpm/platform/example/servlet/ExampleProcessApplication.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/src/main/java/org/camunda/bpm/platform/example/servlet/ExampleProcessApplication.java new file mode 100644 index 0000000000000000000000000000000000000000..307ca7cd78f4d5cde7d29fc3a1ff9fbfd5516613 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/src/main/java/org/camunda/bpm/platform/example/servlet/ExampleProcessApplication.java @@ -0,0 +1,63 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.platform.example.servlet; + +import jakarta.servlet.ServletContextListener; + +import org.camunda.bpm.application.PostDeploy; +import org.camunda.bpm.application.ProcessApplication; +import org.camunda.bpm.application.impl.JakartaServletProcessApplication; +import org.camunda.bpm.engine.ProcessEngine; + +/** + *

This class transforms your regular java web application + * into a "Process Application". A process application is + * an application which interacts with the process engine, + * provides BPMN deployment resources and delegate code.

+ * + *

See also: + * User Guide on the Servlet Process Application + *

+ * + *

From a technical perspective, this class is a + * {@link ServletContextListener} which is auto-activated + * using the {@link ProcessApplication} annotation. When the + * application is deployed, it will scan the classpath for + * process definition resources (files ending in *.bpmn) and + * deploy them to the process engine.

+ * + *

This class is accompanied by a META-INF/processes.xml + * deployment descriptor.

+ * + */ +@ProcessApplication +public class ExampleProcessApplication extends JakartaServletProcessApplication { + + /** + * The {@literal @}PostDeploy method is invoked when the deployment of all BPMN 2.0 processes is complete. + * The process engine can be injected. + */ + @PostDeploy + public void startProcessInstance(ProcessEngine processEngine) { + + // start a new instance of our process + processEngine.getRuntimeService() + .startProcessInstanceByKey("exampleProcess"); + + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/src/main/java/org/camunda/bpm/platform/example/servlet/ExampleServiceTask.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/src/main/java/org/camunda/bpm/platform/example/servlet/ExampleServiceTask.java new file mode 100644 index 0000000000000000000000000000000000000000..b07802788fdbe2e4d4e14e4c57118bf5c1aaca03 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/src/main/java/org/camunda/bpm/platform/example/servlet/ExampleServiceTask.java @@ -0,0 +1,49 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.platform.example.servlet; + +import java.util.logging.Level; +import java.util.logging.Logger; + +import org.camunda.bpm.engine.delegate.DelegateExecution; +import org.camunda.bpm.engine.delegate.JavaDelegate; +import org.camunda.bpm.model.bpmn.instance.FlowElement; + +/** + * This is an implementation of the {@link JavaDelegate} interface. Implementations of that class can + * be directly invoked by the process engine while executing a BPMN process. + * + * @author Daniel Meyer + */ +public class ExampleServiceTask implements JavaDelegate { + + public static final Logger LOGGER = Logger.getLogger(ExampleServiceTask.class.getName()); + + /** + * this method will be invoked by the process engine when the service task is executed. + */ + public void execute(DelegateExecution execution) { + + // use camunda model API to get current BPMN element + FlowElement serviceTask = execution.getBpmnModelElementInstance(); + + // log status + LOGGER.log(Level.INFO, "\n\n\nService Task {0} is invoked!\n\n\n", serviceTask.getName()); + + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/src/main/resources/META-INF/processes.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/src/main/resources/META-INF/processes.xml new file mode 100644 index 0000000000000000000000000000000000000000..bc4230fefdac863d579cc47e56128bc29fbb241b --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/src/main/resources/META-INF/processes.xml @@ -0,0 +1,15 @@ + + + + + + default + + false + true + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/src/main/resources/exampleProcess.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/src/main/resources/exampleProcess.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..1edf5d4e5ec57d084160637b42c55d8f5bf7eebe --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/servlet-pa/src/main/resources/exampleProcess.bpmn @@ -0,0 +1,38 @@ + + + + + SequenceFlow_1 + + + SequenceFlow_1 + SequenceFlow_2 + + + + SequenceFlow_2 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-boot/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-boot/README.md new file mode 100644 index 0000000000000000000000000000000000000000..25c7c978333181166d32db901f5e9d00e7a976ad --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-boot/README.md @@ -0,0 +1,8 @@ +# Camunda Process Engine and Spring Boot + + +This example is not actively maintained anymore. You can refer to the [example with fixed version of Camunda 7.18](https://github.com/camunda/camunda-bpm-examples/blob/7.18/deployment/spring-boot). +Due to Camunda Platform 7 backward compatibility, the examples usually still work with later versions. However, you +might need to adjust them to make them work. + +Or have a look at Camunda's implementation of the Spring Boot Starter: [spring-boot-starter/example-simple](/spring-boot-starter/example-simple). \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ee72e4970f99336639900dae940589e6200b4404 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/README.md @@ -0,0 +1,102 @@ +# Spring 6 Servlet Process Application (using Tomcat 10) + +This example demonstrates how to deploy a Spring 6 powered web application which + + * Includes a `@ProcessApplication` class and some BPMN 2.0 processes + * Starts a Spring Web application context based on a shared, container managed process engine + * Uses Spring Beans and delegation code in expressions within processes + +## Why is this example interesting? + +This example shows how to combine a `@ProcessApplication class`, a `processes.xml` and a spring applicationContext into +a fully-fledged process application with all its advantages, including a shared, container managed process engine paired +with the power of Spring Beans inside your processes. + +## Show me the important parts! + +A process application class was created which extends the `ServletProcessApplication` class. The class was annotated +with `@ProcessApplication`. This allows the Camunda Platform to pick it up and register the process application +without any further action: + +```java +@ProcessApplication +public class SpringServletProcessApplication extends ServletProcessApplication { + ... +} +``` + +Through the `META-INF/processes.xml`, we can define process archives and additional options, like creating new engines +when deploying the process application: + +```xml + + + + + + true + + + + + +``` + +### Maven dependencies + +The scope attributes of the `camunda-engine` dependency is set to *provided* since it is included in the shared classpath of the Camunda Tomcat distribution: + +```xml + + org.camunda.bpm + camunda-engine + ${camunda.version} + provided + +``` + +The scope of `camunda-engine-spring`, the module that integrates Camunda with Spring, must be set to `compile` so that it is included in the application. + +```xml + + org.camunda.bpm + camunda-engine + ${camunda.version} + +``` + +For testing, the Maven Cargo plugin unpacks the Camunda Tomcat distribution to the `target/tomcat` directory of the application and runs it. + +## How to use it? + +1. Build it with Maven and Java 21. + +```bash +mvn clean verify +``` + +This will start the embedded tomcat server. + +2. Watch out for this console log: + +```bash +[INFO] [talledLocalContainer] INFO: ENGINE-08046 Found Camunda Platform configuration in CATALINA_BASE/CATALINA_HOME conf directory [./target/cargo/configurations/tomcat10x/conf/bpm-platform.xml] at './target/cargo/configurations/tomcat10x/conf/bpm-platform.xml' +... +[INFO] [talledLocalContainer] INFO: ENGINE-07015 Detected @ProcessApplication class 'org.camunda.bpm.example.spring.servlet.pa.SpringServletProcessApplication' +[INFO] [talledLocalContainer] org.apache.catalina.core.ApplicationContext log +[INFO] [talledLocalContainer] INFO: Initializing Spring root WebApplicationContext +... +[INFO] [talledLocalContainer] INFO: Invoking @PostDeploy annotation in org.camunda.bpm.example.spring.servlet.pa.SpringServletProcessApplication +[INFO] [talledLocalContainer] Starting testResolveBean processdefinition +[INFO] [talledLocalContainer] org.camunda.bpm.example.spring.servlet.pa.ExampleBean invoke +[INFO] [talledLocalContainer] INFO: org.camunda.bpm.example.spring.servlet.pa.ExampleBean is currently invoked. +[INFO] [talledLocalContainer] org.camunda.bpm.example.spring.servlet.pa.SpringServletProcessApplication startProcess +[INFO] [talledLocalContainer] INFO: Starting testResolveBeanFromJobExecutor processdefinition +[INFO] [talledLocalContainer] org.camunda.bpm.example.spring.servlet.pa.ExampleDelegateBean execute +[INFO] [talledLocalContainer] INFO: org.camunda.bpm.example.spring.servlet.pa.ExampleDelegateBean is currently invoked. +[INFO] [talledLocalContainer] AM org.camunda.commons.logging.BaseLogger logInfo +[INFO] [talledLocalContainer] INFO: ENGINE-08050 Process application camunda-quickstart-spring-servlet-pa-tomcat successfully deployed +``` diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..2b2ddbfcc4f35e3fc83025dc59d23e45139a9703 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/pom.xml @@ -0,0 +1,203 @@ + + 4.0.0 + + org.camunda.bpm.quickstart + camunda-quickstart-spring-servlet-pa-tomcat + war + Camunda Platform - Quickstarts - Spring Servlet Process Application For Tomcat + 1.0-SNAPSHOT + + + 7.24.0 + 6.2.11 + 10.1.43 + 10.0.0 + + 2.3.232 + 1.7.32 + 3.3.2 + 2.8 + 1.10.18 + 3.11.0 + 21 + UTF-8 + + + + + + org.camunda.bpm + camunda-bom + ${camunda.version} + import + pom + + + jakarta.platform + jakarta.jakartaee-bom + ${version.jakartaee} + import + pom + + + + + + + org.camunda.bpm + camunda-engine-spring-6 + + + org.camunda.bpm + camunda-engine + + provided + + + + org.springframework + spring-beans + + + + + + org.springframework + spring-web + ${spring.version} + + + + org.springframework + spring-context + ${spring.version} + + + + jakarta.servlet + jakarta.servlet-api + provided + + + + com.h2database + h2 + ${h2.version} + provided + + + + org.slf4j + slf4j-simple + ${slf4j.version} + + + + org.camunda.bpm.tomcat + camunda-bpm-tomcat + ${camunda.version} + zip + test + + + + + + camunda-bpm-nexus + camunda-bpm-nexus + https://artifacts.camunda.com/artifactory/private/ + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${maven-compiler-plugin.version} + + + + org.apache.maven.plugins + maven-war-plugin + ${maven-war-plugin.version} + + + + war + + pre-integration-test + + ${project.build.directory}/to_deploy/ + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + ${maven-dependency-plugin.version} + + + unpack-tomcat-distro + pre-integration-test + + unpack-dependencies + + + org.camunda.bpm.tomcat + camunda-bpm-tomcat + + ${project.build.directory}/tomcat + + + + + + + + + org.codehaus.cargo + cargo-maven3-plugin + ${cargo-maven-plugin.version} + + + tomcat10x + ${project.build.directory}/tomcat/server/apache-tomcat-${tomcat.version} + + + + org.camunda.bpm.quickstart + camunda-quickstart-spring-servlet-pa-tomcat + war + + + + + + start-tomcat + pre-integration-test + + start + + + + + + stop-tomcat + post-integration-test + + stop + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/java/org/camunda/bpm/example/spring/servlet/pa/ExampleBean.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/java/org/camunda/bpm/example/spring/servlet/pa/ExampleBean.java new file mode 100644 index 0000000000000000000000000000000000000000..588bf949248807246080161fdc5c76b0ad428d18 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/java/org/camunda/bpm/example/spring/servlet/pa/ExampleBean.java @@ -0,0 +1,43 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.spring.servlet.pa; + +import java.util.logging.Level; +import java.util.logging.Logger; + +public class ExampleBean { + + public static final Logger LOG = Logger.getLogger(ExampleBean.class.getName()); + + protected boolean invoked; + + public void invoke() { + this.invoked = true; + LOG.log(Level.INFO, "{0} is currently invoked.", getClass().getName()); + } + + public boolean isInvoked() { + LOG.log(Level.INFO, "{0} is invoked.", getClass().getName()); + return invoked; + } + + public void setInvoked(boolean invoked) { + this.invoked = invoked; + LOG.log(Level.INFO, "{0} set invoked={1}", new Object[] { getClass().getName(), invoked }); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/java/org/camunda/bpm/example/spring/servlet/pa/ExampleDelegateBean.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/java/org/camunda/bpm/example/spring/servlet/pa/ExampleDelegateBean.java new file mode 100644 index 0000000000000000000000000000000000000000..4cd26218fd5fa2fb90596f89efb1b57757357624 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/java/org/camunda/bpm/example/spring/servlet/pa/ExampleDelegateBean.java @@ -0,0 +1,33 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.spring.servlet.pa; + +import org.camunda.bpm.engine.delegate.DelegateExecution; +import org.camunda.bpm.engine.delegate.JavaDelegate; + +import java.util.logging.Level; +import java.util.logging.Logger; + +public class ExampleDelegateBean implements JavaDelegate { + + public static final Logger LOG = Logger.getLogger(ExampleDelegateBean.class.getName()); + + public void execute(DelegateExecution delegateExecution) { + LOG.log(Level.INFO, "{0} is currently invoked.", getClass().getName()); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/java/org/camunda/bpm/example/spring/servlet/pa/SpringServletProcessApplication.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/java/org/camunda/bpm/example/spring/servlet/pa/SpringServletProcessApplication.java new file mode 100644 index 0000000000000000000000000000000000000000..8cde6fb6f15d3d2b24ea1417860d619859ea6cd8 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/java/org/camunda/bpm/example/spring/servlet/pa/SpringServletProcessApplication.java @@ -0,0 +1,49 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.spring.servlet.pa; + +import org.camunda.bpm.application.PostDeploy; +import org.camunda.bpm.application.PreUndeploy; +import org.camunda.bpm.application.ProcessApplication; +import org.camunda.bpm.application.impl.JakartaServletProcessApplication; +import org.camunda.bpm.engine.ProcessEngine; + +import java.util.logging.Level; +import java.util.logging.Logger; + +@ProcessApplication +public class SpringServletProcessApplication extends JakartaServletProcessApplication { + + public static final Logger LOG = Logger.getLogger(SpringServletProcessApplication.class.getName()); + + @PostDeploy + public void startProcess(ProcessEngine processEngine) { + LOG.log(Level.INFO, "Invoking @PostDeploy annotation in {0}\n" + + "Starting testResolveBean processdefinition", getClass().getName()); + processEngine.getRuntimeService().startProcessInstanceByKey("testResolveBean"); + + LOG.info("Starting testResolveBeanFromJobExecutor processdefinition"); + processEngine.getRuntimeService().startProcessInstanceByKey("testResolveBeanFromJobExecutor"); + } + + @PreUndeploy + public void remove() { + LOG.log(Level.INFO, "Invoking @PreUndeploy annotation in {0}\n" + + "Undeploying SpringServletProcessApplication-Example", getClass().getName()); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/resources/META-INF/processes.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/resources/META-INF/processes.xml new file mode 100644 index 0000000000000000000000000000000000000000..d7789d2d15db6f5d79c9a47d13e5641a05bb40ac --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/resources/META-INF/processes.xml @@ -0,0 +1,14 @@ + + + + + + true + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/resources/SpringExpressionResolvingTest.testResolveBean.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/resources/SpringExpressionResolvingTest.testResolveBean.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..3aa4b60515f09ba596aaccf1cc65bdc3e3ec758c --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/resources/SpringExpressionResolvingTest.testResolveBean.bpmn @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/resources/SpringExpressionResolvingTest.testResolveBeanFromJobExecutor.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/resources/SpringExpressionResolvingTest.testResolveBeanFromJobExecutor.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..8248e58ee3760ba0d1f8f17ce97decacb4853340 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/resources/SpringExpressionResolvingTest.testResolveBeanFromJobExecutor.bpmn @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/webapp/WEB-INF/applicationContext.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/webapp/WEB-INF/applicationContext.xml new file mode 100644 index 0000000000000000000000000000000000000000..14368f1de6774e225dedabcb1bccf6d0365f3019 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/webapp/WEB-INF/applicationContext.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/webapp/WEB-INF/web.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000000000000000000000000000000000..ac01aab5e0e7c47b037a30ba99f3239d6f652e26 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-tomcat/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,14 @@ + + + + contextConfigLocation + /WEB-INF/applicationContext.xml + + + + org.springframework.web.context.ContextLoaderListener + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/.gitignore b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..215e3e0590d46855ebf01633a74e6666f8d11e46 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/.gitignore @@ -0,0 +1 @@ +camunda-h2-dbs \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/README.md new file mode 100644 index 0000000000000000000000000000000000000000..41002496a9cdfc525ae079ade8f5e0f1ac404c2d --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/README.md @@ -0,0 +1,82 @@ +# Spring 6 Servlet Process Application (using WildFly 35+) + +This example demonstrates how to deploy a Spring 6 powered Web application which + + * Includes a `@ProcessApplication` class and some BPMN 2.0 processes + * Starts a Spring Web application context + * Uses a shared container managed Process Engine and Spring Beans as expression and delegate + expression in the processes + +## Why is this example interesting? + +This example shows how to combine a `@ProcessApplication` class, a `processes.xml` and a Spring +`applicationContext` into a fully-fledged Process Application with all its advantages, including a +managed container shared Process Engine paired with the power of Spring Beans inside your processes. + +## Show me the important parts! + +We create a Process Application class which extends the `JakartaServletProcessApplication` and annotate +it with `@ProcessApplication`, so the Camunda Platform can pick it up and register the Process +Application without any further action: + +```java +@ProcessApplication +public class SpringServletProcessApplication extends JakartaServletProcessApplication { + ... +} +``` + +Through the `META-INF/processes.xml`, we can define Process Archives and additional options, like +creating new Process Engines when deploying the Process Application: + +```xml + + + + + + true + + + + + +``` + +Additionally, you have to package the `camunda-engine-spring` module as a maven compile time +dependency like: + +```xml + + org.camunda.bpm + camunda-engine-spring-6 + ${camunda.version} + compile + +``` + +## How to use it? + +1. Build it with Maven and Java 17. + +```bash +mvn clean install +``` + +This will create a Camunda Platform WildFly distribution and execute the included Arquillian test. + +3. Watch out for this console log: + +```bash +INFO [org.camunda.bpm.example.spring.servlet.pa.SpringServletProcessApplication] (MSC service thread 1-5) Invoking @PostDeploy annotation in org.camunda.bpm.example.spring.servlet.pa.SpringServletProcessApplication +Starting testResolveBean processdefinition +INFO [org.camunda.bpm.example.spring.servlet.pa.ExampleBean] (MSC service thread 1-5) org.camunda.bpm.example.spring.servlet.pa.ExampleBean is currently invoked. +INFO [org.camunda.bpm.example.spring.servlet.pa.SpringServletProcessApplication] (MSC service thread 1-5) Starting testResolveBeanFromJobExecutor processdefinition +INFO [org.camunda.bpm.example.spring.servlet.pa.ExampleDelegateBean] (pool-10-thread-7) org.camunda.bpm.example.spring.servlet.pa.ExampleDelegateBean is currently invoked. +... +INFO [org.camunda.bpm.example.spring.servlet.pa.SpringServletProcessApplication] (MSC service thread 1-1) Invoking @PreUndeploy annotation in org.camunda.bpm.example.spring.servlet.pa.SpringServletProcessApplication +Undeploying SpringServletProcessApplication-Example +``` diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..c79fd2aceb2c53963d37609dcc9171125c82b21b --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/pom.xml @@ -0,0 +1,213 @@ + + 4.0.0 + + org.camunda.bpm.quickstart + camunda-quickstart-spring-servlet-pa-wildfly + Camunda Platform - Quickstarts - Spring Servlet Process Application For WildFly + 1.0-SNAPSHOT + + + 7.24.0 + 6.2.11 + 37.0.0.Final + 11.0.0 + + 5.0.1.Final + 1.7.0.Final + 4.13.2 + + 3.14.1 + 17 + UTF-8 + + + + + + + org.jboss.arquillian + arquillian-bom + ${version.arquillian} + import + pom + + + org.camunda.bpm + camunda-bom + ${version.camunda} + import + pom + + + jakarta.platform + jakarta.jakartaee-bom + ${version.jakartaee} + import + pom + + + + + + + + org.camunda.bpm + camunda-engine-spring-6 + + + + camunda-engine + org.camunda.bpm + + + + + + org.camunda.bpm + camunda-engine + provided + + + + jakarta.servlet + jakarta.servlet-api + provided + + + + org.springframework + spring-web + ${version.spring} + + + + org.springframework + spring-context + ${version.spring} + + + + org.springframework + spring-beans + ${version.spring} + + + + + org.jboss.shrinkwrap.resolver + shrinkwrap-resolver-impl-maven + test + + + + org.jboss.arquillian.junit + arquillian-junit-container + test + + + + org.jboss.arquillian.protocol + arquillian-protocol-servlet-jakarta + test + + + + junit + junit + ${version.junit} + test + + + + + + + camunda-bpm-nexus + camunda-bpm-nexus + https://artifacts.camunda.com/artifactory/private/ + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.maven-compiler-plugin} + + + + + + + wildfly-managed + + true + + + + org.wildfly.arquillian + wildfly-arquillian-container-managed + ${version.wildfly.container.adapter} + test + + + + + + src/test/resources + true + + + + + + org.apache.maven.plugins + maven-clean-plugin + 2.6 + + + + camunda-h2-dbs + + **/* + + false + + + false + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-server + generate-resources + + unpack + + false + + + + org.camunda.bpm.wildfly + camunda-bpm-wildfly + ${version.camunda} + tar.gz + true + ${project.build.directory}/wildfly + + + + + + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/java/org/camunda/bpm/example/spring/servlet/pa/ExampleBean.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/java/org/camunda/bpm/example/spring/servlet/pa/ExampleBean.java new file mode 100644 index 0000000000000000000000000000000000000000..588bf949248807246080161fdc5c76b0ad428d18 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/java/org/camunda/bpm/example/spring/servlet/pa/ExampleBean.java @@ -0,0 +1,43 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.spring.servlet.pa; + +import java.util.logging.Level; +import java.util.logging.Logger; + +public class ExampleBean { + + public static final Logger LOG = Logger.getLogger(ExampleBean.class.getName()); + + protected boolean invoked; + + public void invoke() { + this.invoked = true; + LOG.log(Level.INFO, "{0} is currently invoked.", getClass().getName()); + } + + public boolean isInvoked() { + LOG.log(Level.INFO, "{0} is invoked.", getClass().getName()); + return invoked; + } + + public void setInvoked(boolean invoked) { + this.invoked = invoked; + LOG.log(Level.INFO, "{0} set invoked={1}", new Object[] { getClass().getName(), invoked }); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/java/org/camunda/bpm/example/spring/servlet/pa/ExampleDelegateBean.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/java/org/camunda/bpm/example/spring/servlet/pa/ExampleDelegateBean.java new file mode 100644 index 0000000000000000000000000000000000000000..4cd26218fd5fa2fb90596f89efb1b57757357624 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/java/org/camunda/bpm/example/spring/servlet/pa/ExampleDelegateBean.java @@ -0,0 +1,33 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.spring.servlet.pa; + +import org.camunda.bpm.engine.delegate.DelegateExecution; +import org.camunda.bpm.engine.delegate.JavaDelegate; + +import java.util.logging.Level; +import java.util.logging.Logger; + +public class ExampleDelegateBean implements JavaDelegate { + + public static final Logger LOG = Logger.getLogger(ExampleDelegateBean.class.getName()); + + public void execute(DelegateExecution delegateExecution) { + LOG.log(Level.INFO, "{0} is currently invoked.", getClass().getName()); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/java/org/camunda/bpm/example/spring/servlet/pa/SpringServletProcessApplication.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/java/org/camunda/bpm/example/spring/servlet/pa/SpringServletProcessApplication.java new file mode 100644 index 0000000000000000000000000000000000000000..3a762bbd5d919a498bca44c5f1a3405a93f2d04d --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/java/org/camunda/bpm/example/spring/servlet/pa/SpringServletProcessApplication.java @@ -0,0 +1,49 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.spring.servlet.pa; + +import org.camunda.bpm.application.PostDeploy; +import org.camunda.bpm.application.PreUndeploy; +import org.camunda.bpm.application.ProcessApplication; +import org.camunda.bpm.application.impl.JakartaServletProcessApplication; +import org.camunda.bpm.engine.ProcessEngine; + +import java.util.logging.Level; +import java.util.logging.Logger; + +@ProcessApplication +public class SpringServletProcessApplication extends JakartaServletProcessApplication { + + public static final Logger LOG = Logger.getLogger(SpringServletProcessApplication.class.getName()); + + @PostDeploy + public void startProcess(ProcessEngine processEngine) { + LOG.log(Level.INFO, "Invoking @PostDeploy annotation in {0}\n" + + "Starting testResolveBean processdefinition", getClass().getName()); + processEngine.getRuntimeService().startProcessInstanceByKey("testResolveBean"); + + LOG.info("Starting testResolveBeanFromJobExecutor processdefinition"); + processEngine.getRuntimeService().startProcessInstanceByKey("testResolveBeanFromJobExecutor"); + } + + @PreUndeploy + public void remove() { + LOG.log(Level.INFO, "Invoking @PreUndeploy annotation in {0}\n" + + "Undeploying SpringServletProcessApplication-Example", getClass().getName()); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/resources/META-INF/processes.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/resources/META-INF/processes.xml new file mode 100644 index 0000000000000000000000000000000000000000..8a853a9e13a86eea0c2b0187e9ca20e6c5c5bdcd --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/resources/META-INF/processes.xml @@ -0,0 +1,14 @@ + + + + + + true + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/resources/SpringExpressionResolvingTest.testResolveBean.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/resources/SpringExpressionResolvingTest.testResolveBean.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..3746a5b255ade33e149a464aaee5d287b30cb09d --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/resources/SpringExpressionResolvingTest.testResolveBean.bpmn @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/resources/SpringExpressionResolvingTest.testResolveBeanFromJobExecutor.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/resources/SpringExpressionResolvingTest.testResolveBeanFromJobExecutor.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..e85e0babb12a17dd244170a3d779bfa6ae8680cd --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/resources/SpringExpressionResolvingTest.testResolveBeanFromJobExecutor.bpmn @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/webapp/WEB-INF/applicationContext.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/webapp/WEB-INF/applicationContext.xml new file mode 100644 index 0000000000000000000000000000000000000000..38381aa6ee597c13cd10b3c39e2c1696d9efce68 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/webapp/WEB-INF/applicationContext.xml @@ -0,0 +1,12 @@ + + + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/webapp/WEB-INF/web.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000000000000000000000000000000000..4029474120b526a172da6336ff182fc23e90d7f8 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,15 @@ + + + + contextConfigLocation + /WEB-INF/applicationContext.xml + + + + org.springframework.web.context.ContextLoaderListener + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/test/java/org/camunda/bpm/example/spring/servlet/pa/ArquillianTest.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/test/java/org/camunda/bpm/example/spring/servlet/pa/ArquillianTest.java new file mode 100644 index 0000000000000000000000000000000000000000..d37243695196d32d28605ba23e6e21f659b5d534 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/test/java/org/camunda/bpm/example/spring/servlet/pa/ArquillianTest.java @@ -0,0 +1,192 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.spring.servlet.pa; + +import java.io.File; +import java.util.List; +import java.util.Timer; +import java.util.TimerTask; + +import org.camunda.bpm.BpmPlatform; +import org.camunda.bpm.ProcessEngineService; +import org.camunda.bpm.engine.HistoryService; +import org.camunda.bpm.engine.ManagementService; +import org.camunda.bpm.engine.ProcessEngine; +import org.camunda.bpm.engine.ProcessEngineException; +import org.camunda.bpm.engine.RepositoryService; +import org.camunda.bpm.engine.RuntimeService; +import org.camunda.bpm.engine.impl.ProcessEngineImpl; +import org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl; +import org.camunda.bpm.engine.impl.jobexecutor.JobExecutor; +import org.camunda.bpm.engine.impl.util.ClockUtil; +import org.camunda.bpm.engine.repository.ProcessDefinition; +import org.camunda.bpm.engine.runtime.Job; +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.junit.Arquillian; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.jboss.shrinkwrap.resolver.api.maven.Maven; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; + +@RunWith(Arquillian.class) +public class ArquillianTest { + + private ProcessEngineService processEngineService; + private ProcessEngine processEngine; + private ProcessEngineConfigurationImpl processEngineConfiguration; + private HistoryService historyService; + private ManagementService managementService; + private RepositoryService repositoryService; + private RuntimeService runtimeService; + + @Before + public void setupBeforeTest() { + processEngineService = BpmPlatform.getProcessEngineService(); + processEngine = processEngineService.getDefaultProcessEngine(); + processEngineConfiguration = ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration(); + processEngineConfiguration.getJobExecutor().shutdown(); // make sure the job executor is down + historyService = processEngine.getHistoryService(); + managementService = processEngine.getManagementService(); + repositoryService = processEngine.getRepositoryService(); + runtimeService = processEngine.getRuntimeService(); + } + + @Deployment + public static WebArchive processArchive() { + + // deploy spring Process Application (does not include ejb-client nor cdi modules) + return ShrinkWrap.create(WebArchive.class, "spring-servlet-pa.war") + + // add example bean to serve as JavaDelegate + .addClass(ExampleBean.class) + .addClass(ExampleDelegateBean.class) + // add process definitions + .addAsResource("SpringExpressionResolvingTest.testResolveBean.bpmn") + .addAsResource("SpringExpressionResolvingTest.testResolveBeanFromJobExecutor.bpmn") + + // add custom servlet process application + .addClass(SpringServletProcessApplication.class) + // regular deployment descriptor + .addAsResource("META-INF/processes.xml", "META-INF/processes.xml") + + // web xml that bootstraps spring + .setWebXML(new File("src/main/webapp/WEB-INF/web.xml")) + + // spring application context & libs + .addAsWebInfResource(new File("src/main/webapp/WEB-INF/applicationContext.xml"), "applicationContext.xml") + .addAsLibraries(Maven.configureResolver() + .workOffline() + .loadPomFromFile("pom.xml") + .importCompileAndRuntimeDependencies() + .resolve() + .withTransitivity() + .asFile()); + } + + @Test + public void testResolveBean() { + // process instance was started from ProcessApplication @PostDeploy method + Assert.assertEquals(0, runtimeService.createProcessInstanceQuery().processDefinitionKey("testResolveBean").count()); + // and process is already ended + Assert.assertNotSame(0, + historyService.createHistoricProcessInstanceQuery().processDefinitionKey("testResolveBean").count()); + } + + @Test + public void testResolveBeanFromJobExecutor() { + // process instance was started from ProcessApplication @PostDeploy method and is already ended + //Assert.assertEquals(1, runtimeService.createProcessInstanceQuery().processDefinitionKey("testResolveBeanFromJobExecutor").count()); + + waitForJobExecutorToProcessAllJobs(16000); + + Assert.assertEquals(0, + runtimeService.createProcessInstanceQuery().processDefinitionKey("testResolveBeanFromJobExecutor").count()); + + ProcessDefinition testResolveBeanFromJobExecutorPD = repositoryService.createProcessDefinitionQuery() + .processDefinitionKey("testResolveBeanFromJobExecutor") + .singleResult(); + Assert.assertNotSame(0, historyService.createHistoricProcessInstanceQuery() + .processDefinitionId(testResolveBeanFromJobExecutorPD.getId()) + .count()); + } + + public void waitForJobExecutorToProcessAllJobs(long maxMillisToWait) { + JobExecutor jobExecutor = processEngineConfiguration.getJobExecutor(); + waitForJobExecutorToProcessAllJobs(jobExecutor, maxMillisToWait); + } + + public void waitForJobExecutorToProcessAllJobs(JobExecutor jobExecutor, long maxMillisToWait) { + + int checkInterval = 1000; + + jobExecutor.start(); + + try { + Timer timer = new Timer(); + InteruptTask task = new InteruptTask(Thread.currentThread()); + timer.schedule(task, maxMillisToWait); + boolean areJobsAvailable = true; + try { + while (areJobsAvailable && !task.isTimeLimitExceeded()) { + Thread.sleep(checkInterval); + areJobsAvailable = areJobsAvailable(); + } + } catch (InterruptedException e) { + } finally { + timer.cancel(); + } + if (areJobsAvailable) { + throw new ProcessEngineException("time limit of " + maxMillisToWait + " was exceeded"); + } + + } finally { + jobExecutor.shutdown(); + } + } + + public boolean areJobsAvailable() { + List list = managementService.createJobQuery().list(); + for (Job job : list) { + if (job.getRetries() > 0 && (job.getDuedate() == null || ClockUtil.getCurrentTime().after(job.getDuedate()))) { + return true; + } + } + return false; + } + + private static class InteruptTask extends TimerTask { + + protected boolean timeLimitExceeded = false; + protected Thread thread; + + public InteruptTask(Thread thread) { + this.thread = thread; + } + + public boolean isTimeLimitExceeded() { + return timeLimitExceeded; + } + + public void run() { + timeLimitExceeded = true; + thread.interrupt(); + } + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/test/resources/arquillian.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/test/resources/arquillian.xml new file mode 100644 index 0000000000000000000000000000000000000000..f9fd1c6cc764d8401128e4a346a0d96cfb126e31 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/test/resources/arquillian.xml @@ -0,0 +1,19 @@ + + + + + + + target/deployments + + + + + target/wildfly/server/wildfly-${version.wildfly} + -Xmx1024m + 300 + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/test/server/standalone/configuration/standalone.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/test/server/standalone/configuration/standalone.xml new file mode 100644 index 0000000000000000000000000000000000000000..4cda47912d530c5ba16d6e0622504279e29a3ca5 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-servlet-pa-wildfly/src/test/server/standalone/configuration/standalone.xml @@ -0,0 +1,621 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=${wildfly.h2.compatibility.mode:REGULAR} + h2 + + + + jdbc:h2:./camunda-h2-dbs/process-engine;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=${wildfly.h2.compatibility.mode:REGULAR} + h2 + TRANSACTION_READ_COMMITTED + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${jboss.bind.address:127.0.0.1} + + + + + + + + + + + + + java:jboss/datasources/ProcessEngine + full + + default + true + true + true + 00:01 + + + + + + org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerPlugin + + + + + org.camunda.spin.plugin.impl.SpinProcessEnginePlugin + + + + + org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin + + + + + + + + + + + + + + + 3 + 5 + 10 + + + + 300000 + 5000 + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-wildfly-non-pa/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-wildfly-non-pa/README.md new file mode 100644 index 0000000000000000000000000000000000000000..046bb4540b023131c454e13caa664705a2fc89a3 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-wildfly-non-pa/README.md @@ -0,0 +1,97 @@ +# Plain Spring 6 Web application for WildFly + +This example demonstrates how to deploy a plain web application which + + * Does not include a `@ProcessApplication` class and does not provide any BPMN 2.0 processes + * Starts a Spring WebApplication context + * Binds a shared, container managed Process Engine as Spring Bean + +## Why is this example interesting? + +The WildFly extensions from Camunda allow you to manage Process Engines as JBoss Services. However, +if your application does not provide a `@ProcessApplication` class, WildFly is not aware of the +fact that your application uses the Process Engine. In that case, the following scenarios can occur: + + * At deployment, your application is deployed *before* the Process Engine is started, causing the + deployment of your application to fail. + * When the Process Engine is stopped, your application is not stopped but will likely fail at some + point because the Process Engine is not available anymore. + +This problem can be resolved by adding a declarative dependency between the process engine and a +component in your application. + +## Show me the important parts! + +We reference the Process Engine resource in `web.xml`: + +```xml + + processEngine/default + org.camunda.bpm.engine.ProcessEngine + java:global/camunda-bpm-platform/process-engine/default + +``` + +This creates a declarative dependency between the web application context and the Process Engine. +Now WildFly knows that we are using it. We can look it up using the local name `java:comp/env/processEngine/default` +from anywhere in our application. + +In our case, we want to reference it from a Spring ApplicationContext: + +```xml + + + + + + + + + + + + + +``` + +We also add an entry to the manifest, so that the Process Engine classes are added to our classpath: + +```xml + + + + org.apache.maven.plugins + maven-war-plugin + ${maven-war-plugin.version} + + + + + org.camunda.bpm.camunda-engine + + + + + + +``` + +## How to use it? + +1. Build it with Maven and JDK 17+. +2. Deploy it to WildFly 33+. +3. Watch out for this console log: + +```bash +Hi there! +I am a spring bean and I am using a container managed process engine provided as JBoss Service for all applications to share. +The engine is named default. +There are currently 0 processes deployed on this engine. +``` + +## Java EE API + +If you would like to deploy this on a Java EE server like WildFly 26 and below, you can refer to the [example with fixed version of Camunda 7.22](https://github.com/camunda/camunda-bpm-examples/tree/7.22/deployment/spring-wildfly-non-pa). \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-wildfly-non-pa/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-wildfly-non-pa/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..aa0a9580dd9bdef126e71463a3eb6b82bbda1b71 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-wildfly-non-pa/pom.xml @@ -0,0 +1,73 @@ + + + 4.0.0 + + org.camunda.bpm.quickstart + camunda-quickstart-wildfly-spring-nonpa + war + Camunda Platform - Quickstarts - WildFly - Spring Non Process Application + 1.0-SNAPSHOT + + + 7.24.0 + 6.2.11 + 3.3.2 + + 3.11.0 + 17 + UTF-8 + + + + + org.camunda.bpm + camunda-engine + ${camunda.version} + provided + + + + org.springframework + spring-web + ${spring.version} + + + + org.springframework + spring-beans + ${spring.version} + + + + org.springframework + spring-context + ${spring.version} + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${maven-compiler-plugin.version} + + + org.apache.maven.plugins + maven-war-plugin + ${maven-war-plugin.version} + + + + + org.camunda.bpm.camunda-engine + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-wildfly-non-pa/src/main/java/org/camunda/bpm/example/spring/wildfly/ProcessEngineClient.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-wildfly-non-pa/src/main/java/org/camunda/bpm/example/spring/wildfly/ProcessEngineClient.java new file mode 100644 index 0000000000000000000000000000000000000000..86aa1507fd0f4951063342a944e5d14d20b3ce4c --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-wildfly-non-pa/src/main/java/org/camunda/bpm/example/spring/wildfly/ProcessEngineClient.java @@ -0,0 +1,57 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.spring.wildfly; + +import java.util.logging.Level; +import java.util.logging.Logger; + +import org.camunda.bpm.engine.ProcessEngine; +import org.springframework.beans.factory.InitializingBean; + +/** + * @author Daniel Meyer + * + */ +public class ProcessEngineClient implements InitializingBean { + + protected final static Logger LOG = Logger.getLogger(ProcessEngineClient.class.getName()); + + protected ProcessEngine processEngine; + + public void afterPropertiesSet() throws Exception { + + long deployedProcessDefinitionsCount = processEngine.getRepositoryService() + .createProcessDefinitionQuery() + .count(); + + LOG.log(Level.INFO, "\n\n\n" + + "Hi there!" + + "\n" + + "I am a spring bean and I am using a container managed process engine provided as JBoss Service for all applications to share." + + "\n" + + "The engine is named {0}." + + "\n" + + "There are currently {1} processes deployed on this engine." + + "\n\n", + new Object[]{ processEngine.getName(), deployedProcessDefinitionsCount}); + } + + public void setProcessEngine(ProcessEngine processEngine) { + this.processEngine = processEngine; + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-wildfly-non-pa/src/main/webapp/WEB-INF/applicationContext.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-wildfly-non-pa/src/main/webapp/WEB-INF/applicationContext.xml new file mode 100644 index 0000000000000000000000000000000000000000..5f1ede651186f7cc23efeb7291146f049749b4d9 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-wildfly-non-pa/src/main/webapp/WEB-INF/applicationContext.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-wildfly-non-pa/src/main/webapp/WEB-INF/web.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-wildfly-non-pa/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000000000000000000000000000000000..6401216ddae5cede7024a60046ea029205f51360 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/deployment/spring-wildfly-non-pa/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,20 @@ + + + + contextConfigLocation + /WEB-INF/applicationContext.xml + + + + org.springframework.web.context.ContextLoaderListener + + + + processEngine/default + org.camunda.bpm.engine.ProcessEngine + java:global/camunda-bpm-platform/process-engine/default + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d89101f827af4a9220bc2d839b0d446acc24d8fa --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/README.md @@ -0,0 +1,127 @@ +# Decision Requirements Graph (DRG) Example + +This example demonstrates how to use the [Camunda DMN engine] as library +in a custom application to evaluate a decision from a DRG. The DMN Engine is added to the example as a Maven dependency. +The example contains a Java class with a Main Method in which the DMN Engine is bootstraped and +used to execute a decision loaded from the classpath. + +## The used Decision Requirements Graph + +The example uses the DRG from the [Reference Guide] to decide which beverages should be served to our guests for dinner: + +![Dinner Decisions] + +--- + +![Beverages Decision] + +--- + +![Dish Decision] + +You can find the corresponding DMN XML file [dinnerDecisions.dmn] in the +resources. + +## Code Walkthrough + +Refer [dmn-engine-java-main-method] example for Maven dependencies and bootstrapping the DMN Engine. + +### Parsing and Executing the Decision of the DRG + +Once the DMN Engine is bootstrapped, it can be used to first parse a decision loaded from the classpath: + +```java +InputStream inputStream = BeveragesDecider.class.getResourceAsStream("dinnerDecisions.dmn"); + +DmnDecision decision = dmnEngine.parseDecision("beverages", inputStream); + +``` + +The parsed DmnDecsion can be cached and executed multiple times. + +In order to execute it, it needs to be passed to the `evaluateDecision` method: + +```java +DmnDecisionResult result = dmnEngine.evaluateDecision(decision, variables); +``` + +The File [BeveragesDecider.java] contains the complete source code including variable handling and parsing +of the command line arguments. + +### Writing Tests with JUnit + +> Note: You can read more about decision testing in our [User Guide]. + +[DrgDecisionTest.java] uses the JUnit Rule `DmnEngineRule` to create a default DMN engine and than test different +inputs on the decision: + +```java +@Test +public void shouldServeGuiness() { + + VariableMap variables = Variables + .putValue("season", "Spring") + .putValue("guestCount", 10) + .putValue("guestsWithChildren", false); + + DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables); + + assertThat(result.collectEntries("beverages")) + .hasSize(2) + .contains("Guiness", "Water"); +} +``` + +## Running the Example + +The example expects three arguments. First, the current season, second the number of guests (integer) and third if guests has children (boolean). + +To run it you can either use maven: + +``` +mvn compile exec:java +``` + +This will compile the project and execute it with the arguments +`Spring` for the current season, `10` for the guest count and `false` for guests with children. + +This should produce an output which contains: + +``` +Beverages: + I would recommend to serve: [Guiness, Water] +``` + +You can specify other arguments with maven. For example: + +``` +mvn compile exec:java -Dexec.args="Winter 7 true" +``` + +You can also create a executable Java jar file with: + +``` +mvn clean package +``` + +This will produce a `BeveragesDecider.jar` file in the `target` folder. You can +than call it like any other jar file: + +``` +java -jar target/BeveragesDecider.jar Spring 10 false + +Beverages: + I would recommend to serve: [Guniess, Water] +``` + + +[Camunda DMN engine]: https://docs.camunda.org/manual/7.24/user-guide/dmn-engine/ +[Reference Guide]: https://docs.camunda.org/manual/7.24/reference/dmn/drg/ +[User Guide]: https://docs.camunda.org/manual/7.24/user-guide/dmn-engine/testing/ +[Dinner Decisions]: src/main/resources/org/camunda/bpm/example/drg/dinnerDecisions.png +[Beverages Decision]: src/main/resources/org/camunda/bpm/example/drg/beverages.png +[Dish Decision]: src/main/resources/org/camunda/bpm/example/drg/dish.png +[dinnerDecisions.dmn]: src/main/resources/org/camunda/bpm/example/drg/dinnerDecisions.dmn +[BeveragesDecider.java]: src/main/java/org/camunda/bpm/example/drg/BeveragesDecider.java +[DrgDecisionTest.java]: src/test/java/org/camunda/bpm/example/drg/DrgDecisionTest.java +[dmn-engine-java-main-method]: ../dmn-engine-java-main-method/ diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..93108554e94abab42190e493d2d3aa7bff9afa22 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/pom.xml @@ -0,0 +1,123 @@ + + + 4.0.0 + + org.camunda.bpm.example.drg + camunda-example-drg + 1.0-SNAPSHOT + jar + + + 7.24.0 + 2.0.16 + 4.13.2 + 3.26.3 + 11 + UTF-8 + + 3.11.0 + + + + + + org.camunda.bpm.dmn + camunda-engine-dmn-bom + ${version.camunda} + pom + import + + + + + + + org.camunda.bpm.dmn + camunda-engine-dmn + + + + + org.slf4j + slf4j-jdk14 + ${version.slf4j} + + + + + junit + junit + ${version.junit} + + + + org.assertj + assertj-core + ${version.assertj} + test + + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.4.0 + + org.camunda.bpm.example.drg.BeveragesDecider + + Spring + 10 + false + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.10 + + + copy-dependencies + prepare-package + + copy-dependencies + + + ${project.build.directory}/lib + false + false + true + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.0.2 + + + + true + lib/ + false + org.camunda.bpm.example.drg.BeveragesDecider + + + BeveragesDecider + + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.plugin.maven-compiler} + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/main/java/org/camunda/bpm/example/drg/BeveragesDecider.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/main/java/org/camunda/bpm/example/drg/BeveragesDecider.java new file mode 100644 index 0000000000000000000000000000000000000000..025c056bb553892c287eba6d617e2d0243a3e1f3 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/main/java/org/camunda/bpm/example/drg/BeveragesDecider.java @@ -0,0 +1,112 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.drg; + +import java.io.IOException; +import java.io.InputStream; +import java.util.Arrays; +import java.util.List; + +import org.camunda.bpm.dmn.engine.DmnDecision; +import org.camunda.bpm.dmn.engine.DmnDecisionTableResult; +import org.camunda.bpm.dmn.engine.DmnEngine; +import org.camunda.bpm.dmn.engine.DmnEngineConfiguration; +import org.camunda.bpm.engine.variable.VariableMap; +import org.camunda.bpm.engine.variable.Variables; + +public class BeveragesDecider { + + private static final List SEASONS = Arrays.asList("Winter", "Spring", "Summer"); + + public static void printUsage(String errorMessage, int exitCode) { + System.err.println("Error: " + errorMessage); + System.err.println("Usage: java -jar BeveragesDecider.jar Spring 10 false"); + System.exit(exitCode); + } + + public static void main(String[] args) { + + validateInput(args); + + VariableMap variables = prepareVariableMap(args); + + // parse decision from resource input stream + InputStream inputStream = BeveragesDecider.class.getResourceAsStream("dinnerDecisions.dmn"); + + try { + parseAndEvaluateDecision(variables, inputStream); + + } finally { + try { + inputStream.close(); + } catch (IOException e) { + } + } + } + + protected static void validateInput(String[] args) { + + // parse arguments + if (args.length != 3) { + printUsage("Please specify the season, guest count and if guests have children", 1); + } + + String season = args[0]; + if (!SEASONS.contains(season)) { + printUsage("Season must be one of " + SEASONS, 2); + } + + try { + Integer.parseInt(args[1]); + } + catch (NumberFormatException e) { + printUsage("Guest count must be a number", 2); + } + } + + protected static VariableMap prepareVariableMap(String[] args) { + + String season = args[0]; + int guestCount = Integer.parseInt(args[1]); + boolean guestsWithChildren = Boolean.parseBoolean(args[2]); + + // prepare variables for decision evaluation + VariableMap variables = Variables + .putValue("season", season) + .putValue("guestCount", guestCount) + .putValue("guestsWithChildren", guestsWithChildren); + + return variables; + } + + protected static void parseAndEvaluateDecision(VariableMap variables, InputStream inputStream) { + + // create a new default DMN engine + DmnEngine dmnEngine = DmnEngineConfiguration.createDefaultDmnEngineConfiguration().buildEngine(); + + DmnDecision decision = dmnEngine.parseDecision("beverages", inputStream); + + // evaluate decision + DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables); + + // print result + List beverages = result.collectEntries("beverages"); + System.out.println("Beverages:\n\tI would recommend to serve: " + beverages); + } + + +} \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/main/resources/org/camunda/bpm/example/drg/beverages.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/main/resources/org/camunda/bpm/example/drg/beverages.png new file mode 100644 index 0000000000000000000000000000000000000000..6bc794820f463e4528241bb9cabf79453f932af2 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/main/resources/org/camunda/bpm/example/drg/beverages.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a529282da22584dd46122e1328673f6bdc2cc95dfef61e54aba64ba9b5ecfc3 +size 37540 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/main/resources/org/camunda/bpm/example/drg/dinnerDecisions.dmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/main/resources/org/camunda/bpm/example/drg/dinnerDecisions.dmn new file mode 100644 index 0000000000000000000000000000000000000000..05ff01de4ae6d981dbfc15970a34a14a04273f3e --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/main/resources/org/camunda/bpm/example/drg/dinnerDecisions.dmn @@ -0,0 +1,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + desiredDish + + + + guestsWithChildren + + + + + Tough Stuff + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + season + + + + guestCount + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Save money + + + [5..8] + + + + + + Less effort + + + 8]]> + + + + + + Hey, why not? + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/main/resources/org/camunda/bpm/example/drg/dinnerDecisions.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/main/resources/org/camunda/bpm/example/drg/dinnerDecisions.png new file mode 100644 index 0000000000000000000000000000000000000000..8e987a7fc52be34fa18d6fa4f23b24509257e583 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/main/resources/org/camunda/bpm/example/drg/dinnerDecisions.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c420262e2faf68ac025c1fdbea37d72a01aad3911198e38799788c4f993e12ed +size 16859 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/main/resources/org/camunda/bpm/example/drg/dish.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/main/resources/org/camunda/bpm/example/drg/dish.png new file mode 100644 index 0000000000000000000000000000000000000000..02843540b841128d498311218af608e83bc4d42b --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/main/resources/org/camunda/bpm/example/drg/dish.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a41ae85246b1cf8d89de2ed7bd938056691239936b45276eda20132d44838e96 +size 33919 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/test/java/org/camunda/bpm/example/drg/DrgDecisionTest.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/test/java/org/camunda/bpm/example/drg/DrgDecisionTest.java new file mode 100644 index 0000000000000000000000000000000000000000..3d017a7a7df2c5570212ce8f2f34dca99bd1128a --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-drg/src/test/java/org/camunda/bpm/example/drg/DrgDecisionTest.java @@ -0,0 +1,91 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.drg; + +import static org.assertj.core.api.Assertions.assertThat; + +import java.io.InputStream; + +import org.camunda.bpm.dmn.engine.DmnDecision; +import org.camunda.bpm.dmn.engine.DmnDecisionTableResult; +import org.camunda.bpm.dmn.engine.DmnEngine; +import org.camunda.bpm.dmn.engine.test.DmnEngineRule; +import org.camunda.bpm.engine.variable.VariableMap; +import org.camunda.bpm.engine.variable.Variables; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; + +public class DrgDecisionTest { + + @Rule + public DmnEngineRule dmnEngineRule = new DmnEngineRule(); + + public DmnEngine dmnEngine; + public DmnDecision decision; + + @Before + public void parseDecision() { + InputStream inputStream = DrgDecisionTest.class + .getResourceAsStream("dinnerDecisions.dmn"); + dmnEngine = dmnEngineRule.getDmnEngine(); + decision = dmnEngine.parseDecision("beverages", inputStream); + } + + @Test + public void shouldServeGuiness() { + VariableMap variables = Variables + .putValue("season", "Spring") + .putValue("guestCount", 10) + .putValue("guestsWithChildren", false); + + DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables); + + assertThat(result.collectEntries("beverages")) + .hasSize(2) + .contains("Guiness", "Water"); + } + + @Test + public void shouldServeBordeauxAndAppleJuice() { + VariableMap variables = Variables + .putValue("season", "Winter") + .putValue("guestCount", 7) + .putValue("guestsWithChildren", true); + + DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables); + + assertThat(result.collectEntries("beverages")) + .hasSize(3) + .contains("Bordeaux", "Apple Juice", "Water"); + } + + @Test + public void shouldServePinotNoir() { + VariableMap variables = Variables + .putValue("season", "Summer") + .putValue("guestCount", 14) + .putValue("guestsWithChildren", false); + + DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables); + + assertThat(result.collectEntries("beverages")) + .hasSize(2) + .contains("Pinot Noir", "Water"); + } + +} \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/README.md new file mode 100644 index 0000000000000000000000000000000000000000..2f46d9c225b5284c6aaf10dcd6ff5dd35d4e1886 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/README.md @@ -0,0 +1,206 @@ +# Camunda Dmn Engine in a Java Main Method + +This example demonstrates how to use the [Camunda DMN engine] as library +in a custom application. The DMN Engine is added to the example as a Maven dependency. +The example contains a Java class with a Main Method in which the DMN Engine is bootstraped and +used to execute a decision table loaded from the classpath. + +## The used DMN Decision Table + +The example uses a decision table from the [DMN tutorial] to decided which dish should be served to our guests for dinner: + +![Dish Decision] + +You can find the corresponding DMN XML file [dish-decision.dmn11.xml] in the +resources. To modify it you can use the [Camunda Modeler]. + +## Code Walkthrough + +### Maven Dependencies + +Include the DMN engine BOM for dependency management: + +```xml + + + + org.camunda.bpm.dmn + camunda-engine-dmn-bom + ${version.camunda} + pom + import + + + +``` + +Add the DMN engine as a dependency: + +```xml + + org.camunda.bpm.dmn + camunda-engine-dmn + +``` + +Include some slf4j backend. The simplest option is to not add a backend at all but simply redirect logging to jdk logging: + +```xml + + + org.slf4j + slf4j-jdk14 + 2.0.16 + +``` + +### Bootstrap the DMN Engine in a Main Method + +The Java Class [DishDecider.java] has a main method which bootstraps the DMN Engine using the +default configuration: + +```java +public class DishDecider { + + public static void main(String[] args) { + + // create a new default DMN engine + DmnEngine dmnEngine = DmnEngineConfiguration + .createDefaultDmnEngineConfiguration() + .buildEngine(); + + } + +} + +``` + +### Parsing and Executing the Decision Table + +Once the DMN Engine is bootstrapped, it can be used to first parse a decision loaded from the classpath: + +```java +InputStream inputStream = DishDecider.class.getResourceAsStream("dish-decision.dmn11.xml"); + +DmnDecision decision = dmnEngine.parseDecision("decision", inputStream); + +``` + +The parsed DmnDecsion can be cached and executed multiple times. + +In order to execute it, it needs to be passed to the `evaluateDecisionTable` method: + +```java +DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables); +``` + +The File [DishDecider.java] contains the complete source code including variable handling and parsing +of the command line arguments. + +### Writing Tests with JUnit + +> Note: You can read more about decision testing in our [User Guide]. + +[DishDecisionTest.java] uses the `DmnEngineRule` JUnit Rule to create a default DMN engine and than test different +inputs on the decision: + +```java +public class DishDecisionTest { + + @Rule + public DmnEngineRule dmnEngineRule = new DmnEngineRule(); + + public DmnEngine dmnEngine; + public DmnDecision decision; + + @Before + public void parseDecision() { + InputStream inputStream = DishDecisionTest.class.getResourceAsStream("dish-decision.dmn11.xml"); + dmnEngine = dmnEngineRule.getDmnEngine(); + decision = dmnEngine.parseDecision("decision", inputStream); + } + + @Test + public void shouldServeDryAgedInSpringForFewGuests() { + VariableMap variables = Variables + .putValue("season", "Spring") + .putValue("guestCount", 4); + + DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables); + assertEquals("Dry Aged Gourmet Steak", result.getSingleResult().getSingleEntry()); + } + + @Test + public void shouldServeSteakInSpringForSomeGuests() { + VariableMap variables = Variables + .putValue("season", "Spring") + .putValue("guestCount", 7); + + DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables); + assertEquals("Steak", result.getSingleResult().getSingleEntry()); + } + + @Test + public void shouldServeStewInSpringForMayGuests() { + VariableMap variables = Variables + .putValue("season", "Spring") + .putValue("guestCount", 20); + + DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables); + assertEquals("Stew", result.getSingleResult().getSingleEntry()); + } + +} +``` + +## Running the Example + +The example expects two arguments. First, the current season of the year and second the number of expected guests. + +To run it you can either use maven: + +``` +mvn compile exec:java +``` + +This will compile the project and execute it with the arguments +`Winter` for the current season and `4` for the number of expected guests. + +This should produce an output which contains: + +``` +Dish Decision: + I would recommend to serve: Roastbeef +``` + +You can specify other arguments with maven. For example for your summer party: + +``` +mvn compile exec:java -Dexec.args="Summer 32" +``` + +You can also create a executable Java jar file with: + +``` +mvn clean package +``` + +This will produce a `DishDecider.jar` file in the `target` folder. You can +than call it like any other jar file: + +``` +java -jar target/DishDecider.jar Spring 6 + +Dish Decision: + I would recommend to serve: Steak +``` + + +[Camunda DMN engine]: https://docs.camunda.org/manual/7.24/user-guide/dmn-engine/ +[DMN tutorial]: https://camunda.com/dmn/ +[Dish Decision]: src/main/resources/org/camunda/bpm/example/dish-decision.png +[dish-decision.dmn11.xml]: src/main/resources/org/camunda/bpm/example/dish-decision.dmn11.xml +[Camunda Modeler]: https://camunda.com/products/camunda-bpm/modeler/ +[DishDecider.java]: src/main/java/org/camunda/bpm/example/DishDecider.java +[User Guide]: https://docs.camunda.org/manual/7.24/user-guide/dmn-engine/testing/ +[DishDecisionTest.java]: src/test/java/org/camunda/bpm/example/DishDecisionTest.java diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..1ecadb36c43e600435b5ceba1e46196e0e4c7b38 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/pom.xml @@ -0,0 +1,113 @@ + + + 4.0.0 + + org.camunda.bpm.example + camunda-example-decision-engine-java-main + 1.0-SNAPSHOT + jar + + + 7.24.0 + 2.0.16 + 4.13.2 + 11 + UTF-8 + + 3.11.0 + + + + + + org.camunda.bpm.dmn + camunda-engine-dmn-bom + ${version.camunda} + pom + import + + + + + + + org.camunda.bpm.dmn + camunda-engine-dmn + + + + + org.slf4j + slf4j-jdk14 + ${version.slf4j} + + + + + junit + junit + ${version.junit} + + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.4.0 + + org.camunda.bpm.example.DishDecider + + Winter + 4 + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.10 + + + copy-dependencies + prepare-package + + copy-dependencies + + + ${project.build.directory}/lib + false + false + true + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.6 + + + + true + lib/ + false + org.camunda.bpm.example.DishDecider + + + DishDecider + + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.plugin.maven-compiler} + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/src/main/java/org/camunda/bpm/example/DishDecider.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/src/main/java/org/camunda/bpm/example/DishDecider.java new file mode 100644 index 0000000000000000000000000000000000000000..aa5c4f8ec9732dbf8a2f4ca8439a5fcf59b31dfa --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/src/main/java/org/camunda/bpm/example/DishDecider.java @@ -0,0 +1,85 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example; + +import java.io.IOException; +import java.io.InputStream; + +import org.camunda.bpm.dmn.engine.DmnDecision; +import org.camunda.bpm.dmn.engine.DmnDecisionTableResult; +import org.camunda.bpm.dmn.engine.DmnEngine; +import org.camunda.bpm.dmn.engine.DmnEngineConfiguration; +import org.camunda.bpm.engine.variable.VariableMap; +import org.camunda.bpm.engine.variable.Variables; + +public class DishDecider { + + public static void printUsage(String errorMessage, int exitCode) { + System.err.println("Error: " + errorMessage); + System.err.println("Usage: java -jar DishDecider.jar SEASON GUEST_COUNT\n\n\tSEASON: the current season (Spring, Summer, Fall or Winter)\n\tGUEST_COUNT: number of guest to expect"); + System.exit(exitCode); + } + + public static void main(String[] args) { + // parse arguments + if (args.length != 2) { + printUsage("Please specify the current season and the expected number of guests.", 1); + } + String season = args[0]; + + Integer guestCount = 0; + try { + guestCount = Integer.parseInt(args[1]); + } + catch (NumberFormatException e) { + printUsage("The number of expected guests must be a number", 2); + } + + // prepare variables for decision evaluation + VariableMap variables = Variables + .putValue("season", season) + .putValue("guestCount", guestCount); + + // create a new default DMN engine + DmnEngine dmnEngine = DmnEngineConfiguration.createDefaultDmnEngineConfiguration().buildEngine(); + + // parse decision from resource input stream + InputStream inputStream = DishDecider.class.getResourceAsStream("dish-decision.dmn11.xml"); + + try { + DmnDecision decision = dmnEngine.parseDecision("decision", inputStream); + + // evaluate decision + DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables); + + // print result + String desiredDish = result.getSingleResult().getSingleEntry(); + System.out.println("Dish Decision:\n\tI would recommend to serve: " + desiredDish); + + } + finally { + try { + inputStream.close(); + } + catch (IOException e) { + System.err.println("Could not close stream: "+e.getMessage()); + } + } + } + + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/src/main/resources/org/camunda/bpm/example/dish-decision.dmn11.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/src/main/resources/org/camunda/bpm/example/dish-decision.dmn11.xml new file mode 100644 index 0000000000000000000000000000000000000000..402eaba5472b34520951bd5ecc42633c5ae69a8d --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/src/main/resources/org/camunda/bpm/example/dish-decision.dmn11.xml @@ -0,0 +1,68 @@ + + + + + + season + + + + guestCount + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Save money + + + [5..8] + + + + + + Less effort + + + 8]]> + + + + + + Hey, why not!? + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/src/main/resources/org/camunda/bpm/example/dish-decision.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/src/main/resources/org/camunda/bpm/example/dish-decision.png new file mode 100644 index 0000000000000000000000000000000000000000..8a1b0c9bb5b0d8cf40391ebdc482669fe61597b4 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/src/main/resources/org/camunda/bpm/example/dish-decision.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a94956aded66b5751ea94537c735d75547b79f66813359696a9600fbce6b69ed +size 38584 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/src/test/java/org/camunda/bpm/example/DishDecisionTest.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/src/test/java/org/camunda/bpm/example/DishDecisionTest.java new file mode 100644 index 0000000000000000000000000000000000000000..5de7914be1597911efc53941d2128e120650c49a --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/dmn-engine/dmn-engine-java-main-method/src/test/java/org/camunda/bpm/example/DishDecisionTest.java @@ -0,0 +1,78 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example; + +import static org.junit.Assert.assertEquals; + +import java.io.InputStream; + +import org.camunda.bpm.dmn.engine.DmnDecision; +import org.camunda.bpm.dmn.engine.DmnDecisionTableResult; +import org.camunda.bpm.dmn.engine.DmnEngine; +import org.camunda.bpm.dmn.engine.test.DmnEngineRule; +import org.camunda.bpm.engine.variable.VariableMap; +import org.camunda.bpm.engine.variable.Variables; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; + +public class DishDecisionTest { + + @Rule + public DmnEngineRule dmnEngineRule = new DmnEngineRule(); + + public DmnEngine dmnEngine; + public DmnDecision decision; + + @Before + public void parseDecision() { + InputStream inputStream = DishDecisionTest.class.getResourceAsStream("dish-decision.dmn11.xml"); + dmnEngine = dmnEngineRule.getDmnEngine(); + decision = dmnEngine.parseDecision("decision", inputStream); + } + + @Test + public void shouldServeDryAgedInSpringForFewGuests() { + VariableMap variables = Variables + .putValue("season", "Spring") + .putValue("guestCount", 4); + + DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables); + assertEquals("Dry Aged Gourmet Steak", result.getSingleResult().getSingleEntry()); + } + + @Test + public void shouldServeSteakInSpringForSomeGuests() { + VariableMap variables = Variables + .putValue("season", "Spring") + .putValue("guestCount", 7); + + DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables); + assertEquals("Steak", result.getSingleResult().getSingleEntry()); + } + + @Test + public void shouldServeStewInSpringForManyGuests() { + VariableMap variables = Variables + .putValue("season", "Spring") + .putValue("guestCount", 20); + + DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables); + assertEquals("Stew", result.getSingleResult().getSingleEntry()); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/internal/version-bump/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/internal/version-bump/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..a653c65771e5c46dd03bd67413735acf993c8934 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/internal/version-bump/pom.xml @@ -0,0 +1,109 @@ + + 4.0.0 + org.camunda.bpm.quickstart + root + 0.0.1-SNAPSHOT + pom + Camunda Examples Root + + + 7.99.0 + 4.99.2 + 2.99.0 + 1.99.36 + 99 + 3.99.0 + + **/pom.xml + /internal/** + ../.. + + + + + bump-versions + + + + maven-antrun-plugin + 3.1.0 + + + package + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + run + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/migration/migrate-on-deployment/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/migration/migrate-on-deployment/README.md new file mode 100644 index 0000000000000000000000000000000000000000..346bbe0fdb8699df4b152216a59cc1e4427c82ed --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/migration/migrate-on-deployment/README.md @@ -0,0 +1,53 @@ +Migration on Deployment of New Process Version +============================================== + +This example demonstrates how to use the Java API for [process instance migration](http://docs.camunda.org/manual/7.24/user-guide/process-engine/process-instance-migration/) to migrate process instances whenever a new version of a process is deployed. + +How to Use It? +-------------- + +1. Download, install, and start up a [Camunda distribution](https://camunda.com/download/) +2. Checkout the project with Git +3. Import the project into your IDE +4. Build it with maven +5. Deploy the resulting web application to the application server +6. Go to Camunda Tasklist ([http://localhost:8080/camunda/app/tasklist/default/#/](http://localhost:8080/camunda/app/tasklist/default/#/)) and start a process instance of the *Example Process* +7. Modify the process model ([src/main/resources/exampleProcess.bpmn](src/main/resources/exampleProcess.bpmn)), for example by adding another user task +8. Build it again with maven +9. Re-deploy the web application +10. Go to Camunda Cockpit ([http://localhost:8080/camunda/app/cockpit/default/#/](http://localhost:8080/camunda/app/cockpit/default/#/)) and see that the process instance was migrated + +How Does It Work? +----------------- + +The process application class [ExampleProcessApplication](src/main/java/org/camunda/bpm/platform/example/migration/ExampleProcessApplication.java) declares a `@PostDeploy` hook. This is called whenever the application is deployed. +The implementation then identifies the latest versions of the deployed process definitions. The migration from the second-latest to the latest version +is implemented in `#migrateInstancesFromPreviousVersion`: + +```java +protected void migrateInstances(ProcessEngine processEngine, + ProcessDefinition sourceDefinition, + ProcessDefinition targetDefinition) { + + RuntimeService runtimeService = processEngine.getRuntimeService(); + + MigrationPlan migrationPlan = runtimeService + .createMigrationPlan(sourceDefinition.getId(), targetDefinition.getId()) + .mapEqualActivities() + .build(); + + LOG.info("Migrating all process instances from " + sourceDefinition.getId() + " to " + targetDefinition.getId()); + + runtimeService + .newMigration(migrationPlan) + .processInstanceQuery(runtimeService.createProcessInstanceQuery().processDefinitionId(sourceDefinition.getId())) + .execute(); + // .executeAsync() for asynchronous execution in a batch (useful for large numbers of instances) +} +``` + +What Else is There to Know? +--------------------------- + +* The migration plan is generated by calling `#mapEqualActivities` on the migration plan builder. See the documentation on [migration plan generation](http://docs.camunda.org/manual/7.24/user-guide/process-engine/process-instance-migration/#generating-a-migration-plan) for which kind of instruction this method can generate. The example can be extended to explicitly provide instructions via `mapActivities` to support advanced use cases. Such instructions could be parsed from an accompanying deployment descriptor. +* The implementation is not robust when the process instances to migrate are modified in parallel. Migration may fail with an `OptimisticLockingException` and roll back in such a case. diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/migration/migrate-on-deployment/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/migration/migrate-on-deployment/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..4196e85fd4040195342fa85b14f2710cd8c47a47 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/migration/migrate-on-deployment/pom.xml @@ -0,0 +1,69 @@ + + + 4.0.0 + + org.camunda.bpm.example + camunda-example-migrate-on-deployment + 1.0-SNAPSHOT + war + + + 7.24.0 + 6.1.0 + 1.7.36 + 17 + false + + 3.11.0 + + + + + + org.camunda.bpm + camunda-bom + ${version.camunda} + pom + import + + + + + + + org.camunda.bpm + camunda-engine + provided + + + + jakarta.servlet + jakarta.servlet-api + ${version.servlet} + provided + + + + + org.slf4j + slf4j-jdk14 + ${version.slf4j} + + + + + + org.apache.maven.plugins + maven-war-plugin + 3.4.0 + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.plugin.maven-compiler} + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/migration/migrate-on-deployment/src/main/java/org/camunda/bpm/platform/example/migration/ExampleProcessApplication.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/migration/migrate-on-deployment/src/main/java/org/camunda/bpm/platform/example/migration/ExampleProcessApplication.java new file mode 100644 index 0000000000000000000000000000000000000000..dbd48d35fcfcb7262729265f900b36561cdcab48 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/migration/migrate-on-deployment/src/main/java/org/camunda/bpm/platform/example/migration/ExampleProcessApplication.java @@ -0,0 +1,166 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.platform.example.migration; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.logging.Logger; + +import org.camunda.bpm.BpmPlatform; +import org.camunda.bpm.application.PostDeploy; +import org.camunda.bpm.application.ProcessApplication; +import org.camunda.bpm.application.ProcessApplicationDeploymentInfo; +import org.camunda.bpm.application.ProcessApplicationInfo; +import org.camunda.bpm.application.impl.JakartaServletProcessApplication; +import org.camunda.bpm.engine.ProcessEngine; +import org.camunda.bpm.engine.RepositoryService; +import org.camunda.bpm.engine.RuntimeService; +import org.camunda.bpm.engine.migration.MigrationPlan; +import org.camunda.bpm.engine.repository.ProcessDefinition; +import org.camunda.bpm.engine.repository.ProcessDefinitionQuery; + +@ProcessApplication +public class ExampleProcessApplication extends JakartaServletProcessApplication { + + private final static Logger LOG = Logger.getLogger(ExampleProcessApplication.class.getName()); + + /** + *

Migrates all process instances from the last version of the process definitions + * deployed by this application to the latest version. + */ + @PostDeploy + public void migrateProcessInstances(ProcessApplicationInfo processApplicationInfo) { + + Map> deploymentsByEngine = organizeDeploymentsByEngine(processApplicationInfo); + + for (String engineName : deploymentsByEngine.keySet()) { + ProcessEngine processEngine = BpmPlatform.getProcessEngineService().getProcessEngine(engineName); + + List latestIncludedProcessDefinitions = + collectLatestProcessDefinitions(processEngine, deploymentsByEngine.get(engineName)); + + for (ProcessDefinition latestDefinition : latestIncludedProcessDefinitions) { + ProcessDefinition previousDefinition = getPreviousVersion(processEngine, latestDefinition); + if (previousDefinition != null) { + migrateInstances(processEngine, previousDefinition, latestDefinition); + } + } + } + } + + protected Map> organizeDeploymentsByEngine(ProcessApplicationInfo processApplicationInfo) { + Map> deploymentsByEngine = new HashMap>(); + + for (ProcessApplicationDeploymentInfo deployment : processApplicationInfo.getDeploymentInfo()) { + addToMapOfLists(deploymentsByEngine, deployment.getProcessEngineName(), deployment); + } + + return deploymentsByEngine; + } + + + protected List collectLatestProcessDefinitions(ProcessEngine processEngine, List list) { + List latestDefinitions = processEngine + .getRepositoryService() + .createProcessDefinitionQuery() + .latestVersion() + .list(); + + Set deploymentIds = collectDeploymentIds(list); + + List latestDefinitionsForApplication = new ArrayList(); + + for (ProcessDefinition latestDefinition : latestDefinitions) { + if (deploymentIds.contains(latestDefinition.getDeploymentId())) { + latestDefinitionsForApplication.add(latestDefinition); + } + } + + return latestDefinitionsForApplication; + } + + protected Set collectDeploymentIds(List deploymentInfos) { + Set deploymentIds = new HashSet(); + + for (ProcessApplicationDeploymentInfo deploymentInfo : deploymentInfos) { + deploymentIds.add(deploymentInfo.getDeploymentId()); + } + + return deploymentIds; + } + + /** + * Selects the process definition with the preceding version for the same key and tenant as the argument. + */ + protected ProcessDefinition getPreviousVersion(ProcessEngine processEngine, ProcessDefinition processDefinition) { + + if (processDefinition.getVersion() <= 1) { + return null; + } + + RepositoryService repositoryService = processEngine.getRepositoryService(); + + ProcessDefinitionQuery processDefinitionQuery = repositoryService + .createProcessDefinitionQuery() + .processDefinitionKey(processDefinition.getKey()) + .processDefinitionVersion(processDefinition.getVersion() - 1); + + if (processDefinition.getTenantId() != null) { + processDefinitionQuery.tenantIdIn(processDefinition.getTenantId()); + } + else { + processDefinitionQuery.withoutTenantId(); + } + + return processDefinitionQuery.singleResult(); + } + + protected void migrateInstances(ProcessEngine processEngine, + ProcessDefinition sourceDefinition, + ProcessDefinition targetDefinition) { + + RuntimeService runtimeService = processEngine.getRuntimeService(); + + MigrationPlan migrationPlan = runtimeService + .createMigrationPlan(sourceDefinition.getId(), targetDefinition.getId()) + .mapEqualActivities() + .build(); + + LOG.info("Migrating all process instances from " + sourceDefinition.getId() + " to " + targetDefinition.getId()); + + runtimeService + .newMigration(migrationPlan) + .processInstanceQuery(runtimeService.createProcessInstanceQuery().processDefinitionId(sourceDefinition.getId())) + .execute(); + // .executeAsync() for asynchronous execution in a batch (useful for large numbers of instances) + } + + + protected static void addToMapOfLists(Map> map, S key, T value) { + List list = map.get(key); + if (list == null) { + list = new ArrayList(); + map.put(key, list); + } + list.add(value); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/migration/migrate-on-deployment/src/main/resources/META-INF/processes.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/migration/migrate-on-deployment/src/main/resources/META-INF/processes.xml new file mode 100644 index 0000000000000000000000000000000000000000..f7cddbeb54d053ce9fdc314038bfbc7533195545 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/migration/migrate-on-deployment/src/main/resources/META-INF/processes.xml @@ -0,0 +1,14 @@ + + + + + + default + + false + true + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/migration/migrate-on-deployment/src/main/resources/exampleProcess.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/migration/migrate-on-deployment/src/main/resources/exampleProcess.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..61b55c654b624d835ba9aca0374b49aaac3a6088 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/migration/migrate-on-deployment/src/main/resources/exampleProcess.bpmn @@ -0,0 +1,41 @@ + + + + + SequenceFlow_1 + + + + SequenceFlow_2 + + + + SequenceFlow_1 + SequenceFlow_2 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/README.md new file mode 100644 index 0000000000000000000000000000000000000000..44085db87cf8457d0926a2b2c8aee88211c79829 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/README.md @@ -0,0 +1,358 @@ +# Multi-Tenancy with Tenant Isolation via Database Schemas + +

  • Before Starting
  • +
  • Configuring the Database
  • +
  • Configuring Process Engines
  • +
  • Develop a Tenant-Aware Process Application +
  • +
  • Deploy the Application to WildFly
  • +
  • Testing
  • + + +Sometimes it is desired to share one Camunda installation between multiple independent parties, also referred to as *tenants*. While sharing an installation means sharing computational resources, the tenants' data should be separated from each other. This tutorial shows how to work with the [one process engine per tenant approach](https://docs.camunda.org/manual/7.24/user-guide/process-engine/multi-tenancy/#one-process-engine-per-tenant). + +In detail it explains how to: + +* configure one process engine per tenant on a WildFly Application Server such that data is isolated by database schemas +* develop a process application with tenant-specific deployments +* access the correct process engine from a REST resource based on a tenant identifier + +See the [user guide](https://docs.camunda.org/manual/7.24/user-guide/process-engine/multi-tenancy/) for a general introduction on multi-tenancy and the different options Camunda offers. + + +# Before Starting + +Before starting, make sure to download the [Camunda Platform WildFly distribution](https://downloads.camunda.cloud/release/camunda-bpm/wildfly/) and extract it to a folder. We will call this folder `$CAMUNDA_HOME` in the following explanations. + +# Configuring the Database + +Before configuring process engines, we have to set up a database schema for every tenant. In this section we will explain how to do so. + +Start up WildFly. After the database has been created, start a DB client (e.g. [DBeaver](https://dbeaver.io/)) and connect to the database. This is the default connection information: + +* **Driver Class**: org.h2.Driver +* **JDBC URL**: jdbc:h2:./camunda-h2-dbs/process-engine +* **User Name**: sa +* **Password**: sa + +Create two different schemas for the different process engines: + +```sql +create schema TENANT1; +create schema TENANT2; +``` + +Next, inside each schema, create the database tables. To achieve this, get the SQL create scripts +from the WildFly distribution from the `sql/create/` folder inside your distribution. + +Execute the create scripts (`h2_engine_7.24.0.sql` and `h2_identity_7.24.0.sql`) after selecting the appropriate schema for the current connection: + +```sql +set schema TENANT1; + +<> +<> + +set schema TENANT2; + +<> +<> +``` + +Execute the SQL script. + +After creating the tables in the two schemas, check that the tables have been created for both schemas. + + +# Configuring Process Engines + +In this step, we configure a process engine for each tenant. We ensure that these engines access the database schemas we have previously created. This way, process data of a tenant cannot interfere with that of another. + +Open the file `$WILDFLY_HOME/standalone/configuration/standalone.xml`. In that file, navigate to the configuration of the Camunda jboss subsystem, declared in an XML element ``. In this file, add two entries to the `` section (do *not* remove default engine configuration): + +The configuration of the process engine for tenant 1: + +```xml + + java:jboss/datasources/ProcessEngine + none + + TENANT1. + default + + false + true + true + + + + + org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerPlugin + + + +``` + +The configuration of the process engine for tenant 2: + +```xml + + java:jboss/datasources/ProcessEngine + none + + TENANT2. + default + + false + true + true + + + + + org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerPlugin + + + +``` + +(find the complete `standalone.xml` [here](standalone.xml)) + +By having a look at the `datasource` configuration, you will notice that the data source is shared between all engines. The property `databaseTablePrefix` points the engines to different database schemas. This makes it possible to shares resources like a database connection pool between both engines. Also have a look at the entry `jobExecutorAcquisitionName`. The job acquisition is part of the job executor, a component responsible for executing asynchronous tasks in the process engine (cf. the `job-executor` element in the subsystem configuration). Again, the `jobExecutorAcquisitionName` configuration enables reuse of one acquisition thread for all engines. + +The approach of configuring multiple engines also allows you to differ engine configurations apart from the database-related parameters. For example, you can activate process engine plugins for some tenants while excluding them for others. + + +# Develop a Tenant-Aware Process Application + +In this step, we describe a process application that deploys different processes for the two tenants. It also exposes a REST resource that returns a tenant's process definitions. To identify the tenant, we provide a user name in the REST request. In the implementation, we use CDI to transparently interact with the correct process engine based on the tenant identifier. + +The following descriptions highlight the concepts related to implementing multi-tenancy in a step-by-step explanation to develop along. + + +## Set Up the Process Application + +In the project, we have set up a plain Camunda EJB process application. + +In [pom.xml](pom.xml), the `camunda-engine-cdi` and `camunda-ejb-client` dependencies are added: + +```xml + + org.camunda.bpm + camunda-engine-cdi-jakarta + + + + org.camunda.bpm.javaee + camunda-ejb-client-jakarta + +``` + +These are required to inject process engines via CDI. + + +## Configure a Tenant-specific Deployment + +In the folder `src/main/resources`, we have added a folder `processes` and two subfolders `tenant1` and `tenant2`. These folders contain a [process for tenant 1](src/main/resources/processes/tenant1) and a [process for tenant 2](src/main/resources/processes/tenant2), respectively. + +In order to deploy the two definitions to the two different engines, we have added a file `src/main/resources/META-INF/processes.xml` with the following content: + +```xml + + + + tenant1 + + classpath:processes/tenant1/ + + false + true + + + + + tenant2 + + classpath:processes/tenant2/ + + false + true + + + + +``` + +This file declares two *process archives*. By the `process-engine` element, we can specify the engine to which an archive should be deployed. By the `resourceRootPath`, we can assign different portions of the contained process definitions to different process archives. + + +## Build a Simple JAX-RS Resource + +To showcase the programming model for multi-tenancy with CDI, we have added a simple REST resource that returns all deployed process definitions for a process engine. The resource has the following [source code](src/main/java/org/camunda/bpm/tutorial/multitenancy/ProcessDefinitionResource.java): + +```java +@Path("/process-definition") +public class ProcessDefinitionResource { + + @Inject + protected ProcessEngine processEngine; + + @GET + @Produces(MediaType.APPLICATION_JSON) + public List getProcessDefinitions() { + List processDefinitions = + processEngine.getRepositoryService().createProcessDefinitionQuery().list(); + + return ProcessDefinitionDto.fromProcessDefinitions(processDefinitions); + } +} +``` + +Note that the distinction between tenants is not made in this resource. + + +## Make CDI Injection Tenant-aware + +We want the injected process engine to always be the one that matches the current tenant making a REST request. For this matter, we have added a request-scoped [tenant bean](src/main/java/org/camunda/bpm/tutorial/multitenancy/Tenant.java): + +```java +@RequestScoped +public class Tenant { + + protected String id; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } +} +``` + +To populate this bean with the tenant ID for the current user, we add a [RestEasy interceptor](src/main/java/org/camunda/bpm/tutorial/multitenancy/TenantInterceptor.java). This interceptor is called before a REST request is dispatched to the `ProcessDefinitionResource`. It has the following content: + +```java +@Provider +public class TenantInterceptor implements ContainerRequestFilter { + + protected static final Map USER_TENANT_MAPPING = new HashMap<>(); + + static { + USER_TENANT_MAPPING.put("kermit", "tenant1"); + USER_TENANT_MAPPING.put("gonzo", "tenant2"); + } + + @Inject + protected Tenant tenant; + + @Override + public void filter(ContainerRequestContext requestContext) throws IOException { + List user = requestContext.getUriInfo().getQueryParameters().get("user"); + + if (user.size() != 1) { + throw new WebApplicationException(Status.BAD_REQUEST); + } + + String tenantForUser = USER_TENANT_MAPPING.get(user.get(0)); + tenant.setId(tenantForUser); + } +} +``` + +Note that the tenant ID is determined based on a simple static map. Of course, in real-world applications one would implement a more sophisticated lookup procedure here. + +To resolve the process engine based on the tenant, we have [specialized the process engine producer](src/main/java/org/camunda/bpm/tutorial/multitenancy/TenantAwareProcessEngineServicesProducer.java) bean as follows: + +```java +@Specializes +public class TenantAwareProcessEngineServicesProducer extends ProcessEngineServicesProducer { + + @Inject + private Tenant tenant; + + @Override + @Named + @Produces + @RequestScoped + public ProcessEngine processEngine() { + CommandContext commandContext = Context.getCommandContext(); + + if (commandContext == null) { + return getProcessEngineByTenantId(tenant.getId()); + + } else { + // used within the process engine (e.g. by the job executor) + return commandContext.getProcessEngineConfiguration().getProcessEngine(); + } + } + + protected ProcessEngine getProcessEngineByTenantId(String tenantId) { + if (tenantId != null) { + ProcessEngine processEngine = BpmPlatform.getProcessEngineService().getProcessEngine(tenantId); + if (processEngine != null) { + return processEngine; + } else { + throw new ProcessEngineException("No process engine found for tenant id '" + tenantId + "'."); + } + } else { + throw new ProcessEngineException("No tenant id specified. A process engine can only be retrieved based on a tenant."); + } + } + + @Override + @Produces + @Named + @RequestScoped + public RuntimeService runtimeService() { + return processEngine().getRuntimeService(); + } + + ... +} +``` + +The producer determines the engine based on the current tenant. It encapsulates the logic of resolving the process engine for the current tenant entirely. Every bean can simply declare `@Inject ProcessEngine` without specifying which specific engine is addressed to work with the current tenant's engine. + + +# Deploy the Application to WildFly + +Start up WildFly. Build the process application and deploy the resulting war file to WildFly. + +Make a GET request (e.g., by entering the URL in your browser) against the following URL to get all process definitions deployed to tenant 1's engine: http://localhost:8080/multi-tenancy-tutorial/process-definition?user=kermit + +Only the process for tenant 1 is returned. + +Make a GET request against the following URL to get all process definitions deployed to tenant 2's engine: +http://localhost:8080/multi-tenancy-tutorial/process-definition?user=gonzo + +Only the process for tenant 2 is returned. + +Go to Camunda Cockpit and switch the engine to `tenant1` on the following URL (you will be asked to create an admin user first): +http://localhost:8080/camunda/app/cockpit/tenant1/ + +Only the process for tenant 1 shows up. You can check the same for tenant 2 by switching to engine `tenant2`. + +And you're done! :) + + +# Testing + +The test class [ProcessIntegrationTest](src/test/java/org/camunda/bpm/tutorial/multitenancy/ProcessIntegrationTest.java) uses Arquillian to verify the behavior. + +Follow the steps to run the test: + +* Download the [Camunda Platform WildFly distribution](https://downloads.camunda.cloud/release/camunda-bpm/wildfly/) +* Replace the `camunda-bpm-wildfly-{version}/server/wildfly-{version}/standalone/configuration/standalone.xml` with + * [standalone.xml](standalone.xml) (two schemas - requires manual schema creation) or + * [standalone_test.xml](standalone_test.xml) (two databases - auto schema creation) +* Start the server. +* Go to the project directory and run the test with the Maven command `mvn test` diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..3cee009797b420481f5a3c3d181fee68f6463ba7 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/pom.xml @@ -0,0 +1,191 @@ + + 4.0.0 + org.camunda.bpm.tutorial + camunda-tutorial-multi-tenancy-schema-isolation + war + Camunda Platform - Tutorial - Tenant-Aware Process Application + 0.0.1-SNAPSHOT + + + 7.24.0 + 1.7.0.Final + 3.0.1.Final + 6.2.3.Final + 4.13.2 + 1.7.36 + 17 + UTF-8 + false + + 3.11.0 + + + + + + org.camunda.bpm + camunda-bom + ${camunda.version} + import + pom + + + + org.jboss.arquillian + arquillian-bom + ${arquillian.version} + import + pom + + + + + + + + + org.camunda.bpm + camunda-engine + provided + + + + + org.camunda.bpm.javaee + camunda-ejb-client-jakarta + + + + + org.camunda.bpm + camunda-engine-cdi-jakarta + + + + jakarta.platform + jakarta.jakartaee-api + 10.0.0 + provided + + + + org.jboss.resteasy + resteasy-core + ${version.resteasy} + provided + + + + + + junit + junit + test + ${version.junit} + + + + + org.camunda.connect + camunda-connect-connectors-all + test + + + + + org.camunda.spin + camunda-spin-dataformat-all + test + + + + + + org.jboss.arquillian.junit + arquillian-junit-container + test + + + org.jboss.arquillian.protocol + arquillian-protocol-servlet-jakarta + test + + + org.jboss.shrinkwrap.resolver + shrinkwrap-resolver-impl-maven + test + + + + + + org.slf4j + jcl-over-slf4j + ${version.slf4j} + test + + + + org.slf4j + jul-to-slf4j + ${version.slf4j} + test + + + + + + + wildfly-remote + + true + + + + + + org.wildfly.arquillian + wildfly-arquillian-container-remote + ${wildfly.container.adapter.version} + test + + + org.picketbox + picketbox + + + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.plugin.maven-compiler} + + + org.apache.maven.plugins + maven-war-plugin + 3.3.2 + + + + + + + camunda-bpm-nexus + Camunda Platform Maven Repository + https://artifacts.camunda.com/artifactory/private/ + + + jboss-public-repository + JBoss Repository + https://repository.jboss.org/nexus/content/groups/public + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/MultiTenancyJaxRsApplication.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/MultiTenancyJaxRsApplication.java new file mode 100644 index 0000000000000000000000000000000000000000..00d1112ac095d620bd9c4ecf18d039fc48765fa5 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/MultiTenancyJaxRsApplication.java @@ -0,0 +1,29 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; + +/** + * @author Thorben Lindhauer + * + */ +@ApplicationPath("/") +public class MultiTenancyJaxRsApplication extends Application { + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/ProcessDefinitionDto.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/ProcessDefinitionDto.java new file mode 100644 index 0000000000000000000000000000000000000000..72bde75b50095d326933620b7226593f201afae7 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/ProcessDefinitionDto.java @@ -0,0 +1,77 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + + +import java.util.ArrayList; +import java.util.List; + +import org.camunda.bpm.engine.repository.ProcessDefinition; + +/** + * @author Thorben Lindhauer + * + */ +public class ProcessDefinitionDto { + + protected String id; + protected String key; + protected int version; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public int getVersion() { + return version; + } + + public void setVersion(int version) { + this.version = version; + } + + public static ProcessDefinitionDto fromProcessDefinition(ProcessDefinition definition) { + ProcessDefinitionDto dto = new ProcessDefinitionDto(); + dto.id = definition.getId(); + dto.key = definition.getKey(); + dto.version = definition.getVersion(); + + return dto; + } + + public static List fromProcessDefinitions(List definitions) { + List dtos = new ArrayList<>(); + + for (ProcessDefinition definition : definitions) { + dtos.add(fromProcessDefinition(definition)); + } + + return dtos; + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/ProcessDefinitionResource.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/ProcessDefinitionResource.java new file mode 100644 index 0000000000000000000000000000000000000000..184a130c7b08bea90a58525a2348d19ca58f1212 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/ProcessDefinitionResource.java @@ -0,0 +1,48 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + +import java.util.List; + +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; + +import org.camunda.bpm.engine.ProcessEngine; +import org.camunda.bpm.engine.repository.ProcessDefinition; + +/** + * @author Thorben Lindhauer + * + */ +@Path("/process-definition") +public class ProcessDefinitionResource { + + @Inject + protected ProcessEngine processEngine; + + @GET + @Produces(MediaType.APPLICATION_JSON) + public List getProcessDefinitions() { + List processDefinitions = + processEngine.getRepositoryService().createProcessDefinitionQuery().list(); + + return ProcessDefinitionDto.fromProcessDefinitions(processDefinitions); + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/SimpleServiceTask.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/SimpleServiceTask.java new file mode 100644 index 0000000000000000000000000000000000000000..c6fb857430601de13c3ba0051eea67707ecc126b --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/SimpleServiceTask.java @@ -0,0 +1,39 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + +import jakarta.inject.Inject; +import jakarta.inject.Named; + +import org.camunda.bpm.engine.RuntimeService; +import org.camunda.bpm.engine.delegate.DelegateExecution; +import org.camunda.bpm.engine.delegate.JavaDelegate; + +@Named +public class SimpleServiceTask implements JavaDelegate { + + @Inject + private RuntimeService runtimeService; + + @Override + public void execute(DelegateExecution execution) throws Exception { + // do the stuff + + runtimeService.setVariable(execution.getId(), "invoked", true); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/Tenant.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/Tenant.java new file mode 100644 index 0000000000000000000000000000000000000000..f0be1d41e225d72737e91691de13debba8c2b4da --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/Tenant.java @@ -0,0 +1,37 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + +import jakarta.enterprise.context.RequestScoped; + +/** + * @author Thorben Lindhauer + * + */ +@RequestScoped +public class Tenant { + + protected String id; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/TenantAwareProcessEngineServicesProducer.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/TenantAwareProcessEngineServicesProducer.java new file mode 100644 index 0000000000000000000000000000000000000000..2c53447d2a33cd5f0011783fc7ee8a6417e3fa15 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/TenantAwareProcessEngineServicesProducer.java @@ -0,0 +1,180 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Specializes; +import jakarta.inject.Inject; +import jakarta.inject.Named; + +import org.camunda.bpm.BpmPlatform; +import org.camunda.bpm.engine.AuthorizationService; +import org.camunda.bpm.engine.CaseService; +import org.camunda.bpm.engine.DecisionService; +import org.camunda.bpm.engine.ExternalTaskService; +import org.camunda.bpm.engine.FilterService; +import org.camunda.bpm.engine.FormService; +import org.camunda.bpm.engine.HistoryService; +import org.camunda.bpm.engine.IdentityService; +import org.camunda.bpm.engine.ManagementService; +import org.camunda.bpm.engine.ProcessEngine; +import org.camunda.bpm.engine.ProcessEngineException; +import org.camunda.bpm.engine.RepositoryService; +import org.camunda.bpm.engine.RuntimeService; +import org.camunda.bpm.engine.TaskService; +import org.camunda.bpm.engine.cdi.impl.ProcessEngineServicesProducer; +import org.camunda.bpm.engine.impl.context.Context; +import org.camunda.bpm.engine.impl.interceptor.CommandContext; + +/** + * @author Thorben Lindhauer + * + */ +@Specializes +public class TenantAwareProcessEngineServicesProducer extends ProcessEngineServicesProducer { + + @Inject + private Tenant tenant; + + @Override + @Named + @Produces + @RequestScoped + public ProcessEngine processEngine() { + CommandContext commandContext = Context.getCommandContext(); + + if (commandContext == null) { + return getProcessEngineByTenantId(tenant.getId()); + + } else { + // used within the process engine (e.g. by the job executor) + return commandContext.getProcessEngineConfiguration().getProcessEngine(); + } + } + + protected ProcessEngine getProcessEngineByTenantId(String tenantId) { + if (tenantId != null) { + ProcessEngine processEngine = BpmPlatform.getProcessEngineService().getProcessEngine(tenantId); + if (processEngine != null) { + return processEngine; + } else { + throw new ProcessEngineException("No process engine found for tenant id '" + tenantId + "'."); + } + } else { + throw new ProcessEngineException("No tenant id specified. A process engine can only be retrieved based on a tenant."); + } + } + + @Override + @Produces + @Named + @RequestScoped + public RuntimeService runtimeService() { + return processEngine().getRuntimeService(); + } + + @Override + @Produces + @Named + @RequestScoped + public TaskService taskService() { + return processEngine().getTaskService(); + } + + @Override + @Produces + @Named + @RequestScoped + public RepositoryService repositoryService() { + return processEngine().getRepositoryService(); + } + + @Override + @Produces + @Named + @RequestScoped + public FormService formService() { + return processEngine().getFormService(); + } + + @Override + @Produces + @Named + @RequestScoped + public HistoryService historyService() { + return processEngine().getHistoryService(); + } + + @Override + @Produces + @Named + @RequestScoped + public IdentityService identityService() { + return processEngine().getIdentityService(); + } + + @Override + @Produces + @Named + @RequestScoped + public ManagementService managementService() { + return processEngine().getManagementService(); + } + + @Override + @Produces + @Named + @ApplicationScoped + public AuthorizationService authorizationService() { + return processEngine().getAuthorizationService(); + } + + @Override + @Produces + @Named + @ApplicationScoped + public FilterService filterService() { + return processEngine().getFilterService(); + } + + @Override + @Produces + @Named + @ApplicationScoped + public ExternalTaskService externalTaskService() { + return processEngine().getExternalTaskService(); + } + + @Override + @Produces + @Named + @ApplicationScoped + public CaseService caseService() { + return processEngine().getCaseService(); + } + + @Override + @Produces + @Named + @ApplicationScoped + public DecisionService decisionService() { + return processEngine().getDecisionService(); + } + +} \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/TenantInterceptor.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/TenantInterceptor.java new file mode 100644 index 0000000000000000000000000000000000000000..f3619e02af227d0a216b9a7b9214c9e6d3ac9968 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/java/org/camunda/bpm/tutorial/multitenancy/TenantInterceptor.java @@ -0,0 +1,60 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import jakarta.inject.Inject; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.Response.Status; +import jakarta.ws.rs.ext.Provider; + +/** + * @author Thorben Lindhauer + * + */ +@Provider +public class TenantInterceptor implements ContainerRequestFilter { + + protected static final Map USER_TENANT_MAPPING = new HashMap<>(); + + static { + USER_TENANT_MAPPING.put("kermit", "tenant1"); + USER_TENANT_MAPPING.put("gonzo", "tenant2"); + } + + @Inject + protected Tenant tenant; + + @Override + public void filter(ContainerRequestContext requestContext) throws IOException { + List user = requestContext.getUriInfo().getQueryParameters().get("user"); + + if (user.size() != 1) { + throw new WebApplicationException(Status.BAD_REQUEST); + } + + String tenantForUser = USER_TENANT_MAPPING.get(user.get(0)); + tenant.setId(tenantForUser); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/resources/META-INF/processes.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/resources/META-INF/processes.xml new file mode 100644 index 0000000000000000000000000000000000000000..2167bfed8c40c3088aef95c33ef629565f332640 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/resources/META-INF/processes.xml @@ -0,0 +1,25 @@ + + + + tenant1 + + classpath:processes/tenant1/ + + false + true + + + + + tenant2 + + classpath:processes/tenant2/ + + false + true + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/resources/processes/tenant1/tenant1_process.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/resources/processes/tenant1/tenant1_process.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..80e57ca3222c42b0af4a3b8066414ad25958de53 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/resources/processes/tenant1/tenant1_process.bpmn @@ -0,0 +1,51 @@ + + + + + SequenceFlow_1 + + + + SequenceFlow_2 + + + SequenceFlow_1 + SequenceFlow_2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/resources/processes/tenant1/tenant1_process.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/resources/processes/tenant1/tenant1_process.png new file mode 100644 index 0000000000000000000000000000000000000000..d0f268cc7d0e3b33f2c27260c85836db97ad4128 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/resources/processes/tenant1/tenant1_process.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb422ec61623f60e55578537fa80f921c7f3959d3affdb0b7d7d6e213ce2e5a5 +size 6070 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/resources/processes/tenant2/tenant2_process.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/resources/processes/tenant2/tenant2_process.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..dadf690892979fb109def1e43d2d05544ab92a5b --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/resources/processes/tenant2/tenant2_process.bpmn @@ -0,0 +1,65 @@ + + + + + SequenceFlow_0y8obrj + SequenceFlow_2 + + + + SequenceFlow_2 + + + SequenceFlow_1 + + + + + SequenceFlow_1 + SequenceFlow_0y8obrj + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/resources/processes/tenant2/tenant2_process.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/resources/processes/tenant2/tenant2_process.png new file mode 100644 index 0000000000000000000000000000000000000000..5addd778e924d137c2a601abb3f545398b693910 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/resources/processes/tenant2/tenant2_process.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0bd187e8732608b800540571d91781541c1b63eb9afce165419777151c2120e7 +size 6150 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/webapp/WEB-INF/beans.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/webapp/WEB-INF/beans.xml new file mode 100644 index 0000000000000000000000000000000000000000..ae70ed1680bd912b0d24962859b1283a0a7ecb28 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/webapp/WEB-INF/beans.xml @@ -0,0 +1,5 @@ + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/webapp/WEB-INF/jboss-web.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/webapp/WEB-INF/jboss-web.xml new file mode 100644 index 0000000000000000000000000000000000000000..b7c7bcf77c80f3d75ca59d9f55ade3e253f2fdb4 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/webapp/WEB-INF/jboss-web.xml @@ -0,0 +1,7 @@ + + + + /multi-tenancy-tutorial + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/webapp/WEB-INF/web.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000000000000000000000000000000000..696d278f3b065339d00e4fc37f5514aa1d33ad89 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,4 @@ + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/test/java/org/camunda/bpm/tutorial/multitenancy/ProcessIntegrationTest.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/test/java/org/camunda/bpm/tutorial/multitenancy/ProcessIntegrationTest.java new file mode 100644 index 0000000000000000000000000000000000000000..72ba26a67112e30776fa4591da37ce4a9c48295d --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/test/java/org/camunda/bpm/tutorial/multitenancy/ProcessIntegrationTest.java @@ -0,0 +1,157 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + +import static org.camunda.spin.Spin.JSON; +import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.CoreMatchers.notNullValue; +import static org.junit.Assert.assertThat; + +import java.io.File; + +import org.camunda.bpm.BpmPlatform; +import org.camunda.bpm.engine.ManagementService; +import org.camunda.bpm.engine.ProcessEngine; +import org.camunda.bpm.engine.RuntimeService; +import org.camunda.bpm.engine.TaskService; +import org.camunda.bpm.engine.runtime.Job; +import org.camunda.bpm.engine.runtime.JobQuery; +import org.camunda.bpm.engine.runtime.ProcessInstance; +import org.camunda.bpm.engine.task.TaskQuery; +import org.camunda.connect.Connectors; +import org.camunda.connect.httpclient.HttpRequest; +import org.camunda.connect.httpclient.HttpResponse; +import org.camunda.connect.spi.Connector; +import org.camunda.connect.spi.ConnectorRequest; +import org.camunda.connect.spi.ConnectorResponse; +import org.camunda.spin.SpinList; +import org.camunda.spin.json.SpinJsonNode; +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.junit.Arquillian; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.asset.EmptyAsset; +import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.jboss.shrinkwrap.resolver.api.maven.Maven; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; + +@RunWith(Arquillian.class) +public class ProcessIntegrationTest { + + private static final String PROCESS_DEFINITION_URL = "http://localhost:8080/multi-tenancy-tutorial/process-definition"; + + @Deployment + public static WebArchive createDeployment() { + // resolve given dependencies from Maven POM + File[] libs = Maven.resolver() + .loadPomFromFile("pom.xml") + .importCompileAndRuntimeDependencies().resolve().withoutTransitivity().asFile(); + + return ShrinkWrap + .create(WebArchive.class, "multi-tenancy-tutorial.war") + // add needed dependencies + .addAsLibraries(libs) + // prepare as process application archive for Camunda Platform + .addAsResource("META-INF/processes.xml", "META-INF/processes.xml") + // enable CDI + .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") + // add process application classes + .addPackages(false, "org.camunda.bpm.tutorial.multitenancy") + // add process definitions + .addAsResource("processes/tenant1/tenant1_process.bpmn") + .addAsResource("processes/tenant2/tenant2_process.bpmn"); + } + + private ProcessEngine processEngine; + private RuntimeService runtimeService; + private TaskService taskService; + private ManagementService managementService; + + @Before + public void setup() { + processEngine = BpmPlatform.getProcessEngineService().getProcessEngine("tenant2"); + assertThat(processEngine, is(notNullValue())); + + runtimeService = processEngine.getRuntimeService(); + taskService = processEngine.getTaskService(); + managementService = processEngine.getManagementService(); + } + + @Test(timeout = 30000) + public void asynchronousServiceTask() throws Exception { + + ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("tenant2-process"); + + Job job = managementService.createJobQuery().processInstanceId(processInstance.getId()).executable().singleResult(); + assertThat(job, is(notNullValue())); + + waitForExecutingJobs(processInstance.getId()); + + TaskQuery taskQuery = taskService.createTaskQuery().processInstanceId(processInstance.getId()); + assertThat(taskQuery.count(), is(1L)); + } + + @Test + public void getProcessDefinitionsOfTenantOne() { + SpinJsonNode json = requestProcessDefinitionsForUser("kermit"); + + SpinList definitions = json.elements(); + assertThat(definitions.size(), is(1)); + + String processDefinitionKey = definitions.get(0).prop("key").stringValue(); + assertThat(processDefinitionKey, is("tenant1-process")); + } + + @Test + public void getProcessDefinitionsOfTenantTwo() { + SpinJsonNode json = requestProcessDefinitionsForUser("gonzo"); + + SpinList definitions = json.elements(); + assertThat(definitions.size(), is(1)); + + String processDefinitionKey = definitions.get(0).prop("key").stringValue(); + assertThat(processDefinitionKey, is("tenant2-process")); + } + + private void waitForExecutingJobs(String processInstanceId) { + JobQuery jobQuery = managementService.createJobQuery().processInstanceId(processInstanceId).executable(); + + while (jobQuery.count() > 0) { + try { + Thread.sleep(500); + } catch (InterruptedException e) { + } + } + } + + private SpinJsonNode requestProcessDefinitionsForUser(String user) { + Connector> connector = Connectors.http(); + ConnectorRequest request = connector.createRequest(); + request.setRequestParameter(HttpRequest.PARAM_NAME_REQUEST_URL, PROCESS_DEFINITION_URL + "?user=" + user); + request.setRequestParameter(HttpRequest.PARAM_NAME_REQUEST_METHOD, "GET"); + + ConnectorResponse response = request.execute(); + + int statusCode = response.getResponseParameter(HttpResponse.PARAM_NAME_STATUS_CODE); + assertThat(statusCode, is(200)); + + String responseBody = response.getResponseParameter(HttpResponse.PARAM_NAME_RESPONSE); + return JSON(responseBody); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/test/resources/META-INF/processes.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/test/resources/META-INF/processes.xml new file mode 100644 index 0000000000000000000000000000000000000000..a3e25b5b9715639a17a080c3c9f7c7b15ed91965 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/test/resources/META-INF/processes.xml @@ -0,0 +1,26 @@ + + + + + tenant1 + + classpath:processes/tenant1/ + + true + true + + + + + tenant2 + + classpath:processes/tenant2/ + + true + true + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/test/resources/arquillian.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/test/resources/arquillian.xml new file mode 100644 index 0000000000000000000000000000000000000000..3da29aefbe26e1e8419e43b8455635fe1f76015a --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/test/resources/arquillian.xml @@ -0,0 +1,29 @@ + + + + + + + + + target/deploymentExport + + + + + + + + -Xmx1024m + 300 + + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/test/resources/logback-test.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/test/resources/logback-test.xml new file mode 100644 index 0000000000000000000000000000000000000000..b72ad58f3c4d382dcbcda57f11d70add4ce732bb --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/test/resources/logback-test.xml @@ -0,0 +1,55 @@ + + + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/test/resources/logging.properties b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/test/resources/logging.properties new file mode 100644 index 0000000000000000000000000000000000000000..4941c55971f365781be2c0903a6f00af84a1a74f --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/src/test/resources/logging.properties @@ -0,0 +1,2 @@ +#register SLF4JBridgeHandler as handler for the j.u.l. root logger +handlers = org.slf4j.bridge.SLF4JBridgeHandler diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/standalone.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/standalone.xml new file mode 100644 index 0000000000000000000000000000000000000000..13f569085316407e3ec6ed18b0ad88feb27e507e --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/standalone.xml @@ -0,0 +1,658 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE + h2 + + + + jdbc:h2:./camunda-h2-dbs/process-engine;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE + h2 + TRANSACTION_READ_COMMITTED + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${jboss.bind.address:127.0.0.1} + + + + + + + + + + + + + java:jboss/datasources/ProcessEngine + full + + default + true + true + true + 00:01 + + + + + + org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerPlugin + + + + + org.camunda.spin.plugin.impl.SpinProcessEnginePlugin + + + + + org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin + + + + + + + + + + + + + + java:jboss/datasources/ProcessEngine + none + + TENANT1. + default + false + true + true + + + + + org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerPlugin + + + + + java:jboss/datasources/ProcessEngine + none + + TENANT2. + default + false + true + true + + + + + org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerPlugin + + + + + + 3 + 5 + 10 + + + + 300000 + 5000 + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/standalone_test.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/standalone_test.xml new file mode 100644 index 0000000000000000000000000000000000000000..fe7b149f11ca9bfad9e377c429d0b01527823646 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/schema-isolation/standalone_test.xml @@ -0,0 +1,675 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE + h2 + + + + jdbc:h2:./camunda-h2-dbs/process-engine;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE + h2 + TRANSACTION_READ_COMMITTED + + + + jdbc:h2:./camunda-h2-dbs-tenant1/process-engine-tenant1;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE + h2 + TRANSACTION_READ_COMMITTED + + + + jdbc:h2:./camunda-h2-dbs-tenant2/process-engine-tenant2;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE + h2 + TRANSACTION_READ_COMMITTED + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${jboss.bind.address:127.0.0.1} + + + + + + + + + + + + + java:jboss/datasources/ProcessEngine + full + + default + true + true + true + 00:01 + + + + + + org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerPlugin + + + + + org.camunda.spin.plugin.impl.SpinProcessEnginePlugin + + + + + org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin + + + + + + + + + + + + + + java:jboss/datasources/ProcessEngine-tenant1 + full + + default + true + true + true + + + + org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerPlugin + + + org.camunda.spin.plugin.impl.SpinProcessEnginePlugin + + + org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin + + + + + java:jboss/datasources/ProcessEngine-tenant2 + full + + default + true + true + true + + + + org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerPlugin + + + org.camunda.spin.plugin.impl.SpinProcessEnginePlugin + + + org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin + + + + + + 3 + 5 + 10 + + + + 300000 + 5000 + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b98d18d07ad7f56b0825e7ecbc73688da44eaf71 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/README.md @@ -0,0 +1,71 @@ +# Multi-Tenancy with Tenant Identifiers for Embedded Process Engine + +This example demonstrates how to use multi-tenancy for an embedded process engine. You learn + +* How to deploy a process definition with a tenant-id, +* How to start a process instance from a process definition with a tenant-id, +* How to implement a service task which uses the tenant-id from the process instance + +The example process for the tenants looks like: + +![Example Process for Tenant](docs/process.png) + +## How it works + +Please refer to the [User Guide](http://docs.camunda.org/manual/7.24/user-guide/process-engine/multi-tenancy/) for details about multi-tenancy. + +### Deploy a Process Definition with Tenant-Id + +Using the `RepositoryService` to create a deployment for a specific tenant. + +``` java +// deploy process definition for 'tenant1' +repositoryService + .createDeployment() + .tenantId("tenant1") + .addClasspathResource("processes/tenant1/tenant1_process.bpmn") + .deploy(); +``` + +### Start a Process Instance from a Tenant Specific Process Definition + +Using the `RuntimeService` to start a process instance of a process definition which is deployed for a specific tenant. + +``` java +runtimeService + .createProcessInstanceByKey("process") + .processDefinitionTenantId("tenant1") + .execute(); +``` + +After starting a process instance, you can find it by their tenant-id which is inherit from the process definition. + +``` java +List processInstances = runtimeService + .createProcessInstanceQuery() + .tenantIdIn("tenant1") + .list(); +``` + +### Implement a Tenant-Aware Service Task + +Implement a service task as `JavaDelegate` that can be used for multiple tenants. While execution, it retrieves the tenant-id from the execution (i.e. the process instance) and do some tenant specific logic. + +``` java +public class TenantAwareServiceTask implements JavaDelegate { + + @Override + public void execute(DelegateExecution execution) throws Exception { + + String tenantId = execution.getTenantId(); + + // do some logic based on the tenant-id (e.g. invoke a tenant-aware service) + } +} +``` + +## How to use it? + +1. Checkout the project with Git +2. Import the project into your IDE +3. Inspect the sources and run the unit test. diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/docs/process.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/docs/process.png new file mode 100644 index 0000000000000000000000000000000000000000..8aaa623718052a8a7a2c59f5ffcc7af912f17d38 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/docs/process.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b923a091f197efa23efcc95a8c3c2b479a085e13bca3e506c2b46024eef3b9bb +size 5928 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..9fe235254b35a6aefd39d3cc7b480956dcd80a8f --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/pom.xml @@ -0,0 +1,88 @@ + + 4.0.0 + org.camunda.bpm.example + camunda-example-multi-tenancy-tenant-identifier-embedded + Camunda Platform - Example - Multi Tenancy - Tenant Identifier - Embedded + 0.0.1-SNAPSHOT + + + 7.24.0 + 4.3.1 + 2.3.232 + 4.13.2 + 1.7.36 + 17 + UTF-8 + + 3.11.0 + + + + + + org.camunda.bpm + camunda-bom + ${version.camunda} + import + pom + + + + + + + org.camunda.bpm + camunda-engine + provided + + + + junit + junit + ${version.junit} + test + + + + com.h2database + h2 + ${version.h2} + test + + + + org.mockito + mockito-core + ${version.mockito} + test + + + + + org.slf4j + slf4j-jdk14 + ${version.slf4j} + test + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.plugin.maven-compiler} + + + + + + + camunda-bpm-nexus + camunda-bpm-nexus + https://artifacts.camunda.com/artifactory/private/ + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/main/java/org/camunda/bpm/tutorial/multitenancy/Service.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/main/java/org/camunda/bpm/tutorial/multitenancy/Service.java new file mode 100644 index 0000000000000000000000000000000000000000..f6496cd91f788ecaf99c273d98baf7ebef09ff3a --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/main/java/org/camunda/bpm/tutorial/multitenancy/Service.java @@ -0,0 +1,26 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + +/** + * Sample service which can be invoked with a tenant-id. + */ +public interface Service { + + void invoke(String tenantId); + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/main/java/org/camunda/bpm/tutorial/multitenancy/TenantAwareServiceTask.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/main/java/org/camunda/bpm/tutorial/multitenancy/TenantAwareServiceTask.java new file mode 100644 index 0000000000000000000000000000000000000000..68b17e4ad8ccd5fc4b0accca7d3c092e0a7363de --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/main/java/org/camunda/bpm/tutorial/multitenancy/TenantAwareServiceTask.java @@ -0,0 +1,43 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + +import org.camunda.bpm.engine.delegate.DelegateExecution; +import org.camunda.bpm.engine.delegate.JavaDelegate; + +/** + * Sample service task which invokes a service with the tenant-id of the + * execution (i.e. process instance). + */ +public class TenantAwareServiceTask implements JavaDelegate { + + protected static Service service; + + @Override + public void execute(DelegateExecution execution) throws Exception { + + String tenantId = execution.getTenantId(); + + service.invoke(tenantId); + } + + public static void setService(Service service) { + // simplified DI for testing + TenantAwareServiceTask.service = service; + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/main/resources/processes/tenant1/tenant1_process.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/main/resources/processes/tenant1/tenant1_process.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..c2e079428be3e429b6aeca8527b3ce854177950b --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/main/resources/processes/tenant1/tenant1_process.bpmn @@ -0,0 +1,65 @@ + + + + + SequenceFlow_1 + + + + SequenceFlow_2 + + + + SequenceFlow_0jbvuf7 + SequenceFlow_2 + + + + SequenceFlow_1 + SequenceFlow_0jbvuf7 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/main/resources/processes/tenant2/tenant2_process.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/main/resources/processes/tenant2/tenant2_process.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..c2e079428be3e429b6aeca8527b3ce854177950b --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/main/resources/processes/tenant2/tenant2_process.bpmn @@ -0,0 +1,65 @@ + + + + + SequenceFlow_1 + + + + SequenceFlow_2 + + + + SequenceFlow_0jbvuf7 + SequenceFlow_2 + + + + SequenceFlow_1 + SequenceFlow_0jbvuf7 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/test/java/org/camunda/bpm/tutorial/multitenancy/TenantIdentifierTest.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/test/java/org/camunda/bpm/tutorial/multitenancy/TenantIdentifierTest.java new file mode 100644 index 0000000000000000000000000000000000000000..206957b8f8a74d3499e732ee095a75f755acf0c0 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/test/java/org/camunda/bpm/tutorial/multitenancy/TenantIdentifierTest.java @@ -0,0 +1,121 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + +import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.CoreMatchers.notNullValue; +import static org.junit.Assert.assertThat; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; + +import org.camunda.bpm.engine.RepositoryService; +import org.camunda.bpm.engine.RuntimeService; +import org.camunda.bpm.engine.repository.Deployment; +import org.camunda.bpm.engine.runtime.ProcessInstance; +import org.camunda.bpm.engine.test.ProcessEngineRule; +import org.junit.After; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; + +public class TenantIdentifierTest { + + @Rule + public ProcessEngineRule processEngineRule = new ProcessEngineRule(); + + private RepositoryService repositoryService; + private RuntimeService runtimeService; + + private Service mockService; + + @Before + public void initServices() { + repositoryService = processEngineRule.getRepositoryService(); + runtimeService = processEngineRule.getRuntimeService(); + + // create a mock service and register it on the service task + mockService = mock(Service.class); + TenantAwareServiceTask.setService(mockService); + } + + @Test + public void deployProcessDefinitionsAndStartProcessInstances() { + // deploy process definition for 'tenant1' + repositoryService + .createDeployment() + .tenantId("tenant1") + .addClasspathResource("processes/tenant1/tenant1_process.bpmn") + .deploy(); + + // deploy another process definition for 'tenant2' + repositoryService + .createDeployment() + .tenantId("tenant2") + .addClasspathResource("processes/tenant2/tenant2_process.bpmn") + .deploy(); + + // check that two process definitions are deployed + assertThat(repositoryService.createProcessDefinitionQuery().count(), is(2L)); + + // start a process instance for 'tenant1' + runtimeService + .createProcessInstanceByKey("process") + .processDefinitionTenantId("tenant1") + .execute(); + + // check that the process instance have the same tenant-id + ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().singleResult(); + assertThat(processInstance, is(notNullValue())); + assertThat(processInstance.getTenantId(), is("tenant1")); + + // next, start a process instance for 'tenant2' + runtimeService + .createProcessInstanceByKey("process") + .processDefinitionTenantId("tenant2") + .execute(); + + // check the tenant-id of the process instance + processInstance = runtimeService.createProcessInstanceQuery().tenantIdIn("tenant2").singleResult(); + assertThat(processInstance, is(notNullValue())); + assertThat(processInstance.getTenantId(), is("tenant2")); + } + + @Test + public void tenantAwareServiceTask() { + // deploy process definition for 'tenant1' + repositoryService + .createDeployment() + .tenantId("tenant1") + .addClasspathResource("processes/tenant1/tenant1_process.bpmn") + .deploy(); + + // start a process instance by key + // - note that this would fail if the process definition is also deployed for 'tenant2' + runtimeService.startProcessInstanceByKey("process"); + + // check that the service was invoked for 'tenant1' + verify(mockService).invoke("tenant1"); + } + + @After + public void clean() { + for(Deployment deployment : repositoryService.createDeploymentQuery().list()) { + repositoryService.deleteDeployment(deployment.getId(), true); + } + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/test/resources/camunda.cfg.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/test/resources/camunda.cfg.xml new file mode 100644 index 0000000000000000000000000000000000000000..f034d0357c2238881c95be78944e09f260a67ef3 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-embedded/src/test/resources/camunda.cfg.xml @@ -0,0 +1,9 @@ + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/README.md new file mode 100644 index 0000000000000000000000000000000000000000..7609058e275b612af2431027322976f2a3405cdb --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/README.md @@ -0,0 +1,207 @@ +# Multi-Tenancy with Tenant Identifiers and Shared Process Definitions + +This example demonstrates how to use multi-tenancy with shared process definitions. A shared process definition is a definition which is deployed without a tenant id and is used by all tenants. When a tenant creates an instance of such a process definition then the instance gets the id of the tenant. + +You learn + +* How to provide tenant ids for instances of shared process definitions +* How to override default process definitions with tenant specific once + +The example contains two shared process definitions (main proces and sub-process): + +![Calling Process](docs/mainProcess.png) + +![Called Sub Process](docs/defaultSubProcess.png) + +## How it works + +Please refer to the [User Guide](http://docs.camunda.org/manual/7.24/user-guide/process-engine/multi-tenancy/) for details about multi-tenancy. + +### Provide Tenant Ids for Instances of Shared Process Definitions + +Implement the SPI `TenantIdProvider`. In this example, the tenant-id is resolved based on the current authenticated tenant. + +```java +public class CustomTenantIdProvider implements TenantIdProvider { + + @Override + public String provideTenantIdForProcessInstance(TenantIdProviderProcessInstanceContext ctx) { + return getTenantIdOfCurrentAuthentication(); + } + + @Override + public String provideTenantIdForCaseInstance(TenantIdProviderCaseInstanceContext ctx) { + return getTenantIdOfCurrentAuthentication(); + } + + @Override + public String provideTenantIdForHistoricDecisionInstance(TenantIdProviderHistoricDecisionInstanceContext ctx) { + return getTenantIdOfCurrentAuthentication(); + } + + protected String getTenantIdOfCurrentAuthentication() { + + IdentityService identityService = Context.getProcessEngineConfiguration().getIdentityService(); + Authentication currentAuthentication = identityService.getCurrentAuthentication(); + + if (currentAuthentication != null) { + + List tenantIds = currentAuthentication.getTenantIds(); + if (tenantIds.size() == 1) { + return tenantIds.get(0); + + } else if (tenantIds.isEmpty()) { + throw new IllegalStateException("no authenticated tenant"); + + } else { + throw new IllegalStateException("more than one authenticated tenant"); + } + + } else { + throw new IllegalStateException("no authentication"); + } + } + +} +``` + +Now, set the custom `TenantIdProvider` on the `ProcessEngineConfiguration`. + +```xml + + + + + + + + + +``` + +That's it! + +To verify the behavior you have to +* deploy the process definitions without a tenant id +* set the authenticated tenant +* create an instance of a shared process definition + +```java +// deploy shared process definitions (which belongs to no tenant) +repositoryService + .createDeployment() + .addClasspathResource("processes/default/mainProcess.bpmn") + .addClasspathResource("processes/default/subProcess.bpmn") + .deploy(); + +// set the authenticated tenant and start a process instance +identityService.setAuthentication("john", null, Collections.singletonList("tenant1")); + +runtimeService.startProcessInstanceByKey("mainProcess"); + +// check that the process instance got the tenant id from the custom tenant id provider +ProcessInstance processInstance = runtimeService.createProcessInstanceQuery() + .processDefinitionKey("mainProcess") + .singleResult(); + +assertThat(processInstance.getTenantId(), is("tenant1")); +``` + +### Override Default Process Definitions with tenant specific once + +Assuming that all tenants share mostly the same process but can differ in small parts. These parts are extracted as sub-processes which are called by the main process. + +In this example, one tenant (tenant 2) should have a different sub-process: + +![Tenant Specific Sub Process](docs/tenantSpecificSubProcess.png) + +The sub-process has the same process definition key like the default one and is deployed for the specific tenant. + +In order to use the tenant specific sub-process, the tenant id of the called element has to be set on the call activity using the `camunda:calledElementTenantId` attribute. + +```xml + + + +``` + +Here, a bean is invoked to resolve the tenant id. It checks if a process definition is deployed for the tenant and returns their id. Otherwise, it returns `null` to use the default definition. + +```java +public class CalledElementTenantIdProvider { + + public String resolveTenantId(DelegateExecution execution) { + RepositoryService repositoryService = execution.getProcessEngineServices().getRepositoryService(); + + String tenantId = execution.getTenantId(); + + // resolve the process definition key + CallActivity callActivity = (CallActivity) execution.getBpmnModelElementInstance(); + String processDefinitionKey = callActivity.getCalledElement(); + + // and check if a process definition is deployed for the tenant + ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery() + .processDefinitionKey(processDefinitionKey) + .tenantIdIn(tenantId) + .latestVersion() + .singleResult(); + + if (processDefinition != null) { + // use tenant-specific process definition + return tenantId; + } else { + // use default process definition + return null; + } + } + +} +``` + +To verify the behavior you have to +* deploy the default process definitions without a tenant id +* deploy the sub-process definition for tenant ('tenant2') +* set the authenticated tenant +* create an instance of a shared process definition +* and checks if it calls the default or the tenant specific sub-process + +```java +// deploy default process definitions (which belongs to no tenant) +repositoryService + .createDeployment() + .addClasspathResource("processes/default/mainProcess.bpmn") + .addClasspathResource("processes/default/subProcess.bpmn") + .deploy(); + +// deploy custom process definition for 'tenant2' +repositoryService + .createDeployment() + .tenantId("tenant2") + .addClasspathResource("processes/tenant2/subProcess.bpmn") + .deploy(); + +// set the authenticated tenant and start a process instance +identityService.setAuthentication("mary", null, Collections.singletonList("tenant2")); + +runtimeService.startProcessInstanceByKey("mainProcess"); + +// check that the process instance has the tenant id 'tenant2' +ProcessInstance processInstance = runtimeService.createProcessInstanceQuery() + .processDefinitionKey("mainProcess") + .singleResult(); + +assertThat(processInstance.getTenantId(), is("tenant2")); + +// and started the tenant-specific sub-process which overrides the default one +Task task = taskService.createTaskQuery().processDefinitionKey("subProcess").singleResult(); +assertThat(task.getName(), is("task in tenant specific subprocess")); +``` + +## How to use it? + +1. Checkout the project with Git +2. Import the project into your IDE +3. Inspect the sources and run the unit tests. diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/docs/defaultSubProcess.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/docs/defaultSubProcess.png new file mode 100644 index 0000000000000000000000000000000000000000..9dae298f098877cbc33d16460137565c3f7d0724 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/docs/defaultSubProcess.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d582f9ed5aad25b3607bea8854a1fc4cb3cba772980553e114ac95cfd85ff26 +size 4241 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/docs/mainProcess.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/docs/mainProcess.png new file mode 100644 index 0000000000000000000000000000000000000000..c03221b793b33717dd81f6c99d3c3ce0f06ebd63 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/docs/mainProcess.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c841711a1bd4e09acc9fe9a6cf14a2b41f2bdcfe51b1fc98a0a8bfad68e2e3b +size 3234 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/docs/tenantSpecificSubProcess.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/docs/tenantSpecificSubProcess.png new file mode 100644 index 0000000000000000000000000000000000000000..28d99e22a21706df619733d3d89c4cffc8f93050 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/docs/tenantSpecificSubProcess.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c9a8ab3103a1b9b5489df093f310c2931b8021ae0abf7cdb78654b3005e14bc +size 5463 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..f198cc39c89a1664a1330e437f451e21fd94c3ba --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/pom.xml @@ -0,0 +1,88 @@ + + 4.0.0 + org.camunda.bpm.example + camunda-example-multi-tenancy-tenant-identifier-shared-definitions + Camunda Platform - Example - Multi Tenancy - Tenant Identifier - Shared Definitions + 0.0.1-SNAPSHOT + + + 7.24.0 + 4.3.1 + 2.3.232 + 4.13.2 + 1.7.36 + 17 + UTF-8 + + 3.11.0 + + + + + + org.camunda.bpm + camunda-bom + ${version.camunda} + import + pom + + + + + + + org.camunda.bpm + camunda-engine + provided + + + + junit + junit + ${version.junit} + test + + + + com.h2database + h2 + ${version.h2} + test + + + + org.mockito + mockito-core + ${version.mockito} + test + + + + + org.slf4j + slf4j-jdk14 + ${version.slf4j} + test + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.plugin.maven-compiler} + + + + + + + camunda-bpm-nexus + camunda-bpm-nexus + https://artifacts.camunda.com/artifactory/private/ + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/main/java/org/camunda/bpm/tutorial/multitenancy/CalledElementTenantIdProvider.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/main/java/org/camunda/bpm/tutorial/multitenancy/CalledElementTenantIdProvider.java new file mode 100644 index 0000000000000000000000000000000000000000..9054b83d8167dede4d98ce6d3aa76e21eb28b583 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/main/java/org/camunda/bpm/tutorial/multitenancy/CalledElementTenantIdProvider.java @@ -0,0 +1,56 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + +import org.camunda.bpm.engine.RepositoryService; +import org.camunda.bpm.engine.delegate.DelegateExecution; +import org.camunda.bpm.engine.repository.ProcessDefinition; +import org.camunda.bpm.model.bpmn.instance.CallActivity; + +/** + * Provides the tenant-id of a called process definition. Can be used if shared + * process definitions can be overridden by tenant specific ones. + */ +public class CalledElementTenantIdProvider { + + public String resolveTenantId(DelegateExecution execution) { + RepositoryService repositoryService = execution.getProcessEngineServices().getRepositoryService(); + + String tenantId = execution.getTenantId(); + + // resolve the process definition key + CallActivity callActivity = (CallActivity) execution.getBpmnModelElementInstance(); + String processDefinitionKey = callActivity.getCalledElement(); + + // and check if a process definition is deployed for the tenant + ProcessDefinition processDefinition = repositoryService + .createProcessDefinitionQuery() + .processDefinitionKey(processDefinitionKey) + .tenantIdIn(tenantId) + .latestVersion() + .singleResult(); + + if (processDefinition != null) { + // use tenant-specific process definition + return tenantId; + } else { + // use default process definition + return null; + } + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/main/java/org/camunda/bpm/tutorial/multitenancy/CustomTenantIdProvider.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/main/java/org/camunda/bpm/tutorial/multitenancy/CustomTenantIdProvider.java new file mode 100644 index 0000000000000000000000000000000000000000..bd16a3e177e17f08e283a1b794aef2910bfb85b4 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/main/java/org/camunda/bpm/tutorial/multitenancy/CustomTenantIdProvider.java @@ -0,0 +1,72 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + +import java.util.List; + +import org.camunda.bpm.engine.IdentityService; +import org.camunda.bpm.engine.impl.cfg.multitenancy.TenantIdProvider; +import org.camunda.bpm.engine.impl.cfg.multitenancy.TenantIdProviderCaseInstanceContext; +import org.camunda.bpm.engine.impl.cfg.multitenancy.TenantIdProviderHistoricDecisionInstanceContext; +import org.camunda.bpm.engine.impl.cfg.multitenancy.TenantIdProviderProcessInstanceContext; +import org.camunda.bpm.engine.impl.context.Context; +import org.camunda.bpm.engine.impl.identity.Authentication; + +/** + * Provides the tenant-id based on the current authenticated tenant. + */ +public class CustomTenantIdProvider implements TenantIdProvider { + + @Override + public String provideTenantIdForProcessInstance(TenantIdProviderProcessInstanceContext ctx) { + return getTenantIdOfCurrentAuthentication(); + } + + @Override + public String provideTenantIdForCaseInstance(TenantIdProviderCaseInstanceContext ctx) { + return getTenantIdOfCurrentAuthentication(); + } + + @Override + public String provideTenantIdForHistoricDecisionInstance(TenantIdProviderHistoricDecisionInstanceContext ctx) { + return getTenantIdOfCurrentAuthentication(); + } + + protected String getTenantIdOfCurrentAuthentication() { + + IdentityService identityService = Context.getProcessEngineConfiguration().getIdentityService(); + Authentication currentAuthentication = identityService.getCurrentAuthentication(); + + if (currentAuthentication != null) { + + List tenantIds = currentAuthentication.getTenantIds(); + if (tenantIds.size() == 1) { + return tenantIds.get(0); + + } else if (tenantIds.isEmpty()) { + throw new IllegalStateException("no authenticated tenant"); + + } else { + throw new IllegalStateException("more than one authenticated tenant"); + } + + } else { + throw new IllegalStateException("no authentication"); + } + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/main/resources/processes/default/mainProcess.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/main/resources/processes/default/mainProcess.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..2c0e9ea72bba38d19e518cf11017ca3f3a0cf6a1 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/main/resources/processes/default/mainProcess.bpmn @@ -0,0 +1,49 @@ + + + + + + SequenceFlow_0lfx3lj + + + SequenceFlow_0lfx3lj + SequenceFlow_0bp97y0 + + + SequenceFlow_0bp97y0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/main/resources/processes/default/subProcess.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/main/resources/processes/default/subProcess.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..f83181b62858543e09f432dce8e188c4f2a9b649 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/main/resources/processes/default/subProcess.bpmn @@ -0,0 +1,48 @@ + + + + default subprocess + + SequenceFlow_0vx1wde + + + + SequenceFlow_0vx1wde + SequenceFlow_1obbq66 + + + SequenceFlow_1obbq66 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/main/resources/processes/tenant2/subProcess.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/main/resources/processes/tenant2/subProcess.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..ad489fd318f173174294ef38c2248088a286a6eb --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/main/resources/processes/tenant2/subProcess.bpmn @@ -0,0 +1,64 @@ + + + + overridde default subprocess with a tenant specific one + + SequenceFlow_1ecel5i + + + + SequenceFlow_1ecel5i + SequenceFlow_1407apq + + + + SequenceFlow_1407apq + SequenceFlow_1l3e1vk + + + SequenceFlow_1l3e1vk + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/test/java/org/camunda/bpm/tutorial/multitenancy/MultiTenancySharedProcessDefinitionTest.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/test/java/org/camunda/bpm/tutorial/multitenancy/MultiTenancySharedProcessDefinitionTest.java new file mode 100644 index 0000000000000000000000000000000000000000..b2791344d8d193ffbd47567a1842c5ef5ac60862 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/test/java/org/camunda/bpm/tutorial/multitenancy/MultiTenancySharedProcessDefinitionTest.java @@ -0,0 +1,115 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + +import static org.hamcrest.CoreMatchers.is; +import static org.junit.Assert.assertThat; + +import java.util.Collections; + +import org.camunda.bpm.engine.IdentityService; +import org.camunda.bpm.engine.RepositoryService; +import org.camunda.bpm.engine.RuntimeService; +import org.camunda.bpm.engine.TaskService; +import org.camunda.bpm.engine.repository.Deployment; +import org.camunda.bpm.engine.runtime.ProcessInstance; +import org.camunda.bpm.engine.task.Task; +import org.camunda.bpm.engine.test.ProcessEngineRule; +import org.junit.After; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; + +public class MultiTenancySharedProcessDefinitionTest { + + @Rule + public ProcessEngineRule processEngineRule = new ProcessEngineRule(); + + private RepositoryService repositoryService; + private RuntimeService runtimeService; + private TaskService taskService; + private IdentityService identityService; + + @Before + public void initServices() { + repositoryService = processEngineRule.getRepositoryService(); + runtimeService = processEngineRule.getRuntimeService(); + taskService = processEngineRule.getTaskService(); + identityService = processEngineRule.getIdentityService(); + } + + @Test + public void testTenantIdProvider() { + // deploy shared process definitions (which belongs to no tenant) + repositoryService + .createDeployment() + .addClasspathResource("processes/default/mainProcess.bpmn") + .addClasspathResource("processes/default/subProcess.bpmn") + .deploy(); + + // set the authenticated tenant and start a process instance + identityService.setAuthentication("john", null, Collections.singletonList("tenant1")); + + runtimeService.startProcessInstanceByKey("mainProcess"); + + // check that the process instance got the tenant id from the custom tenant id provider + ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processDefinitionKey("mainProcess").singleResult(); + assertThat(processInstance.getTenantId(), is("tenant1")); + + // and started the default sub-process + Task task = taskService.createTaskQuery().processDefinitionKey("subProcess").singleResult(); + assertThat(task.getName(), is("task in default subprocess")); + } + + @Test + public void testOverrideSharedProcessDefinition() { + // deploy default process definitions (which belongs to no tenant) + repositoryService + .createDeployment() + .addClasspathResource("processes/default/mainProcess.bpmn") + .addClasspathResource("processes/default/subProcess.bpmn") + .deploy(); + + // deploy custom process definition for 'tenant2' + repositoryService + .createDeployment() + .tenantId("tenant2") + .addClasspathResource("processes/tenant2/subProcess.bpmn") + .deploy(); + + // set the authenticated tenant and start a process instance + identityService.setAuthentication("mary", null, Collections.singletonList("tenant2")); + + runtimeService.startProcessInstanceByKey("mainProcess"); + + // check that the process instance has the tenant id 'tenant2' + ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processDefinitionKey("mainProcess").singleResult(); + assertThat(processInstance.getTenantId(), is("tenant2")); + + // and started the tenant-specific sub-process which overrides the default one + Task task = taskService.createTaskQuery().processDefinitionKey("subProcess").singleResult(); + assertThat(task.getName(), is("task in tenant specific subprocess")); + } + + @After + public void clean() { + for(Deployment deployment : repositoryService.createDeploymentQuery().list()) { + repositoryService.deleteDeployment(deployment.getId(), true); + } + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/test/resources/camunda.cfg.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/test/resources/camunda.cfg.xml new file mode 100644 index 0000000000000000000000000000000000000000..8103191e5247e2c05c458a757bf46f193bc0ec16 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared-definitions/src/test/resources/camunda.cfg.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/README.md new file mode 100644 index 0000000000000000000000000000000000000000..380a2f03213f6d624f40180f4e65ee162c02548a --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/README.md @@ -0,0 +1,116 @@ +# Multi-Tenancy with Tenant Identifiers for Shared Process Engine + +This example demonstrates how to use multi-tenancy for a shared process engine. You learn + +* How to deploy a process definition with a tenant-id, +* How to start a process instance from a process definition with a tenant-id, +* How to implement a service task which uses the tenant-id from the process instance, +* How to use multi-tenancy with Camunda Web Applications + +The example process for the tenants looks like: + +![Example Process for Tenant](docs/process.png) + +## How it works + +Please refer to the [User Guide](http://docs.camunda.org/manual/7.24/user-guide/process-engine/multi-tenancy/) for details about multi-tenancy. + +### Deploy a Process Definition with Tenant-Id + +Create a `processes.xml` deployment descriptor which includes one process-archive per tenant. + +``` xml + + + + default + + classpath:processes/tenant1/ + + false + true + + + + + default + + classpath:processes/tenant2/ + + false + true + + + + +``` + +### Start a Process Instance from a Tenant Specific Process Definition + +Implement a `ServletProcessApplication` to start process instances when the application starts. + +``` java +@ProcessApplication(name="Multi-Tenancy App") +public class MultiTenancyProcessApplication extends ServletProcessApplication { + + @PostDeploy + public void startProcessInstances(ProcessEngine processEngine) { + + RepositoryService repositoryService = processEngine.getRepositoryService(); + RuntimeService runtimeService = processEngine.getRuntimeService(); + + // start a process instance for 'tenant1' + runtimeService + .createProcessInstanceByKey("example-process") + .processDefinitionTenantId("tenant1") + .execute(); + + // next, start a process instance for 'tenant2' + runtimeService + .createProcessInstanceByKey("example-process") + .processDefinitionTenantId("tenant2") + .execute(); + } +} +``` + +### Implement a Tenant-Aware Service Task + +Implement a service task as `JavaDelegate` that can be used for multiple tenants. While execution, it retrieves the tenant-id from the execution (i.e. the process instance) and do some tenant specific logic. + +``` java +public class TenantAwareServiceTask implements JavaDelegate { + + @Override + public void execute(DelegateExecution execution) throws Exception { + + String tenantId = execution.getTenantId(); + + // do some logic based on the tenant-id (e.g. invoke a tenant-aware service) + } +} +``` + +## How to use it? + +1. Checkout the project with Git +2. Import the project into your IDE +3. Build it with Maven +4. Deploy it to a shared process engine distribution of your own choice (Tomcat, Wildfly, Weblogic, Websphere - this example does not work with Camunda Platform Run) +5. Check the console or the log file if you can find: +`TenantAwareServiceTask.execute invoked for tenant with id: tenant1` and +`TenantAwareServiceTask.execute invoked for tenant with id: tenant2` + +### Check the Result in Camunda Web Applications + +1. Open your browser and go to http://localhost:8080/camunda/app/cockpit +2. Log in with `demo` / `demo` as member of group `camunda-admin` +3. Check that you see two deployed process definitions with key `example-process` - one for each tenant +4. Switch to Admin and create a new user +5. Go to tenant section and create a new tenant with id `tenant1` +6. Select the user and assign the tenant `tenant1` to it +7. Make sure that the user has the permissions to read process definitions and access Cockpit Web Application +8. Switch to Cockpit and log in with the new user +9. Check that the user see only one deployed process definition with key `example-process` diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/docs/process.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/docs/process.png new file mode 100644 index 0000000000000000000000000000000000000000..8aaa623718052a8a7a2c59f5ffcc7af912f17d38 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/docs/process.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b923a091f197efa23efcc95a8c3c2b479a085e13bca3e506c2b46024eef3b9bb +size 5928 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..6e52a6a2e7869df31779b417dd261736aaf1e93f --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/pom.xml @@ -0,0 +1,75 @@ + + 4.0.0 + org.camunda.bpm.example + camunda-example-multi-tenancy-tenant-identifier-shared + Camunda Platform - Example - Multi Tenancy - Tenant Identifier - Shared + 0.0.1-SNAPSHOT + war + + + 7.24.0 + 6.1.0 + 17 + UTF-8 + false + + 3.11.0 + + + + + + org.camunda.bpm + camunda-bom + ${version.camunda} + import + pom + + + + + + + org.camunda.bpm + camunda-engine + provided + + + + org.camunda.bpm + camunda-engine-cdi-jakarta + + + + jakarta.servlet + jakarta.servlet-api + ${version.servlet} + provided + + + + + + + org.apache.maven.plugins + maven-war-plugin + 3.3.2 + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.plugin.maven-compiler} + + + + + + + camunda-bpm-nexus + camunda-bpm-nexus + https://artifacts.camunda.com/artifactory/private/ + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/src/main/java/org/camunda/bpm/tutorial/multitenancy/MultiTenancyProcessApplication.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/src/main/java/org/camunda/bpm/tutorial/multitenancy/MultiTenancyProcessApplication.java new file mode 100644 index 0000000000000000000000000000000000000000..38afcf6fd27b398262ae347632f079be5694bdb4 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/src/main/java/org/camunda/bpm/tutorial/multitenancy/MultiTenancyProcessApplication.java @@ -0,0 +1,46 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + +import org.camunda.bpm.application.PostDeploy; +import org.camunda.bpm.application.ProcessApplication; +import org.camunda.bpm.application.impl.JakartaServletProcessApplication; +import org.camunda.bpm.engine.ProcessEngine; +import org.camunda.bpm.engine.RuntimeService; + +@ProcessApplication(name="Multi-Tenancy App") +public class MultiTenancyProcessApplication extends JakartaServletProcessApplication { + + @PostDeploy + public void startProcessInstances(ProcessEngine processEngine) { + + RuntimeService runtimeService = processEngine.getRuntimeService(); + + // start a process instance for 'tenant1' + runtimeService + .createProcessInstanceByKey("example-process") + .processDefinitionTenantId("tenant1") + .execute(); + + // next, start a process instance for 'tenant2' + runtimeService + .createProcessInstanceByKey("example-process") + .processDefinitionTenantId("tenant2") + .execute(); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/src/main/java/org/camunda/bpm/tutorial/multitenancy/TenantAwareServiceTask.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/src/main/java/org/camunda/bpm/tutorial/multitenancy/TenantAwareServiceTask.java new file mode 100644 index 0000000000000000000000000000000000000000..ce7f4d32fe9049afe3c6afc7959afe3d4d19c55a --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/src/main/java/org/camunda/bpm/tutorial/multitenancy/TenantAwareServiceTask.java @@ -0,0 +1,39 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.tutorial.multitenancy; + +import java.util.logging.Logger; + +import org.camunda.bpm.engine.delegate.DelegateExecution; +import org.camunda.bpm.engine.delegate.JavaDelegate; + +/** + * Sample service task which logs the tenant-id of the execution. + */ +public class TenantAwareServiceTask implements JavaDelegate { + + public final static Logger LOGGER = Logger.getLogger(TenantAwareServiceTask.class.getName()); + + @Override + public void execute(DelegateExecution execution) throws Exception { + + String tenantId = execution.getTenantId(); + + LOGGER.info("invoked for tenant with id: " + tenantId); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/src/main/resources/META-INF/processes.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/src/main/resources/META-INF/processes.xml new file mode 100644 index 0000000000000000000000000000000000000000..13864e2cbb229ef62afb4281598b2c78a81700cf --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/src/main/resources/META-INF/processes.xml @@ -0,0 +1,25 @@ + + + + default + + classpath:processes/tenant1/ + + false + true + + + + + default + + classpath:processes/tenant2/ + + false + true + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/src/main/resources/processes/tenant1/tenant1_process.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/src/main/resources/processes/tenant1/tenant1_process.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..997a5741bbc600736ee5893b6a4d4ff798508d87 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/src/main/resources/processes/tenant1/tenant1_process.bpmn @@ -0,0 +1,65 @@ + + + + + SequenceFlow_1 + + + + SequenceFlow_2 + + + + SequenceFlow_0jbvuf7 + SequenceFlow_2 + + + + SequenceFlow_1 + SequenceFlow_0jbvuf7 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/src/main/resources/processes/tenant2/tenant2_process.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/src/main/resources/processes/tenant2/tenant2_process.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..997a5741bbc600736ee5893b6a4d4ff798508d87 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/multi-tenancy/tenant-identifier-shared/src/main/resources/processes/tenant2/tenant2_process.bpmn @@ -0,0 +1,65 @@ + + + + + SequenceFlow_1 + + + + SequenceFlow_2 + + + + SequenceFlow_0jbvuf7 + SequenceFlow_2 + + + + SequenceFlow_1 + SequenceFlow_0jbvuf7 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..03208c0ceed731196a0f03054c2e5de6ceedbab7 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/pom.xml @@ -0,0 +1,72 @@ + + + 4.0.0 + org.camunda.bpm.example + camunda-bpm-examples-reactor + pom + 1.0.0 + + + + default + + true + + + bpmn-model-api/generate-process-fluent-api + bpmn-model-api/parse-bpmn + clients/java/order-handling + cockpit/cockpit-fullstack-count-processes + deployment/spring-servlet-pa-tomcat + deployment/spring-servlet-pa-wildfly + deployment/servlet-pa + deployment/embedded-spring-rest + deployment/ejb-pa-jakarta + dmn-engine/dmn-engine-drg + dmn-engine/dmn-engine-java-main-method + multi-tenancy/schema-isolation + multi-tenancy/tenant-identifier-embedded + multi-tenancy/tenant-identifier-shared + multi-tenancy/tenant-identifier-shared-definitions + process-engine-plugin/bpmn-parse-listener + process-engine-plugin/command-interceptor-blocking + process-engine-plugin/custom-history-level + process-engine-plugin/failed-job-retry-profile + process-engine-plugin/handling-jpa-variables + quarkus-extension/datasource-example + quarkus-extension/spin-plugin-example + scripttask/xslt-scripttask + servicetask/service-invocation-asynchronous + servicetask/service-invocation-synchronous + servicetask/rest-service + spin/dataformat-configuration-global + spin/dataformat-configuration-in-process-application + spring-boot-starter/example-invoice + spring-boot-starter/example-simple + spring-boot-starter/example-twitter + spring-boot-starter/example-web + spring-boot-starter/example-webapp + spring-boot-starter/example-webapp-ee + spring-boot-starter/external-task-client/loan-granting-spring-boot-webapp + startevent/message-start + testing/assert/job-announcement-publication-process + testing/junit5/camunda-bpm-junit-assert + testing/junit5/camunda-bpm-junit-use-engine + usertask/task-camunda-forms + usertask/task-form-embedded + usertask/task-form-embedded-bpmn-events + usertask/task-form-embedded-json-variables + usertask/task-form-embedded-react + wildfly/jackson-annotations + + + + bump-versions + + internal/version-bump + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener-on-user-task/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener-on-user-task/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c43071518a49d2e7160b2d5fa7381da4da2135e7 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener-on-user-task/README.md @@ -0,0 +1,3 @@ +# BPMN Parse Listener - adding task listener on user task + +This example has been moved to [process-engine-plugin/bpmn-parse-listener](/process-engine-plugin/bpmn-parse-listener/README.md#task-listener). diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/README.md new file mode 100644 index 0000000000000000000000000000000000000000..51ce82ac51bbf65b5961153834b8abde1f1f1ad7 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/README.md @@ -0,0 +1,293 @@ +# BPMN Parse Listener + +This example demonstrates how to use a BPMN Parse Listener as Process Engine Plugin. +We learn + +* How to implement and activate a Process Engine Plugin +* How to implement a BPMN Parse Listener +* How to work with an Execution Listener and a Task Listener +* How to use properties as extension elements in BPMN 2.0 + +After having looked through the code, you will understand the behavior of a BPMN Parse Listener in case of + +* An additional parsing to the BPMN Parser in the Process Engine +* The Process Engine Plugin configuration. + +# Execution Listener + +## Show me the important parts! + +The process model is composed of two tasks: + +![Process Model][1] + +* ServiceTask 1 and 2: the service task contains custom extension properties. + +### Create a Process Engine Plugin Implementation + +Extend the `org.camunda.bpm.engine.impl.cfg.AbstractProcessEnginePlugin` abstract class: + +``` java +public class ProgressLoggingSupportParseListenerPlugin extends AbstractProcessEnginePlugin { + + @Override + public void preInit(ProcessEngineConfigurationImpl processEngineConfiguration { + // get all existing preParseListeners + List preParseListeners = processEngineConfiguration.getCustomPreBPMNParseListeners(); + + if(preParseListeners == null) { + // if no preParseListener exists, create new list + preParseListeners = new ArrayList(); + processEngineConfiguration.setCustomPreBPMNParseListeners(preParseListeners); + } + + // add new BPMN Parse Listener + preParseListeners.add(new ProgressLoggingSupportParseListener()); + } +} +``` + +### Create a BPMN Parse Listener Implementation + +Extend the `org.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener` abstract class: + +``` java +public class ProgressLoggingSupportParseListener extends AbstractBpmnParseListener { + + // parse given service task to get the attributes of the property extension elements + + @Override + public void parseServiceTask(Element serviceTaskElement, ScopeImpl scope, ActivityImpl activity) { + + // get the element from the service task + Element extensionElement = serviceTaskElement.element("extensionElements"); + if (extensionElement != null) { + + // get the element from the service task + Element propertiesElement = extensionElement.element("properties"); + if (propertiesElement != null) { + + // get list of elements from the service task + List propertyList = propertiesElement.elements("property"); + for (Element property : propertyList) { + + // get the name and the value of the extension property element + String name = property.attribute("name"); + String value = property.attribute("value"); + + // check if name attribute has the expected value + if("progress".equals(name)) { + + // add execution listener to the given service task element + // to execute it when the end event of the service task fired + ProgressLoggingExecutionListener progressLoggingExecutionListener = new ProgressLoggingExecutionListener(value); + activity.addExecutionListener(ExecutionListener.EVENTNAME_END, progressLoggingExecutionListener); + } + } + } + } + } +} +``` + +### Create an Execution Listener Implementation + +Implement the `org.camunda.bpm.engine.delegate.ExecutionListener` interface: + +``` java +public class ProgressLoggingExecutionListener implements ExecutionListener { + + private final Logger LOGGER = Logger.getLogger(this.getClass().getName()); + + // static value list to see in the UNIT test if the execution listener was executed + public static List progressValueList = new ArrayList(); + + private String propertyValue; + + // constructor with extension property value as parameter + public ProgressLoggingExecutionListener(String value) { + this.propertyValue = value; + } + + // notify method is executed when Execution Listener is called + public void notify(DelegateExecution execution) throws Exception { + progressValueList.add(propertyValue); + + // logging statement to see which value have the property 'progress' + LOGGER.info("value of service task extension property 'progress': " + propertyValue); + } +} +``` + +### Activate the BPMN Parse Listener Plugin + +The BPMN Parse Listener can be activated in the `camunda.cfg.xml`: + +``` xml + + + + + + +``` + +It is also possible to define the BPMN Parse Listener as `postParseListeners`. + +### Configure Extension Properties on Service Task + +It is possible to configure properties into the extensionElements of all BPMN 2.0 elements. + +``` xml + + + + + + + +``` + +Using the camunda Modeler, you can configure the service task using the properties panel: + +![Configure Service Task using the camunda Modeler][2] + + +## How does it work? + +If you are impatient, just have a look at the [unit test][3]. + +In this example, the unit test triggers the process engine to deploy and parse the BPMN Process Model. +The Process Engine BPMN Parser parses the process definition. The BPMN Parse Listener additionally parses the service task +to the BPMN Parser and adds the Execution Listener to the given service task. + +After that, the process engine starts the process instance and invokes the `execute()`-method provided by the `Java Delegate` +implementation. If the service task is completed, the process engine invokes the `notify()`-method of the execution listener implementation. + +## How to use it? + +1. Checkout the project with Git +2. Import the project into your IDE +3. Inspect the sources and run the unit test, or run it with Maven: `mvn clean verify` +4. Check the console if you can find: `value of service task extension property 'progress': 100%` + +[1]: docs/bpmnParseListener.png +[2]: docs/service-camunda-modeler.png +[3]: src/test/java/org/camunda/bpm/example/test/BpmnParseListenerTest.java + +# Task Listener + +## Show me the important parts! + +The process model is composed of two user tasks: + +![Process Model][4] + +* User Task 1 and 2: the user tasks contain nothing special. + +### Create a Process Engine Plugin Implementation + +Extend the `org.camunda.bpm.engine.impl.cfg.AbstractProcessEnginePlugin` abstract class: + +``` java +public class InformAssigneeParseListenerPlugin extends AbstractProcessEnginePlugin { + + @Override + public void preInit(ProcessEngineConfigurationImpl processEngineConfiguration) { + List preParseListeners = processEngineConfiguration.getCustomPreBPMNParseListeners(); + if(preParseListeners == null) { + preParseListeners = new ArrayList(); + processEngineConfiguration.setCustomPreBPMNParseListeners(preParseListeners); + } + preParseListeners.add(new InformAssigneeParseListener()); + } + +} +``` + +### Create a BPMN Parse Listener Implementation + +Extend the `org.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener` abstract class: + +``` java +public class InformAssigneeParseListener extends AbstractBpmnParseListener { + + @Override + public void parseUserTask(Element userTaskElement, ScopeImpl scope, ActivityImpl activity) { + ActivityBehavior activityBehavior = activity.getActivityBehavior(); + if(activityBehavior instanceof UserTaskActivityBehavior ){ + UserTaskActivityBehavior userTaskActivityBehavior = (UserTaskActivityBehavior) activityBehavior; + userTaskActivityBehavior + .getTaskDefinition() + .addTaskListener("assignment", InformAssigneeTaskListener.getInstance()); + } + } +} +``` + +### Create a Task Listener Implementation + +Implement the `org.camunda.bpm.engine.delegate.TaskListener` interface: + +``` java +public class InformAssigneeTaskListener implements TaskListener { + + private final Logger LOGGER = Logger.getLogger(this.getClass().getName()); + public static List assigneeList = new ArrayList(); + + private static InformAssigneeTaskListener instance = null; + + protected InformAssigneeTaskListener() { } + + public static InformAssigneeTaskListener getInstance() { + if(instance == null) { + instance = new InformAssigneeTaskListener(); + } + return instance; + } + + public void notify(DelegateTask delegateTask) { + String assignee = delegateTask.getAssignee(); + assigneeList.add(assignee); + LOGGER.info("Hello " + assignee + "! Please start to work on your task " + delegateTask.getName()); + } + +} +``` + +### Activate the BPMN Parse Listener Plugin + +The BPMN Parse Listener can be activated in the `camunda.cfg.xml`: + +``` xml + + + + + + +``` + +It is also possible to define the BPMN Parse Listener as `postParseListeners`. + +## How does it work? + +If you are impatient, just have a look at the [unit test][5]. + +In this example, the unit test triggers the process engine to deploy and parse the BPMN Process Model. +The Process Engine BPMN Parser parses the process definition. The BPMN Parse Listener additionally parses the user task +to the BPMN Parser and adds the Task Listener to the given user task. + +After that, the process engine starts the process instance and as soon as user task is entered it invokes the `notify` +implementation of the Task Listener. We then complete the user task and the `notify` method from the Task Listener +is executed once again. Afterwards, we change the assignee manually and the Task Listener is called a third time. + +## How to use it? + +1. Checkout the project with Git +2. Import the project into your IDE +3. Inspect the sources and run the unit test, or run it with Maven: `mvn clean verify` +4. Check the console if you can find: `Hello Kermit! Please start to work on your task User Task 1` + +[4]: docs/bpmnParseListenerOnUserTask.png +[5]: src/test/java/org/camunda/bpm/example/test/BpmnParseListenerOnUserTaskTest.java diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/docs/bpmnParseListener.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/docs/bpmnParseListener.png new file mode 100644 index 0000000000000000000000000000000000000000..2b8bc50a824e6ea6ddce6df9530b8bdf358e1adc --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/docs/bpmnParseListener.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:375059712c373012cb1b7fe71ed86437394515d677de6b3972b6f9ecbb30996c +size 7250 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/docs/bpmnParseListenerOnUserTask.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/docs/bpmnParseListenerOnUserTask.png new file mode 100644 index 0000000000000000000000000000000000000000..7e143406ff0b50d258f6a15ce46646c5be13e328 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/docs/bpmnParseListenerOnUserTask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f50856585fa0667fb63ea2810adb2772a132eebb9ac28a319da6294c7e63b3b4 +size 10327 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/docs/service-camunda-modeler.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/docs/service-camunda-modeler.png new file mode 100644 index 0000000000000000000000000000000000000000..6c2c6d8fcdf9df91baf8a2ca47b89134da15dec1 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/docs/service-camunda-modeler.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca7bca30eee9f2cf84000f20d991f05c6d64ea4f9c9ae8750d83c942c8c76112 +size 38660 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..1bc099524b4689003a88e548bdeed3653b201813 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/pom.xml @@ -0,0 +1,68 @@ + + 4.0.0 + org.camunda.bpm + bpmn-parse-listener + 0.0.1-SNAPSHOT + BPMN Parse Listener + an example project that shows how to parse custom attributes with a bpmn parse listener plugin + + + 7.24.0 + 4.13.2 + 2.3.232 + 1.7.36 + + + 17 + 3.11.0 + + UTF-8 + + + + + org.camunda.bpm + camunda-engine + ${version.camunda} + + + + junit + junit + ${version.junit} + test + + + + com.h2database + h2 + ${version.h2} + test + + + + + org.slf4j + slf4j-jdk14 + ${version.slf4j} + + + + + + + + maven-compiler-plugin + ${maven.compiler.plugin.version} + + + + + + + camunda-bpm-nexus + camunda-bpm-nexus + https://artifacts.camunda.com/artifactory/private/ + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/delegate/ServiceTaskOneDelegate.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/delegate/ServiceTaskOneDelegate.java new file mode 100644 index 0000000000000000000000000000000000000000..f58543b427afedd135fa606e2628bddbbae03df7 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/delegate/ServiceTaskOneDelegate.java @@ -0,0 +1,30 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.delegate; + +import org.camunda.bpm.engine.delegate.DelegateExecution; +import org.camunda.bpm.engine.delegate.JavaDelegate; + +public class ServiceTaskOneDelegate implements JavaDelegate { + + public static boolean wasExecuted = false; + + public void execute(DelegateExecution execution) throws Exception { + wasExecuted = true; + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/delegate/ServiceTaskTwoDelegate.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/delegate/ServiceTaskTwoDelegate.java new file mode 100644 index 0000000000000000000000000000000000000000..069b120fea05c98d27f4dc957eea1ee68c553f39 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/delegate/ServiceTaskTwoDelegate.java @@ -0,0 +1,30 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.delegate; + +import org.camunda.bpm.engine.delegate.DelegateExecution; +import org.camunda.bpm.engine.delegate.JavaDelegate; + +public class ServiceTaskTwoDelegate implements JavaDelegate { + + public static boolean wasExecuted = false; + + public void execute(DelegateExecution execution) throws Exception { + wasExecuted = true; + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/executionlistener/ProgressLoggingExecutionListener.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/executionlistener/ProgressLoggingExecutionListener.java new file mode 100644 index 0000000000000000000000000000000000000000..7200c1f28e4beb5a8db1215b89c836e372cf7a84 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/executionlistener/ProgressLoggingExecutionListener.java @@ -0,0 +1,49 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.executionlistener; + +import java.util.ArrayList; +import java.util.List; +import java.util.logging.Logger; + +import org.camunda.bpm.engine.delegate.DelegateExecution; +import org.camunda.bpm.engine.delegate.ExecutionListener; + +/** + * Execution listener to log property extension value + * + * @author kristin.polenz + * + */ +public class ProgressLoggingExecutionListener implements ExecutionListener { + + private final Logger LOGGER = Logger.getLogger(this.getClass().getName()); + + public static List progressValueList = new ArrayList(); + + private String propertyValue; + + public ProgressLoggingExecutionListener(String value) { + this.propertyValue = value; + } + + public void notify(DelegateExecution execution) throws Exception { + progressValueList.add(propertyValue); + LOGGER.info("value of service task extension property 'progress': " + propertyValue); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/parselistener/InformAssigneeParseListener.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/parselistener/InformAssigneeParseListener.java new file mode 100644 index 0000000000000000000000000000000000000000..80d41c73298332005b00cebf57d6dd62d0f0e304 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/parselistener/InformAssigneeParseListener.java @@ -0,0 +1,43 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.parselistener; + +import org.camunda.bpm.engine.impl.bpmn.behavior.UserTaskActivityBehavior; +import org.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener; +import org.camunda.bpm.engine.impl.pvm.delegate.ActivityBehavior; +import org.camunda.bpm.engine.impl.pvm.process.ActivityImpl; +import org.camunda.bpm.engine.impl.pvm.process.ScopeImpl; +import org.camunda.bpm.engine.impl.util.xml.Element; +import org.camunda.bpm.example.tasklistener.InformAssigneeTaskListener; + +/** + * BPMN Parse Listener to add task listener on user task + * + */ +public class InformAssigneeParseListener extends AbstractBpmnParseListener { + + @Override + public void parseUserTask(Element userTaskElement, ScopeImpl scope, ActivityImpl activity) { + ActivityBehavior activityBehavior = activity.getActivityBehavior(); + if(activityBehavior instanceof UserTaskActivityBehavior ){ + UserTaskActivityBehavior userTaskActivityBehavior = (UserTaskActivityBehavior) activityBehavior; + userTaskActivityBehavior + .getTaskDefinition() + .addTaskListener("assignment", InformAssigneeTaskListener.getInstance()); + } + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/parselistener/InformAssigneeParseListenerPlugin.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/parselistener/InformAssigneeParseListenerPlugin.java new file mode 100644 index 0000000000000000000000000000000000000000..5f9e73d4ffa4eeb7e53edb6b30ca5ecf71bab0ac --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/parselistener/InformAssigneeParseListenerPlugin.java @@ -0,0 +1,43 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.parselistener; + +import org.camunda.bpm.engine.impl.bpmn.parser.BpmnParseListener; +import org.camunda.bpm.engine.impl.cfg.AbstractProcessEnginePlugin; +import org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl; +import org.camunda.bpm.engine.impl.cfg.ProcessEnginePlugin; + +import java.util.ArrayList; +import java.util.List; + +/** + *

    {@link ProcessEnginePlugin} enabling the assignee informing parse listener.

    + * + */ +public class InformAssigneeParseListenerPlugin extends AbstractProcessEnginePlugin { + + @Override + public void preInit(ProcessEngineConfigurationImpl processEngineConfiguration) { + List preParseListeners = processEngineConfiguration.getCustomPreBPMNParseListeners(); + if(preParseListeners == null) { + preParseListeners = new ArrayList(); + processEngineConfiguration.setCustomPreBPMNParseListeners(preParseListeners); + } + preParseListeners.add(new InformAssigneeParseListener()); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/parselistener/ProgressLoggingSupportParseListener.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/parselistener/ProgressLoggingSupportParseListener.java new file mode 100644 index 0000000000000000000000000000000000000000..1e6cc2fc8b3dcbf53110ba03d6a8cd1a0cc7c15e --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/parselistener/ProgressLoggingSupportParseListener.java @@ -0,0 +1,57 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.parselistener; + +import java.util.List; + +import org.camunda.bpm.application.impl.event.ProcessApplicationEventParseListener; +import org.camunda.bpm.engine.delegate.ExecutionListener; +import org.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener; +import org.camunda.bpm.engine.impl.pvm.process.ActivityImpl; +import org.camunda.bpm.engine.impl.pvm.process.ScopeImpl; +import org.camunda.bpm.engine.impl.util.xml.Element; +import org.camunda.bpm.example.executionlistener.ProgressLoggingExecutionListener; + +/** + * BPMN Parse Listener to parse extension properties on service task + * + * @author kristin.polenz + * + */ +public class ProgressLoggingSupportParseListener extends AbstractBpmnParseListener { + + @Override + public void parseServiceTask(Element serviceTaskElement, ScopeImpl scope, ActivityImpl activity) { + Element extensionElement = serviceTaskElement.element("extensionElements"); + if (extensionElement != null) { + Element propertiesElement = extensionElement.element("properties"); + if (propertiesElement != null) { + // get list of elements + List propertyList = propertiesElement.elements("property"); + for (Element property : propertyList) { + String name = property.attribute("name"); + String value = property.attribute("value"); + if("progress".equals(name)) { + ProgressLoggingExecutionListener progressLoggingExecutionListener = new ProgressLoggingExecutionListener(value); + activity.addListener(ExecutionListener.EVENTNAME_END, progressLoggingExecutionListener); + } + } + } + } + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/parselistener/ProgressLoggingSupportParseListenerPlugin.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/parselistener/ProgressLoggingSupportParseListenerPlugin.java new file mode 100644 index 0000000000000000000000000000000000000000..bd30f4e123b677f6d7a84b0b42e7877fe3306a0f --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/parselistener/ProgressLoggingSupportParseListenerPlugin.java @@ -0,0 +1,45 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.parselistener; + +import java.util.ArrayList; +import java.util.List; + +import org.camunda.bpm.engine.impl.bpmn.parser.BpmnParseListener; +import org.camunda.bpm.engine.impl.cfg.AbstractProcessEnginePlugin; +import org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl; +import org.camunda.bpm.engine.impl.cfg.ProcessEnginePlugin; + +/** + *

    {@link ProcessEnginePlugin} enabling the progress logging support parse listener support.

    + * + * @author kristin.polenz + * + */ +public class ProgressLoggingSupportParseListenerPlugin extends AbstractProcessEnginePlugin { + + @Override + public void preInit(ProcessEngineConfigurationImpl processEngineConfiguration) { + List preParseListeners = processEngineConfiguration.getCustomPreBPMNParseListeners(); + if(preParseListeners == null) { + preParseListeners = new ArrayList(); + processEngineConfiguration.setCustomPreBPMNParseListeners(preParseListeners); + } + preParseListeners.add(new ProgressLoggingSupportParseListener()); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/tasklistener/InformAssigneeTaskListener.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/tasklistener/InformAssigneeTaskListener.java new file mode 100644 index 0000000000000000000000000000000000000000..b28be1feaa83e828b765139613bf8c29503d45c0 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/java/org/camunda/bpm/example/tasklistener/InformAssigneeTaskListener.java @@ -0,0 +1,51 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.tasklistener; + +import org.camunda.bpm.engine.delegate.DelegateTask; +import org.camunda.bpm.engine.delegate.TaskListener; + +import java.util.ArrayList; +import java.util.List; +import java.util.logging.Logger; + +/** + * Task listener to be executed when a user task is entered + */ +public class InformAssigneeTaskListener implements TaskListener { + + private final Logger LOGGER = Logger.getLogger(this.getClass().getName()); + public static List assigneeList = new ArrayList(); + + private static InformAssigneeTaskListener instance = null; + + protected InformAssigneeTaskListener() { } + + public static InformAssigneeTaskListener getInstance() { + if(instance == null) { + instance = new InformAssigneeTaskListener(); + } + return instance; + } + + public void notify(DelegateTask delegateTask) { + String assignee = delegateTask.getAssignee(); + assigneeList.add(assignee); + LOGGER.info("Hello " + assignee + "! Please start to work on your task " + delegateTask.getName()); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/resources/bpmnParseListener.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/resources/bpmnParseListener.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..c357bed070b162f640b6d75863d76d035c56e98f --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/resources/bpmnParseListener.bpmn @@ -0,0 +1,60 @@ + + + + + SequenceFlow_1 + + + + + + + + SequenceFlow_1 + SequenceFlow_2 + + + + + + + + + SequenceFlow_2 + SequenceFlow_3 + + + + SequenceFlow_3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/resources/bpmnParseListener.png b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/resources/bpmnParseListener.png new file mode 100644 index 0000000000000000000000000000000000000000..2b8bc50a824e6ea6ddce6df9530b8bdf358e1adc --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/resources/bpmnParseListener.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:375059712c373012cb1b7fe71ed86437394515d677de6b3972b6f9ecbb30996c +size 7250 diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/resources/bpmnParseListenerOnUserTask.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/resources/bpmnParseListenerOnUserTask.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..1361355a8e595d7d0c2a7240b538d52edfee5014 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/main/resources/bpmnParseListenerOnUserTask.bpmn @@ -0,0 +1,62 @@ + + + + + SequenceFlow_1j2qb0q + + + + + SequenceFlow_1phw7rz + + + + SequenceFlow_1j2qb0q + SequenceFlow_02sgtzk + + + SequenceFlow_02sgtzk + SequenceFlow_1phw7rz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/test/java/org/camunda/bpm/example/test/BpmnParseListenerOnUserTaskTest.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/test/java/org/camunda/bpm/example/test/BpmnParseListenerOnUserTaskTest.java new file mode 100644 index 0000000000000000000000000000000000000000..3a241cc99ac0e5bf3cd551a47bcaac7faed92ca2 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/test/java/org/camunda/bpm/example/test/BpmnParseListenerOnUserTaskTest.java @@ -0,0 +1,92 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.test; + +import org.camunda.bpm.engine.RuntimeService; +import org.camunda.bpm.engine.TaskService; +import org.camunda.bpm.engine.runtime.ProcessInstance; +import org.camunda.bpm.engine.task.Task; +import org.camunda.bpm.engine.test.Deployment; +import org.camunda.bpm.engine.test.ProcessEngineRule; +import org.camunda.bpm.example.tasklistener.InformAssigneeTaskListener; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; + +import java.io.IOException; +import java.util.List; + +import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.CoreMatchers.nullValue; +import static org.hamcrest.MatcherAssert.assertThat; + +/** + * Test Bpmn Parse listener as process engine plugin has appended task listeners + * and if task listeners are executed. + */ +public class BpmnParseListenerOnUserTaskTest { + + @Rule + public ProcessEngineRule processEngineRule = new ProcessEngineRule(); + + protected TaskService taskService; + protected RuntimeService runtimeService; + + @Before + public void init() { + taskService = processEngineRule.getTaskService(); + runtimeService = processEngineRule.getRuntimeService(); + } + + @Test + @Deployment(resources = { "bpmnParseListenerOnUserTask.bpmn" }) + public void testBpmnParseListener() throws IOException { + + // start the process instance + ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("bpmnParseListenerOnUserTask"); + + // check if the first task listener was executed + List assigneeList = InformAssigneeTaskListener.assigneeList; + assertThat(assigneeList.size(), is(1)); + assertThat(assigneeList.get(0), is("Kermit")); + + // complete first user task + Task task = taskService.createTaskQuery().singleResult(); + taskService.complete(task.getId()); + + // check if the second task lister was executed + assertThat(assigneeList.size(), is(2)); + assertThat(assigneeList.get(1), is("Fozzie")); + + // reset the assignee + task = taskService.createTaskQuery().singleResult(); + taskService.setAssignee(task.getId(), "Kermit"); + assertThat(assigneeList.size(), is(3)); + assertThat(assigneeList.get(2), is("Kermit")); + + // complete second user task + taskService.complete(task.getId()); + + // check if process instance ended + processInstance = runtimeService + .createProcessInstanceQuery() + .processInstanceId(processInstance.getId()) + .singleResult(); + assertThat(processInstance, is(nullValue())); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/test/java/org/camunda/bpm/example/test/BpmnParseListenerTest.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/test/java/org/camunda/bpm/example/test/BpmnParseListenerTest.java new file mode 100644 index 0000000000000000000000000000000000000000..0cbde24c2d4959af5d6a0a47914093e3ddd20811 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/test/java/org/camunda/bpm/example/test/BpmnParseListenerTest.java @@ -0,0 +1,71 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.test; + +import static org.junit.Assert.assertEquals; + +import java.io.IOException; +import java.util.List; + +import org.camunda.bpm.engine.RuntimeService; +import org.camunda.bpm.engine.runtime.ProcessInstance; +import org.camunda.bpm.engine.test.Deployment; +import org.camunda.bpm.engine.test.ProcessEngineRule; +import org.camunda.bpm.example.delegate.ServiceTaskOneDelegate; +import org.camunda.bpm.example.delegate.ServiceTaskTwoDelegate; +import org.camunda.bpm.example.executionlistener.ProgressLoggingExecutionListener; +import org.junit.Rule; +import org.junit.Test; + +/** + * Test Bpmn Parse listener as process engine plugin and + * parse extension properties on bpmn element + * + * @author kristin.polenz + * + */ +public class BpmnParseListenerTest { + + @Rule + public ProcessEngineRule processEngineRule = new ProcessEngineRule(); + + @Test + @Deployment(resources = { "bpmnParseListener.bpmn" }) + public void testBpmnParseListener() throws IOException { + ServiceTaskOneDelegate.wasExecuted = false; + ServiceTaskTwoDelegate.wasExecuted = false; + + RuntimeService runtimeService = processEngineRule.getRuntimeService(); + + // start the process instance + ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("bpmnParseListener"); + + // check if process instance ended + assertEquals(true, processInstance.isEnded()); + + // check if execution listener was executed + List progressValueList = ProgressLoggingExecutionListener.progressValueList; + assertEquals(2, progressValueList.size()); + assertEquals("50%", progressValueList.get(0)); + assertEquals("100%", progressValueList.get(1)); + + // check if service task executed + assertEquals(true, ServiceTaskOneDelegate.wasExecuted); + assertEquals(true, ServiceTaskTwoDelegate.wasExecuted); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/test/resources/camunda.cfg.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/test/resources/camunda.cfg.xml new file mode 100644 index 0000000000000000000000000000000000000000..baf35f8131413419619441300711f23340fc7a2d --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/bpmn-parse-listener/src/test/resources/camunda.cfg.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/README.md new file mode 100644 index 0000000000000000000000000000000000000000..a8f5ea70e08eea08df17d21c3d73bb805836d31c --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/README.md @@ -0,0 +1,41 @@ +# Blocking Command Interceptor Plugin + +Sometimes you want the process engine to reject all (or some) API calls. The reason for this could be that +you want the process engine to go into a "maintenance" mode so that you can do housekeeping or things like that. + +Each API call to the process engine is a `Command`. Commands are executed inside the so called `CommandContex`. +In order to create the `CommandContext`, a chain of `CommandInterceptor`s is used. + +This example demonstrates how to create a custom `CommandInterceptor` which can be configured to throw an exception. + +## Start Blocking commands + +In order to start blocking commands, you need to execute the StartBlockingCmd. + +```java +((ProcessEngineConfigurationImpl)processEngine.getProcessEngineConfiguration()).getCommandExecutorTxRequired() + .execute(new StartBlockingCmd()); +``` + +After executing this, any further API calls will throw an exception: + +processEngine.getTaskService().createTaskQuery().list(); // << This will throw an exception + +## End Blocking commands + +In order to end blocking commands, you need to execute the EndBlockingCmd. + +```java +((ProcessEngineConfigurationImpl)processEngine.getProcessEngineConfiguration()).getCommandExecutorTxRequired() + .execute(new EndBlockingCmd()); +``` + +After executing this, all subsequent API calls will work again. + +## How to use it? + +1. Checkout the project with Git +2. Import the project into your IDE +3. Inspect the sources and run the unit test in your IDE or with Maven: `mvn clean verify` +4. You should expect a passing test case. + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..63caadf6c5645bfa3156eecccc6d8b04c59516c7 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/pom.xml @@ -0,0 +1,71 @@ + + 4.0.0 + org.camunda.bpm.example + camunda-process-engine-command-interceptor + 0.0.1-SNAPSHOT + Camunda Command Interceptor Example + + + 7.24.0 + 4.13.2 + 2.3.232 + 1.7.36 + + + 17 + 3.11.0 + + UTF-8 + + + + + + org.camunda.bpm + camunda-bom + ${version.camunda} + pom + import + + + + + + + + org.camunda.bpm + camunda-engine + + + + junit + junit + ${version.junit} + test + + + + com.h2database + h2 + ${version.h2} + test + + + + + org.slf4j + slf4j-jdk14 + ${version.slf4j} + + + + + + + maven-compiler-plugin + ${maven.compiler.plugin.version} + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/BlockedCommandException.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/BlockedCommandException.java new file mode 100644 index 0000000000000000000000000000000000000000..6e4ddecae5684c54d327bb1a158478a75310d5a0 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/BlockedCommandException.java @@ -0,0 +1,45 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.engine; + +import org.camunda.bpm.engine.ProcessEngineException; + +/** + * @author Daniel Meyer + * + */ +public class BlockedCommandException extends ProcessEngineException { + + private static final long serialVersionUID = 1L; + + public BlockedCommandException() { + super(); + } + + public BlockedCommandException(String message, Throwable cause) { + super(message, cause); + } + + public BlockedCommandException(String message) { + super(message); + } + + public BlockedCommandException(Throwable cause) { + super(cause); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/BlockingCommandInterceptor.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/BlockingCommandInterceptor.java new file mode 100644 index 0000000000000000000000000000000000000000..80cf45abf3f6cf6ddfd799e7f56387b52a25230a --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/BlockingCommandInterceptor.java @@ -0,0 +1,79 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.engine; + +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.logging.Logger; + +import org.camunda.bpm.engine.impl.interceptor.Command; +import org.camunda.bpm.engine.impl.interceptor.CommandInterceptor; +import org.camunda.bpm.example.engine.cmd.EndBlockingCmd; +import org.camunda.bpm.example.engine.cmd.StartBlockingCmd; +import org.camunda.bpm.example.engine.cmd.UnblockedCommand; + +/** + * A {@link CommandInterceptor} which throws exceptions if {@link #shouldBlock} is enabled. + * + * @author Daniel Meyer + * + */ +public class BlockingCommandInterceptor extends CommandInterceptor { + + private final static Logger LOG = Logger.getLogger(BlockingCommandInterceptor.class.getName()); + + protected AtomicBoolean shouldBlock = new AtomicBoolean(); + + public T execute(Command command) { + // handle start blocking + if(command instanceof StartBlockingCmd) { + startBlocking(); + return null; + } + // handle end blocking + if(command instanceof EndBlockingCmd) { + stopBlocking(); + return null; + } + + // handle unblocked commands + if(command instanceof UnblockedCommand) { + return next.execute(command); + } + else { + // otherwise, check whether we should block this + if(shouldBlock.get()) { + throw new BlockedCommandException("Process engine blocked"); + } + else { + return next.execute(command); + } + } + } + + public void startBlocking() { + // start blocking commands. + shouldBlock.set(true); + LOG.fine("start blocking commands"); + } + + public void stopBlocking() { + // stop blocking commands + shouldBlock.set(false); + LOG.fine("end blocking commands"); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/BlockingCommandInterceptorPlugin.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/BlockingCommandInterceptorPlugin.java new file mode 100644 index 0000000000000000000000000000000000000000..683b63a57670eec24761c9aaaa48c72f1eefcd75 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/BlockingCommandInterceptorPlugin.java @@ -0,0 +1,65 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.engine; + +import java.util.ArrayList; +import java.util.List; + +import org.camunda.bpm.engine.ProcessEngine; +import org.camunda.bpm.engine.impl.cfg.AbstractProcessEnginePlugin; +import org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl; +import org.camunda.bpm.engine.impl.interceptor.CommandInterceptor; + +/** + * @author Daniel Meyer + * + */ +public class BlockingCommandInterceptorPlugin extends AbstractProcessEnginePlugin { + + protected BlockingCommandInterceptor blockingCommandInterceptor = new BlockingCommandInterceptor(); + + public void preInit(ProcessEngineConfigurationImpl processEngineConfiguration) { + + // add command interceptor to configuration + List customPreCommandInterceptorsTxRequired = processEngineConfiguration.getCustomPreCommandInterceptorsTxRequired(); + if(customPreCommandInterceptorsTxRequired == null) { + customPreCommandInterceptorsTxRequired = new ArrayList(); + processEngineConfiguration.setCustomPreCommandInterceptorsTxRequired(customPreCommandInterceptorsTxRequired); + } + customPreCommandInterceptorsTxRequired.add(blockingCommandInterceptor); + + List customPreCommandInterceptorsTxRequiresNew = processEngineConfiguration.getCustomPreCommandInterceptorsTxRequiresNew(); + if(customPreCommandInterceptorsTxRequiresNew == null) { + customPreCommandInterceptorsTxRequiresNew = new ArrayList(); + processEngineConfiguration.setCustomPreCommandInterceptorsTxRequiresNew(customPreCommandInterceptorsTxRequiresNew); + } + customPreCommandInterceptorsTxRequiresNew.add(blockingCommandInterceptor); + } + + public void postProcessEngineBuild(ProcessEngine processEngine) { + // after the process engine is built, start blocking + blockingCommandInterceptor.startBlocking(); + } + + /** + * @return the blockingCommandInterceptor + */ + public BlockingCommandInterceptor getBlockingCommandInterceptor() { + return blockingCommandInterceptor; + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/cmd/EndBlockingCmd.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/cmd/EndBlockingCmd.java new file mode 100644 index 0000000000000000000000000000000000000000..e3bbfd2c3f5a3cb5ba9f4556911bc4578aa42a62 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/cmd/EndBlockingCmd.java @@ -0,0 +1,34 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.engine.cmd; + +import org.camunda.bpm.engine.impl.interceptor.Command; +import org.camunda.bpm.engine.impl.interceptor.CommandContext; + +/** + * If this command is executed, the interceptor ends blocking. + * + * @author Daniel Meyer + * + */ +public class EndBlockingCmd implements Command { + + public Void execute(CommandContext commandContext) { + return null; + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/cmd/StartBlockingCmd.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/cmd/StartBlockingCmd.java new file mode 100644 index 0000000000000000000000000000000000000000..5c59d2cb1e78d381d4fc7109c096b52f93ba9ad6 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/cmd/StartBlockingCmd.java @@ -0,0 +1,34 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.engine.cmd; + +import org.camunda.bpm.engine.impl.interceptor.Command; +import org.camunda.bpm.engine.impl.interceptor.CommandContext; + +/** + * If this command is executed, the interceptor starts blocking. + * + * @author Daniel Meyer + * + */ +public class StartBlockingCmd implements Command { + + public Void execute(CommandContext commandContext) { + return null; + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/cmd/UnblockedCommand.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/cmd/UnblockedCommand.java new file mode 100644 index 0000000000000000000000000000000000000000..154596099ea01cfb24be68a68c2d308d49ecf4ff --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/main/java/org/camunda/bpm/example/engine/cmd/UnblockedCommand.java @@ -0,0 +1,29 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.engine.cmd; + +import org.camunda.bpm.engine.impl.interceptor.Command; + +/** + * Commands implementing this interface can always be executed even if the engine is in blocking mode. + * + * @author Daniel Meyer + * + */ +public interface UnblockedCommand extends Command { + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/test/java/org/camunda/bpm/example/engine/BlockingCommandInterceptorTest.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/test/java/org/camunda/bpm/example/engine/BlockingCommandInterceptorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..f569364a16197546a224fd2522b03bf1d625b2a2 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/command-interceptor-blocking/src/test/java/org/camunda/bpm/example/engine/BlockingCommandInterceptorTest.java @@ -0,0 +1,68 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example.engine; + +import org.camunda.bpm.engine.ProcessEngine; +import org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl; +import org.camunda.bpm.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration; +import org.camunda.bpm.example.engine.cmd.EndBlockingCmd; +import org.junit.Assert; +import org.junit.BeforeClass; +import org.junit.Test; + +/** + * @author Daniel Meyer + * + */ +public class BlockingCommandInterceptorTest { + + protected static ProcessEngine processEngine; + + @BeforeClass + public static void createProcessEngine() { + StandaloneInMemProcessEngineConfiguration configuration = new StandaloneInMemProcessEngineConfiguration(); + configuration.getProcessEnginePlugins().add(new BlockingCommandInterceptorPlugin()); + processEngine = configuration.buildProcessEngine(); + } + + @Test + public void testBlockingInterceptor() throws Exception { + + // initially the process engine blocks all commands + try { + processEngine.getRepositoryService().createDeploymentQuery().list(); + Assert.fail("Exception expected"); + } + catch(BlockedCommandException e) { + // expected + } + + // stop blocking requests + ((ProcessEngineConfigurationImpl)processEngine.getProcessEngineConfiguration()).getCommandExecutorTxRequired() + .execute(new EndBlockingCmd()); + + // now we can execute the query + try { + Assert.assertEquals(0, processEngine.getRepositoryService().createDeploymentQuery().count()); + } + catch(BlockedCommandException e) { + Assert.fail("Did not expect an exception"); + } + } + + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/README.md b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ade9a599a7deab8ed00e47ac67dd9acc665fa665 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/README.md @@ -0,0 +1,183 @@ +# Custom History Level + +This example demonstrates how to register custom history levels by implementing a process engine plugin. + +This examples adds two history levels: + +1. The `custom-variable` history level behaves like the normal full history + except that only variables with a specific name pattern are saved to + history. This way you can reduce the number of variables tracked and don't + pollute the history with auxiliary variables. +2. The `per-process` history level allows you to specify the history level + per process with the camunda properties. This allows you to disable or + reduce the history for unimportant processes. And even change the history + level of new instances by redeploying an adjusted process definition. + +**Note**: This is example code and not intended to be used as is in a production setting (especially the `per-process` history level). +It rather highlights the mechanics on how a custom history level can be implemented. +If you are interested in this feature, make sure you understand the code and its limitations or ask for help in the [Camunda forum](https://forum.camunda.org/). + +## Show me the important parts! + +The process model is composed of one task which adds 4 variables to the process: + +![Process Model][1] + +```java +public void execute(DelegateExecution execution) throws Exception { + execution.setVariable("foo", "bar"); + execution.setVariable("hello", "world"); + execution.setVariable("action-id-hist", "important"); + execution.setVariable("camunda-hist", "rocks"); +} +``` + + +### Create the Process Engine Plugin + +The process engine plugin is used to register the custom history levels in the `preInit` +method. Additionally, in the `postInit` method all registered custom history levels are +added to the `PerProcessHistoryLevel` instance. This way also custom history levels +can be specified per process. + +```java +public class CustomHistoryLevelProcessEnginePlugin extends AbstractProcessEnginePlugin { + + public void preInit(ProcessEngineConfigurationImpl processEngineConfiguration) { + List customHistoryLevels = processEngineConfiguration.getCustomHistoryLevels(); + if (customHistoryLevels == null) { + customHistoryLevels = new ArrayList(); + processEngineConfiguration.setCustomHistoryLevels(customHistoryLevels); + } + customHistoryLevels.add(CustomVariableHistoryLevel.getInstance()); + customHistoryLevels.add(PerProcessHistoryLevel.getInstance()); + } + + public void postInit(ProcessEngineConfigurationImpl processEngineConfiguration) { + PerProcessHistoryLevel.getInstance() + .addHistoryLevels(processEngineConfiguration.getCustomHistoryLevels()); + } + +} +``` + + +### Create the `custom-variable` History Level + +The idea of the `custom-variable` history level is that only some variables are +saved to history. In this example we use a variable name pattern to distinguish +these variables. Every variable which name ends with `-hist` will be saved to +history; all others are ignored. For the other history events (Process Instance, Activity +Instance) full history is written. + +```java +public class CustomVariableHistoryLevel implements HistoryLevel { + + public static final CustomVariableHistoryLevel INSTANCE = new CustomVariableHistoryLevel(); + + protected static final List VARIABLE_EVENT_TYPES = new ArrayList(); + + static { + VARIABLE_EVENT_TYPES.add(HistoryEventTypes.VARIABLE_INSTANCE_CREATE); + VARIABLE_EVENT_TYPES.add(HistoryEventTypes.VARIABLE_INSTANCE_UPDATE); + VARIABLE_EVENT_TYPES.add(HistoryEventTypes.VARIABLE_INSTANCE_DELETE); + } + + public static CustomVariableHistoryLevel getInstance() { + return INSTANCE; + } + + public int getId() { + return 11; + } + + public String getName() { + return "custom-variable"; + } + + public boolean isHistoryEventProduced(HistoryEventType historyEventType, Object entity) { + return !VARIABLE_EVENT_TYPES.contains(historyEventType) + || isVariableEventProduced((VariableInstance) entity); + } + + protected boolean isVariableEventProduced(VariableInstance variableInstance) { + return variableInstance == null || variableInstance.getName().endsWith("-hist"); + } + +} +``` + +### Create the `per-process` History Level + +Another interesting idea is to use camunda properties to specify a history +level for every process definition separately. + +![Camunda Properites][2] + +The property is extracted on the creation of a new process instance and a +delegate history level is saved for the instance (see the [source][3] for the +full code). + +```java +public boolean isHistoryEventProduced(HistoryEventType historyEventType, Object entity) { + if (entity == null) { + return true; + } + else if (historyEventType == HistoryEventTypes.PROCESS_INSTANCE_START) { + setDelegateHistoryLevel((ExecutionEntity) entity); + } + + return isDelegateHistoryLevelEventProduced(historyEventType, entity); +} +``` + +### Activate the Custom History Level Engine Plugin + +The custom history level engine plugin can be activated in the `camunda.cfg.xml`: + +``` xml + + + + + + +``` + +### Configure Custom History Level + +To enable the custom history configure it also in the `camunda.cfg.xml`: + +```xml + +``` + +or + +```xml + +``` + +## How does it work? + +If you are impatient, just have a look at the unit tests [CustomVariableHistoryLevelTest][4] and +[PerProcessVariableHistoryLevelTest][5]. + +[CustomVariableHistoryLevelTest][4] demonstrates that only the correct variables are saved to history. +In [PerProcessVariableHistoryLevelTest][5], several processes are deployed with +different camunda properties to configure the history level for this +process definition. There is also a test where a modified process definition is +redeployed to change the history level of new process instances. + +## How to use it? + +1. Checkout the project with Git +2. Import the project into your IDE +3. Inspect the sources and run the unit test in your IDE or with Maven: `mvn clean verify` +4. You should expect that all test cases pass. + +[1]: src/main/resources/process.png +[2]: src/main/resources/properties.png +[3]: src/main/java/org/camunda/bpm/example/PerProcessHistoryLevel.java +[4]: src/test/java/org/camunda/bpm/example/test/CustomVariableHistoryLevelTest.java +[5]: src/test/java/org/camunda/bpm/example/test/PerProcessVariableHistoryLevelTest.java diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/pom.xml b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..e114c50f010a4ee2fb713a5395060147123792ae --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/pom.xml @@ -0,0 +1,68 @@ + + 4.0.0 + org.camunda.bpm + custom-history-level + 0.0.1-SNAPSHOT + Custom History Level + an example project that shows how to implement a custom history level for Camunda Platform + + + 7.24.0 + 4.13.2 + 2.3.232 + 1.7.36 + + + 17 + 3.11.0 + + UTF-8 + + + + + org.camunda.bpm + camunda-engine + ${version.camunda} + + + + junit + junit + ${version.junit} + test + + + + com.h2database + h2 + ${version.h2} + test + + + + + org.slf4j + slf4j-jdk14 + ${version.slf4j} + + + + + + + + maven-compiler-plugin + ${maven.compiler.plugin.version} + + + + + + + camunda-bpm-nexus + camunda-bpm-nexus + https://artifacts.camunda.com/artifactory/private/ + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/java/org/camunda/bpm/example/CreateVariablesDelegate.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/java/org/camunda/bpm/example/CreateVariablesDelegate.java new file mode 100644 index 0000000000000000000000000000000000000000..662d9284e77c6cf666e0107bd5272e16854dadac --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/java/org/camunda/bpm/example/CreateVariablesDelegate.java @@ -0,0 +1,30 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example; + +import org.camunda.bpm.engine.delegate.DelegateExecution; +import org.camunda.bpm.engine.delegate.JavaDelegate; + +public class CreateVariablesDelegate implements JavaDelegate { + + public void execute(DelegateExecution execution) throws Exception { + execution.setVariable("foo", "bar"); + execution.setVariable("hello", "world"); + execution.setVariable("action-id-hist", "important"); + execution.setVariable("camunda-hist", "rocks"); + } +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/java/org/camunda/bpm/example/CustomHistoryLevelProcessEnginePlugin.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/java/org/camunda/bpm/example/CustomHistoryLevelProcessEnginePlugin.java new file mode 100644 index 0000000000000000000000000000000000000000..0d3638797c81c85e4a7d869efd70dadd96ec249c --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/java/org/camunda/bpm/example/CustomHistoryLevelProcessEnginePlugin.java @@ -0,0 +1,42 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example; + +import java.util.ArrayList; +import java.util.List; + +import org.camunda.bpm.engine.impl.cfg.AbstractProcessEnginePlugin; +import org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl; +import org.camunda.bpm.engine.impl.history.HistoryLevel; + +public class CustomHistoryLevelProcessEnginePlugin extends AbstractProcessEnginePlugin { + + public void preInit(ProcessEngineConfigurationImpl processEngineConfiguration) { + List customHistoryLevels = processEngineConfiguration.getCustomHistoryLevels(); + if (customHistoryLevels == null) { + customHistoryLevels = new ArrayList(); + processEngineConfiguration.setCustomHistoryLevels(customHistoryLevels); + } + customHistoryLevels.add(CustomVariableHistoryLevel.getInstance()); + customHistoryLevels.add(PerProcessHistoryLevel.getInstance()); + } + + public void postInit(ProcessEngineConfigurationImpl processEngineConfiguration) { + PerProcessHistoryLevel.getInstance().addHistoryLevels(processEngineConfiguration.getCustomHistoryLevels()); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/java/org/camunda/bpm/example/CustomVariableHistoryLevel.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/java/org/camunda/bpm/example/CustomVariableHistoryLevel.java new file mode 100644 index 0000000000000000000000000000000000000000..9e4db6a3962b42266edcb9d14aeac396450f3b08 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/java/org/camunda/bpm/example/CustomVariableHistoryLevel.java @@ -0,0 +1,60 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example; + +import java.util.ArrayList; +import java.util.List; + +import org.camunda.bpm.engine.impl.history.HistoryLevel; +import org.camunda.bpm.engine.impl.history.event.HistoryEventType; +import org.camunda.bpm.engine.impl.history.event.HistoryEventTypes; +import org.camunda.bpm.engine.runtime.VariableInstance; + +public class CustomVariableHistoryLevel implements HistoryLevel { + + public static final CustomVariableHistoryLevel INSTANCE = new CustomVariableHistoryLevel(); + + protected static final List VARIABLE_EVENT_TYPES = new ArrayList(); + + static { + VARIABLE_EVENT_TYPES.add(HistoryEventTypes.VARIABLE_INSTANCE_CREATE); + VARIABLE_EVENT_TYPES.add(HistoryEventTypes.VARIABLE_INSTANCE_UPDATE); + VARIABLE_EVENT_TYPES.add(HistoryEventTypes.VARIABLE_INSTANCE_DELETE); + } + + public static CustomVariableHistoryLevel getInstance() { + return INSTANCE; + } + + public int getId() { + return 11; + } + + public String getName() { + return "custom-variable"; + } + + public boolean isHistoryEventProduced(HistoryEventType historyEventType, Object entity) { + return !VARIABLE_EVENT_TYPES.contains(historyEventType) + || isVariableEventProduced((VariableInstance) entity); + } + + protected boolean isVariableEventProduced(VariableInstance variableInstance) { + return variableInstance == null || variableInstance.getName().endsWith("-hist"); + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/java/org/camunda/bpm/example/PerProcessHistoryLevel.java b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/java/org/camunda/bpm/example/PerProcessHistoryLevel.java new file mode 100644 index 0000000000000000000000000000000000000000..4565b9f05d983b3a1ea7d13f1bc25cba796cfcae --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/java/org/camunda/bpm/example/PerProcessHistoryLevel.java @@ -0,0 +1,137 @@ +/* + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. Camunda licenses this file to you under the Apache License, + * Version 2.0; you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.camunda.bpm.example; + +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.camunda.bpm.engine.ProcessEngineException; +import org.camunda.bpm.engine.impl.context.Context; +import org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager; +import org.camunda.bpm.engine.impl.history.HistoryLevel; +import org.camunda.bpm.engine.impl.history.event.HistoryEvent; +import org.camunda.bpm.engine.impl.history.event.HistoryEventType; +import org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity; +import org.camunda.bpm.engine.runtime.VariableInstance; +import org.camunda.bpm.model.bpmn.instance.ExtensionElements; +import org.camunda.bpm.model.bpmn.instance.Process; +import org.camunda.bpm.model.bpmn.instance.camunda.CamundaProperties; +import org.camunda.bpm.model.bpmn.instance.camunda.CamundaProperty; + +public class PerProcessHistoryLevel implements HistoryLevel { + + public static final PerProcessHistoryLevel INSTANCE = new PerProcessHistoryLevel(); + + protected Map historyLevels = new HashMap(); + protected Map delegateHistoryLevelPerProcess = new HashMap(); + + public static PerProcessHistoryLevel getInstance() { + return INSTANCE; + } + + public PerProcessHistoryLevel() { + historyLevels.put(HISTORY_LEVEL_NONE.getName(), HISTORY_LEVEL_NONE); + historyLevels.put(HISTORY_LEVEL_ACTIVITY.getName(), HISTORY_LEVEL_ACTIVITY); + historyLevels.put(HISTORY_LEVEL_AUDIT.getName(), HISTORY_LEVEL_AUDIT); + historyLevels.put(HISTORY_LEVEL_FULL.getName(), HISTORY_LEVEL_FULL); + } + + public void addHistoryLevels(List historyLevels) { + for (HistoryLevel historyLevel : historyLevels) { + this.historyLevels.put(historyLevel.getName(), historyLevel); + } + } + + public int getId() { + return 12; + } + + public String getName() { + return "per-process"; + } + + public boolean isHistoryEventProduced(HistoryEventType historyEventType, Object entity) { + if (entity == null) { + return true; + } + + return isDelegateHistoryLevelEventProduced(historyEventType, entity); + } + + protected void setDelegateHistoryLevel(ExecutionEntity execution) { + Collection camundaProperties = getCamundaProperties(execution); + if (camundaProperties != null) { + for (CamundaProperty camundaProperty : camundaProperties) { + if (camundaProperty.getCamundaName().equals("history")) { + String historyLevelName = camundaProperty.getCamundaValue(); + HistoryLevel historyLevel = historyLevels.get(historyLevelName); + delegateHistoryLevelPerProcess.put(execution.getProcessInstanceId(), historyLevel); + } + } + } + } + + protected Collection getCamundaProperties(ExecutionEntity execution) { + Process process = (Process) execution.getBpmnModelInstance().getDefinitions().getUniqueChildElementByType(Process.class); + ExtensionElements extensionElements = process.getExtensionElements(); + if (extensionElements != null) { + CamundaProperties properties = (CamundaProperties) extensionElements.getUniqueChildElementByType(CamundaProperties.class); + if (properties != null) { + return properties.getCamundaProperties(); + } + } + return null; + } + + protected HistoryLevel getDelegateHistoryLevel(String processInstanceId) { + HistoryLevel delegateHistoryLevel = delegateHistoryLevelPerProcess.get(processInstanceId); + + if (delegateHistoryLevel == null) { + DbEntityManager dbEntityManager = Context.getCommandContext().getDbEntityManager(); + ExecutionEntity processInstance = dbEntityManager.selectById(ExecutionEntity.class, processInstanceId); + setDelegateHistoryLevel(processInstance); + delegateHistoryLevel = delegateHistoryLevelPerProcess.get(processInstanceId); + } + + return delegateHistoryLevel; + } + + protected boolean isDelegateHistoryLevelEventProduced(HistoryEventType historyEventType, Object entity) { + String processInstanceId = getProcessInstanceId(entity); + HistoryLevel delegateHistoryLevel = getDelegateHistoryLevel(processInstanceId); + + return delegateHistoryLevel != null && delegateHistoryLevel.isHistoryEventProduced(historyEventType, entity); + } + + protected String getProcessInstanceId(Object entity) { + if (entity instanceof ExecutionEntity) { + return ((ExecutionEntity) entity).getProcessInstanceId(); + } + else if (entity instanceof VariableInstance) { + return ((VariableInstance) entity).getProcessInstanceId(); + } + else if (entity instanceof HistoryEvent){ + return ((HistoryEvent) entity).getProcessInstanceId(); + } + else { + throw new ProcessEngineException("Unable to find process instance id for class " + entity.getClass().getName()); + } + } + +} diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/resources/process-history-activity.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/resources/process-history-activity.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..fda3b73a82434557ca468d410667131167d96903 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/resources/process-history-activity.bpmn @@ -0,0 +1,43 @@ + + + + + + + + + + SequenceFlow_1 + + + SequenceFlow_1 + SequenceFlow_2 + + + + SequenceFlow_2 + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/resources/process-history-custom-variable.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/resources/process-history-custom-variable.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..d5a2bbd0be0e6bfddac0110667153897ce5d90d8 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/resources/process-history-custom-variable.bpmn @@ -0,0 +1,43 @@ + + + + + + + + + + SequenceFlow_1 + + + SequenceFlow_1 + SequenceFlow_2 + + + + SequenceFlow_2 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/resources/process-history-full.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/resources/process-history-full.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..db9236e3596d61d1894b66a341d2eddea9e43c57 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/resources/process-history-full.bpmn @@ -0,0 +1,43 @@ + + + + + + + + + + SequenceFlow_1 + + + SequenceFlow_1 + SequenceFlow_2 + + + + SequenceFlow_2 + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/resources/process-history-none.bpmn b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/resources/process-history-none.bpmn new file mode 100644 index 0000000000000000000000000000000000000000..e57330637a477ee9fd99d7f8037ae94318748811 --- /dev/null +++ b/source_data/pinned/camunda-dmn-examples/commit-6c7f4c4adb4b/process-engine-plugin/custom-history-level/src/main/resources/process-history-none.bpmn @@ -0,0 +1,38 @@ + + + + + SequenceFlow_1 + + + SequenceFlow_1 + SequenceFlow_2 + + + + SequenceFlow_2 + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file