├── src └── main │ ├── resources │ ├── application.yaml │ ├── images │ │ ├── LafayetteV1.png │ │ ├── LafayetteV2.png │ │ ├── LafayetteV3.png │ │ ├── LafayetteV4.png │ │ └── laffProcessDiagram.png │ ├── static │ │ └── forms │ │ │ ├── preparetrip.form │ │ │ └── GetTaxi.form │ ├── LafayetteV1.bpmn │ ├── LafayetteV2.bpmn │ ├── LafayetteV3.bpmn │ ├── LafayetteV4.bpmn │ └── laffProcessDiagram.bpmn │ └── java │ └── com │ └── example │ └── workflow │ ├── Application.java │ ├── ReserveSeatOnBoat.java │ └── ReserveSeatOnBoatError.java ├── CODE_OF_CONDUCT.MD ├── .gitignore ├── pom.xml ├── README.md └── LICENSE /src/main/resources/application.yaml: -------------------------------------------------------------------------------- 1 | spring.datasource.url: jdbc:h2:file:./camunda-h2-database 2 | 3 | camunda.bpm.admin-user: 4 | id: demo 5 | password: demo -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.MD: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | ### View the [Camunda Code of Conduct](https://camunda.com/events/code-conduct/) and find ways to report violations. 4 | -------------------------------------------------------------------------------- /src/main/resources/images/LafayetteV1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/camunda-community-hub/Camunda-7-Spring-Boot-Tutorial-Lafayette/HEAD/src/main/resources/images/LafayetteV1.png -------------------------------------------------------------------------------- /src/main/resources/images/LafayetteV2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/camunda-community-hub/Camunda-7-Spring-Boot-Tutorial-Lafayette/HEAD/src/main/resources/images/LafayetteV2.png -------------------------------------------------------------------------------- /src/main/resources/images/LafayetteV3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/camunda-community-hub/Camunda-7-Spring-Boot-Tutorial-Lafayette/HEAD/src/main/resources/images/LafayetteV3.png -------------------------------------------------------------------------------- /src/main/resources/images/LafayetteV4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/camunda-community-hub/Camunda-7-Spring-Boot-Tutorial-Lafayette/HEAD/src/main/resources/images/LafayetteV4.png -------------------------------------------------------------------------------- /src/main/resources/images/laffProcessDiagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/camunda-community-hub/Camunda-7-Spring-Boot-Tutorial-Lafayette/HEAD/src/main/resources/images/laffProcessDiagram.png -------------------------------------------------------------------------------- /src/main/java/com/example/workflow/Application.java: -------------------------------------------------------------------------------- 1 | package com.example.workflow; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | 9 | public static void main(String... args) { 10 | SpringApplication.run(Application.class, args); 11 | } 12 | 13 | } -------------------------------------------------------------------------------- /src/main/resources/static/forms/preparetrip.form: -------------------------------------------------------------------------------- 1 | { 2 | "type": "default", 3 | "components": [ 4 | { 5 | "key": "money", 6 | "label": "Pack Cash", 7 | "type": "textfield", 8 | "validate": { 9 | "required": true, 10 | "pattern": "^(?:0|[1-9][0-9]*)\\.[0-9]+$" 11 | }, 12 | "description": "How much cash do you want to bring?" 13 | }, 14 | { 15 | "key": "country", 16 | "label": "Where are you headed to?", 17 | "type": "textfield", 18 | "description": "Country to start a revolution", 19 | "validate": { 20 | "required": true, 21 | "pattern": "America|France" 22 | } 23 | } 24 | ] 25 | } -------------------------------------------------------------------------------- /src/main/resources/static/forms/GetTaxi.form: -------------------------------------------------------------------------------- 1 | { 2 | "type": "default", 3 | "components": [ 4 | { 5 | "key": "money", 6 | "label": "Pack Cash", 7 | "type": "textfield", 8 | "validate": { 9 | "required": true, 10 | "pattern": "^(?:0|[1-9][0-9]*)\\.[0-9]+$" 11 | }, 12 | "description": "How much cash do you want to bring?" 13 | }, 14 | { 15 | "key": "country", 16 | "label": "Where are you headed to?", 17 | "type": "textfield", 18 | "description": "Country to start a revolution", 19 | "validate": { 20 | "required": true, 21 | "pattern": "America|France" 22 | } 23 | }, 24 | { 25 | "key": "taxiCost", 26 | "label": "Enter the price of the taxi", 27 | "type": "textfield", 28 | "validate": { 29 | "pattern": "^(?:0|[1-9][0-9]*)\\.[0-9]+$" 30 | }, 31 | "description": "for tax purposes" 32 | } 33 | ] 34 | } -------------------------------------------------------------------------------- /src/main/java/com/example/workflow/ReserveSeatOnBoat.java: -------------------------------------------------------------------------------- 1 | package com.example.workflow; 2 | 3 | import org.camunda.bpm.engine.delegate.DelegateExecution; 4 | import org.camunda.bpm.engine.delegate.JavaDelegate; 5 | import org.camunda.commons.utils.StringUtil; 6 | 7 | import javax.inject.Named; 8 | 9 | @Named 10 | public class ReserveSeatOnBoat implements JavaDelegate { 11 | 12 | @Override 13 | public void execute(DelegateExecution delegateExecution) throws Exception { 14 | 15 | String money = "0.0"; 16 | String ticketType = "Coach"; 17 | 18 | money = (String) delegateExecution.getVariable("money"); 19 | double moneyDouble = Double.parseDouble(money); 20 | 21 | if (moneyDouble >= 10000) { 22 | ticketType = "First Class"; 23 | } else if (moneyDouble >= 5000) { 24 | ticketType = "Business Class"; 25 | } 26 | 27 | delegateExecution.setVariable("ticketType", ticketType); 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/main/java/com/example/workflow/ReserveSeatOnBoatError.java: -------------------------------------------------------------------------------- 1 | package com.example.workflow; 2 | 3 | import org.camunda.bpm.engine.delegate.BpmnError; 4 | import org.camunda.bpm.engine.delegate.DelegateExecution; 5 | import org.camunda.bpm.engine.delegate.JavaDelegate; 6 | 7 | import javax.inject.Named; 8 | 9 | @Named 10 | public class ReserveSeatOnBoatError implements JavaDelegate { 11 | 12 | @Override 13 | public void execute(DelegateExecution delegateExecution) throws Exception { 14 | 15 | String money = "0.0"; 16 | String ticketType = "Coach"; 17 | 18 | money = (String) delegateExecution.getVariable("money"); 19 | double moneyDouble = Double.parseDouble(money); 20 | 21 | if (moneyDouble >= 10000) { 22 | ticketType = "First Class"; 23 | } else if (moneyDouble >= 5000) { 24 | ticketType = "Business Class"; 25 | } else if (moneyDouble <= 10){ 26 | ticketType = "Stowaway Class"; 27 | throw new BpmnError("Fall_Overboard", "A Cheap ticket has led to a small wave throwing you overboard."); 28 | } 29 | 30 | 31 | 32 | delegateExecution.setVariable("ticketType", ticketType); 33 | 34 | 35 | 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | ############################## 3 | ## Java 4 | ############################## 5 | .mtj.tmp/ 6 | *.class 7 | *.jar 8 | *.war 9 | *.ear 10 | *.nar 11 | *.db 12 | hs_err_pid* 13 | 14 | ############################## 15 | ## Maven 16 | ############################## 17 | target/ 18 | pom.xml.tag 19 | pom.xml.releaseBackup 20 | pom.xml.versionsBackup 21 | pom.xml.next 22 | release.properties 23 | dependency-reduced-pom.xml 24 | buildNumber.properties 25 | .mvn/timing.properties 26 | .mvn/wrapper/maven-wrapper.jar 27 | 28 | ############################## 29 | ## Gradle 30 | ############################## 31 | bin/ 32 | build/ 33 | .gradle 34 | .gradletasknamecache 35 | gradle-app.setting 36 | !gradle-wrapper.jar 37 | 38 | ############################## 39 | ## IntelliJ 40 | ############################## 41 | out/ 42 | .idea/ 43 | .idea_modules/ 44 | *.iml 45 | *.ipr 46 | *.iws 47 | 48 | ############################## 49 | ## Eclipse 50 | ############################## 51 | .settings/ 52 | bin/ 53 | tmp/ 54 | .metadata 55 | .classpath 56 | .project 57 | *.tmp 58 | *.bak 59 | *.swp 60 | *~.nib 61 | local.properties 62 | .loadpath 63 | 64 | ############################## 65 | ## NetBeans 66 | ############################## 67 | nbproject/private/ 68 | build/ 69 | nbbuild/ 70 | dist/ 71 | nbdist/ 72 | nbactions.xml 73 | nb-configuration.xml 74 | 75 | ############################## 76 | ## OS X 77 | ############################## 78 | .DS_Store 79 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 4.0.0 6 | 7 | com.example.workflow 8 | Lafayette 9 | 1.0.0-SNAPSHOT 10 | 11 | 12 | 13 | 14 | org.springframework.boot 15 | spring-boot-dependencies 16 | 2.4.3 17 | pom 18 | import 19 | 20 | 21 | 22 | org.camunda.bpm 23 | camunda-bom 24 | 7.15.0 25 | import 26 | pom 27 | 28 | 29 | 30 | 31 | 32 | 33 | org.camunda.bpm.springboot 34 | camunda-bpm-spring-boot-starter-rest 35 | 7.15.0 36 | 37 | 38 | 39 | org.camunda.bpm.springboot 40 | camunda-bpm-spring-boot-starter-webapp 41 | 7.15.0 42 | 43 | 44 | 45 | org.camunda.bpm 46 | camunda-engine-plugin-spin 47 | 48 | 49 | 50 | org.camunda.spin 51 | camunda-spin-dataformat-all 52 | 53 | 54 | 55 | com.h2database 56 | h2 57 | 58 | 59 | 60 | org.springframework.boot 61 | spring-boot-starter-jdbc 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | org.springframework.boot 70 | spring-boot-maven-plugin 71 | 2.4.3 72 | 73 | 74 | 75 | org.apache.maven.plugins 76 | maven-compiler-plugin 77 | 3.8.1 78 | 79 | 11 80 | 11 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Camunda Platform 7 Spring Boot Tutorial Lafayette 2 | This project is used as part of a video tutorial in order to show how you can use various features of Camunda 7 in a spring boot application. 3 | Be aware that this is specific to Camunda 7 and concepts described here are not compatible with Camunda Platform 8. 4 | 5 | 6 | ![Video Tutorial Badge](https://img.shields.io/badge/Tutorial%20Reference%20Project-Tutorials%20for%20getting%20started%20with%20Camunda-%2338A3E1) 7 | ![Compatible with: Camunda Platform 7](https://img.shields.io/badge/Compatible%20with-Camunda%20Platform%207-26d07c) 8 | 9 | You'll find the tutorial videos by clicking the image below 10 | 11 | [![Camunda Spring Boot Tutorial](http://img.youtube.com/vi/WCznCZxHZ9k/0.jpg)](https://www.youtube.com/watch?v=sgcSm7YneTs&list=PLJG25HlmvsOVssaiPmavxv3htN_dXS3BW&index=1) 12 | 13 | ## What is this all about? 14 | When creating example projects I like to ensure that the examples I use are as close to real world use cases as possible and so in this example we'll be building a process in which we can help one of my favourite historical figures [Gilbert du Motier, Marquis de Lafayette](https://en.wikipedia.org/wiki/Gilbert_du_Motier,_Marquis_de_Lafayette) to do what he does best - get involved in revolutions! 15 | 16 | This is broken up into 4 parts and in the end we're looking a process that will help Lafayette with a more efficient way to ruin things for the French and British monarchy. 17 | 18 | ![process](./src/main/resources/images/laffProcessDiagram.png) 19 | 20 | ## What you will need 21 | * [Java JDK 11](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html) so that you can run the Camunda Platform 22 | * [Camunda Modeler](https://camunda.com/download/modeler/) for building and deploying BPMN Models 23 | * An integrated development environment for Java like [IntelliJ IDEA](https://www.jetbrains.com/idea/download/) 24 | 25 | ## What will you learn? 26 | * How to setup a spring boot project with Camunda 27 | * Understanding the components of the project 28 | * How to create forms and link them to user tasks 29 | * How to write java classes that can be run by Service Tasks 30 | * How to configure an XOR gateway based on process data 31 | * How to configure non-interrupting timer events 32 | * How to trigger and catch BPMN errors thrown from Java Code 33 | 34 | 35 | ### Part One: Lafayette's Departure 36 | Using User tasks and Camunda Forms. 37 | ![LafayetteV1](./src/main/resources/images/LafayetteV1.png) 38 | 39 | 40 | ### Part Two: Lafayette Crosses the Ocean 41 | Using Service Tasks, Java Classes and Gateways. 42 | ![LafayetteV2](./src/main/resources/images/LafayetteV2.png) 43 | 44 | 45 | ## Part Three: Lafayette Writes Home 46 | Using Timers and User Tasks. 47 | ![LafayetteV3](./src/main/resources/images/LafayetteV3.png) 48 | 49 | ## Part Four: Disaster at Sea for Lafayette 50 | Using Java to throw BPMN Error Events. 51 | ![LafayetteV4](./src/main/resources/images/LafayetteV4.png) 52 | -------------------------------------------------------------------------------- /src/main/resources/LafayetteV1.bpmn: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SequenceFlow_1fp17al 6 | 7 | 8 | 9 | Flow_0n6iyo0 10 | 11 | 12 | SequenceFlow_1fp17al 13 | Flow_1oa7qup 14 | 15 | 16 | 17 | 18 | Flow_1oa7qup 19 | Flow_01kd4e8 20 | 21 | 22 | 23 | Flow_01kd4e8 24 | Flow_0n6iyo0 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /src/main/resources/LafayetteV2.bpmn: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SequenceFlow_1fp17al 6 | 7 | 8 | 9 | Flow_0n6iyo0 10 | 11 | 12 | SequenceFlow_1fp17al 13 | Flow_1oa7qup 14 | 15 | 16 | 17 | 18 | Flow_18wwzob 19 | Flow_01kd4e8 20 | 21 | 22 | 23 | Flow_0t6dmwv 24 | Flow_0n6iyo0 25 | 26 | 27 | Flow_1oa7qup 28 | Flow_18wwzob 29 | Flow_0d6971k 30 | 31 | 32 | #{country == 'France'} 33 | 34 | 35 | #{country == 'America'} 36 | 37 | 38 | Flow_01kd4e8 39 | Flow_0288h5s 40 | Flow_0t6dmwv 41 | 42 | 43 | 44 | 45 | Flow_0d6971k 46 | Flow_0288h5s 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | -------------------------------------------------------------------------------- /src/main/resources/LafayetteV3.bpmn: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SequenceFlow_1fp17al 6 | 7 | 8 | 9 | Flow_0n6iyo0 10 | 11 | 12 | SequenceFlow_1fp17al 13 | Flow_1oa7qup 14 | 15 | 16 | 17 | 18 | Flow_18wwzob 19 | Flow_01kd4e8 20 | 21 | 22 | 23 | Flow_0t6dmwv 24 | Flow_0n6iyo0 25 | 26 | 27 | Flow_1oa7qup 28 | Flow_18wwzob 29 | Flow_0d6971k 30 | 31 | 32 | #{country == 'France'} 33 | 34 | 35 | #{country == 'America'} 36 | 37 | 38 | Flow_01kd4e8 39 | Flow_0288h5s 40 | Flow_0t6dmwv 41 | 42 | 43 | 44 | 45 | Flow_0d6971k 46 | Flow_0288h5s 47 | 48 | 49 | Flow_0zso1zl 50 | 51 | R/PT2M 52 | 53 | 54 | 55 | 56 | Flow_1d221b3 57 | 58 | 59 | 60 | Flow_0zso1zl 61 | Flow_1d221b3 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /src/main/resources/LafayetteV4.bpmn: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SequenceFlow_1fp17al 6 | 7 | 8 | 9 | Flow_0n6iyo0 10 | 11 | 12 | SequenceFlow_1fp17al 13 | Flow_1oa7qup 14 | 15 | 16 | 17 | 18 | Flow_18wwzob 19 | Flow_01kd4e8 20 | 21 | 22 | 23 | Flow_0t6dmwv 24 | Flow_0n6iyo0 25 | 26 | 27 | Flow_1oa7qup 28 | Flow_18wwzob 29 | Flow_0d6971k 30 | 31 | 32 | #{country == 'France'} 33 | 34 | 35 | #{country == 'America'} 36 | 37 | 38 | Flow_01kd4e8 39 | Flow_0288h5s 40 | Flow_0t6dmwv 41 | 42 | 43 | 44 | 45 | Flow_0d6971k 46 | Flow_0288h5s 47 | 48 | 49 | Flow_0zso1zl 50 | 51 | R/PT2M 52 | 53 | 54 | 55 | 56 | Flow_1d221b3 57 | 58 | 59 | 60 | Flow_0zso1zl 61 | Flow_1d221b3 62 | 63 | 64 | Flow_0l8b7fy 65 | 66 | 67 | 68 | Flow_0l8b7fy 69 | Flow_0vgyn1j 70 | 71 | 72 | 73 | Flow_0vgyn1j 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | -------------------------------------------------------------------------------- /src/main/resources/laffProcessDiagram.bpmn: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Flow_17qlkln 6 | 7 | 8 | Flow_0n4666j 9 | 10 | 11 | 12 | 13 | Flow_17qlkln 14 | Flow_0oaa3ok 15 | 16 | 17 | 18 | Flow_1rs52zy 19 | Flow_1g6zyf3 20 | 21 | 22 | Flow_0oaa3ok 23 | Flow_1rs52zy 24 | Flow_0jweov1 25 | 26 | 27 | 28 | 29 | Flow_1g6zyf3 30 | Flow_04na0g3 31 | Flow_0wngj9j 32 | 33 | 34 | 35 | 36 | Flow_0jweov1 37 | Flow_04na0g3 38 | 39 | 40 | 41 | Flow_0pvc23l 42 | 43 | 44 | 45 | 46 | Flow_0pvc23l 47 | Flow_01fybcr 48 | 49 | 50 | Flow_01fybcr 51 | 52 | 53 | 54 | Flow_0wngj9j 55 | Flow_0n4666j 56 | 57 | 58 | Flow_1ho0mug 59 | 60 | 61 | 62 | Flow_1ewlkvr 63 | 64 | 65 | 66 | 67 | Flow_1ho0mug 68 | Flow_1ewlkvr 69 | 70 | 71 | Flow_0nxmubi 72 | 73 | 74 | Flow_0nxmubi 75 | Flow_0h9zo1z 76 | 77 | 78 | 79 | Flow_0h9zo1z 80 | Flow_1gbo0wu 81 | 82 | 83 | 84 | Flow_1gbo0wu 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | --------------------------------------------------------------------------------