diff --git a/.gitignore b/.gitignore
index 92d2409..e1a7c03 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+
# Output of source code compilation.
# For example Bonita includes helper Groovy classes such as BonitaUsers (with for example getProcessInstanceInitiator method).
# Sources (e.g. BonitaUsers.groovy) are located in src-providedGroovy folder and build result (e.g. BonitaUsers.class) is located in bin folder.
@@ -73,4 +74,14 @@
target/
# Macos
-.DS_Store
\ No newline at end of file
+.DS_Store
+
+
+bin
+/template
+/process_configurations
+node/
+node_modules/
+/web_fragments/.metadata
+/web_fragments/*/*.js
+!/web_widgets/*/*.ctrl.js
\ No newline at end of file
diff --git a/.project b/.project
index 863b3e4..ef82a78 100644
--- a/.project
+++ b/.project
@@ -1,41 +1,25 @@
- MyProject
- 7.10.0
+ getting-started-tutorial
+ 7.13.0
- org.eclipse.xtext.ui.shared.xtextBuilder
-
-
-
-
- org.eclipse.pde.SchemaBuilder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
- org.eclipse.pde.ManifestBuilder
+ org.eclipse.jdt.core.javabuilder
- org.eclipse.jdt.core.javabuilder
+ org.eclipse.m2e.core.maven2Builder
org.bonitasoft.studio.common.repository.bonitaNature
- org.eclipse.xtext.ui.shared.xtextNature
org.eclipse.jdt.core.javanature
- org.eclipse.pde.PluginNature
org.eclipse.jdt.groovy.core.groovyNature
+ org.eclipse.m2e.core.maven2Nature
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 5f9f83f..6d2e939 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -15,18 +15,18 @@ Bonita is a powerful BPM-based application platform for building highly engaging
## Pull requests
-Each minor version of Bonita has its own Git branch to manage its related documentation. (Minor version means X.Y, for example 7.4 or 7.5).
-For instance, the **7.4** branch is where you have to open pull requests when your contribution applies to all 7.4 versions of Bonita.
+Each minor version of Bonita has its own Git branch to manage its related documentation. (Minor version means X.Y, for example 7.11 or 2021.2).
+For instance, the **2021.2** branch is where you have to open pull requests when your contribution applies to all 2021.2 versions of Bonita.
A branch should be name in kebab case prefixed by the type of the feature the branch has been created for (feat, fix, style, tr, chore, howto,...).
For instance, for a branch fixing a typo in the User REST API, its name should be `fix/user-delete-rest-api-typo`.
If your contribution applies to multiple minor versions of Bonita, then open a pull request on the lowest applicable version branch. Then add all applicable minor versions in your pull request comment and we will do the rest :-)
-Example: Your contribution applies to versions 7.4 and 7.5. Therefore submit your pull request on branch 7.4 with a comment like:
+Example: Your contribution applies to versions 7.11 and 2021.1. Therefore submit your pull request on branch 7.11 with a comment like:
```
My awesome contribution to Bonita documentation.
-Versions: 7.4, 7.5
+Versions: 7.11, 2021.1
```
Ideally, a pull request, at first, should contain a single commit containing the changes you want to suggest. Other commits may be added after reviews.
@@ -93,18 +93,18 @@ Please provide links to any relevant tickets, articles or other resources if ava
## How to update an existing page?
-In this case, edit the appropriate _.md_ file and the build process will do the rest.
+In this case, edit the appropriate _.adoc_ file and the build process will do the rest.
-Example: To edit the **?page=actors** page in version 7.4, edit the `md/actors.md` file and submit a pull request on **7.4** branch.
+Example: To edit the **?page=actors** page in version 2021.2, edit the `pages/actors.adoc` file and submit a pull request on **2021.2** branch.
## How to add a new page?
### Create a new page
-Checkout a branch from the version you want this page to be available in and create the _.md_ file in the **md** folder.
+Checkout a branch from the version you want this page to be available in and create the _.adoc_ file in the **pages** folder.
-Example: To add a new _Manage form control/validation_ tutorial in 7.4, checkout a new branch from the **7.4** branch and create a new _manage-control-in-forms.md_ file in the **md** folder.
+Example: To add a new _Manage form control/validation_ tutorial in 2021.2, checkout a new branch from the **2021.2** branch and create a new _manage-control-in-forms.adoc_ file in the **pages** folder.
You can check its content once committed on the GitHub site ([Simple view](README.md#simple-view)) or using the web server ([Advanced view](README.md#advanced-view)).
@@ -113,24 +113,24 @@ You can check its content once committed on the GitHub site ([Simple view](READM
Your new page is not yet referenced in documentation site's taxonomy. So you will not be able to find your new page in the navigation tree unless you know the URL.
Therefore you need to add your new page to the taxonomy to be able to find it the navigation tree.
-The taxonomy is created from the `taxonomy.md` file.
-In our case, we also want to add a _Howto_ section in the taxonomy tree. So we first create a new item inside the `taxonomy.md`. Then we create a entry point for our new tutorial inside the _Howto_ section:
+The taxonomy is created from the `taxonomy.adoc` file.
+In our case, we also want to add a _Howto_ section in the taxonomy tree. So we first create a new item inside the `taxonomy.adoc`. Then we create a entry point for our new tutorial inside the _Howto_ section:
- * [Howtos](_howtos.md)
- * [Manage form control/validation](manage-control-in-forms.md)
+ * [Howtos](_how-tos-index.adoc)
+ * [Manage form control/validation](manage-control-in-forms.adoc)
-Note: We need to reference a *_howtos.md* page with the list of items of this section. However **you don't need to create the *_howtos.md* file** as it is automatically generated at build time.
+Note: We need to reference a *_how-tosindex.adoc* page with the list of items of this section. However **you don't need to create the *_how-tos-index.adoc* file** as it is automatically generated at build time.
-Now starting from the visualization of the _taxonomy.md_ page, we can browse to the _manage-control-in-forms.md_ page.
+Now starting from the visualization of the _taxonomy.adoc_ page, we can browse to the _manage-control-in-forms.adoc_ page.
### Variables
-During markdown to HTML conversion, some predefined variables located in the [variables.json file](scripts/variables.json) are replaced.
+During Asciidoc to HTML conversion, some predefined variables located in the [variables.json file](scripts/variables.json) are replaced.
For instance, the `varVersion` variable matches the current documentation version.
To reference this variable, use the `${varVersion}` notation in _.md_ files.
-#### Markdown titles
+#### AsciiDoc titles
In markdown, lines starting with `#` are converted to `` tags where _x_ is the number of `#` :
* use `#` for `h1` tag
@@ -160,7 +160,7 @@ Current conversion to html is done with `markdown-it` with the [Github-flavored
## How to add images?
-All images must be added to the **md/images** folder.
+All images must be added to the **ROOT/images** folder.
### Images
diff --git a/MIGRATION_NOTES.adoc b/MIGRATION_NOTES.adoc
new file mode 100644
index 0000000..d695df6
--- /dev/null
+++ b/MIGRATION_NOTES.adoc
@@ -0,0 +1,22 @@
+== Migration notes (September 1, 2021 at 10:41:46 AM CEST)
+
+=== Updates
+
+* `bonita.runtime.version` has been updated from `7.13.0-SNAPSHOT` to `7.13.0.beta-02`.
+
+== Migration notes (September 1, 2021 at 10:09:11 AM CEST)
+
+=== Additions
+
+* Bonita projects are now Maven projects and rely on the https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html[Maven dependency mechanism] to manage their dependencies. Check the documentation for more information about https://www.bonitasoft.com/bos_redirect.php?bos_redirect_id=727&bos_redirect_major_version=7.13&bos_redirect_minor_version=0&bos_redirect_product=bos[Project composition].
+
+=== Updates
+
+* Groovy version has been updated from `2.4.x` to `3.0.x`
+* Only Java `11` version is now supported. This might impact your existing projet if you were still using Java 8. Some dependencies in your project might be incompatible with the _Java Platform Module System_ introduced in Java 9.
+
+=== Removals
+
+* Existing `pom.xml` has been backed up as `pom.xml.old`. Bonita projects are now Maven project and the `pom.xml` file is *reserved for internal use*.
+* `lib` folder and its content has been removed.
+
diff --git a/README.md b/README.md
index d96019f..6c2750f 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,10 @@
# Getting started: workspace and .bos file
## Overview
-This repository provides the solution for [Bonita getting started](https://documentation.bonitasoft.com/bonita//_getting-started-tutorial).
+This repository provides the solution for [Bonita getting started](https://documentation.bonitasoft.com/bonita/latest/getting-started-index).
## Compatibility
-This example has been built with Bonita 7.10.0 Community Edition.
+This example has been built with Bonita 2021.2 Community Edition.
It is compatible with all Bonita editions (Community and Enterprise).
It should remain compatible with any future releases.
@@ -22,16 +22,18 @@ To import the solution in Bonita Studio:
* Click on **Browse...** button and select _claims-management.bos_ file
* Click on **Import** button
-WARNING: When you import _claims-management.bos_ in your Studio, if some artifacts (BDM, diagrams...) with identical names already exsit, Studio will ask you if you want to override them. On Community Edition you might want to do that in a separated installation of Bonita Studio. With Enterprise Edition you probably want to import the bos file content to a new project.
+WARNING: When you import _claims-management.bos_ in your Studio, if some artifacts (BDM, diagrams...) with identical names already exsit, Studio will ask you if you want to override them. To avoid that, you probably want to import the bos file content to a new project.
+{: .note}
-Note: alternatively you can clone this repository in Enterprise Edition using Git integration.
+**NOTE**: alternatively you can clone this repository using Git integration.
+{: .note}
## Deployment
-Click on **File > Deploy** Bonita Studio menu to deploy all artifacts and open the application or the Portal homepage. For more details refer to [Bonita getting started](https://documentation.bonitasoft.com/bonita//_getting-started-tutorial).
+Click on **File > Deploy** Bonita Studio menu to deploy all artifacts and open the Claims management application or the Bonita user home page. For more details refer to [Bonita getting started](https://documentation.bonitasoft.com/bonita/latest/getting-started-index).
## Issues tracker
Use [GitHub issue tracker](https://github.com/Bonitasoft-Community/getting-started-turorial/issues) to report issues.
## Content of the Git repository
-If you follow the [Bonita getting started](https://documentation.bonitasoft.com/bonita//_getting-started-tutorial) you should end up with a workspace just like the content of this Git repository.
+If you follow the [Bonita getting started](https://documentation.bonitasoft.com/bonita/latest/getting-started-index) you should end up with a workspace just like the content of this Git repository.
diff --git a/bdm/bom.xml b/bdm/bom.xml
index e2f8fab..976ae61 100644
--- a/bdm/bom.xml
+++ b/bdm/bom.xml
@@ -1,5 +1,5 @@
-
+
diff --git a/diagrams/ClaimsManagementDiagram-1.0.proc b/diagrams/ClaimsManagementDiagram-1.0.proc
index 9e39322..0e67602 100644
--- a/diagrams/ClaimsManagementDiagram-1.0.proc
+++ b/diagrams/ClaimsManagementDiagram-1.0.proc
@@ -1,6 +1,6 @@
-
-
+
+
@@ -38,13 +38,6 @@
-
-
-
-
-
-
-
@@ -93,8 +86,8 @@
-
-
+
+
@@ -120,9 +113,9 @@
-
-
-
+
+
+
@@ -138,7 +131,7 @@
-
+
@@ -152,6 +145,9 @@
+
+
+
@@ -160,7 +156,7 @@
-
+
@@ -170,8 +166,8 @@
-
-
+
+
@@ -190,23 +186,23 @@
-
+
-
+
-
+
-
+
-
+
@@ -216,7 +212,7 @@
-
+
@@ -262,23 +258,23 @@
-
-
+
+
-
-
+
+
-
+
-
+
-
+
@@ -291,16 +287,16 @@
-
-
+
+
-
+
-
+
@@ -311,14 +307,14 @@
-
-
+
+
-
+
-
+
@@ -339,14 +335,14 @@
-
+
-
+
@@ -354,7 +350,7 @@
-
+
@@ -362,21 +358,21 @@
-
+
-
+
-
+
diff --git a/environements/Production.xml b/environements/Production.xml
new file mode 100644
index 0000000..20b1322
--- /dev/null
+++ b/environements/Production.xml
@@ -0,0 +1,2 @@
+
+
diff --git a/environements/Qualification.xml b/environements/Qualification.xml
new file mode 100644
index 0000000..1926e01
--- /dev/null
+++ b/environements/Qualification.xml
@@ -0,0 +1,2 @@
+
+
diff --git a/lib/bonita-connector-email-1.1.1.jar b/lib/bonita-connector-email-1.1.1.jar
deleted file mode 100644
index e88e459..0000000
Binary files a/lib/bonita-connector-email-1.1.1.jar and /dev/null differ
diff --git a/lib/bonita-connector-email-1.2.1.jar b/lib/bonita-connector-email-1.2.1.jar
deleted file mode 100644
index be95f34..0000000
Binary files a/lib/bonita-connector-email-1.2.1.jar and /dev/null differ
diff --git a/pom.xml b/pom.xml
index ecdb721..646001f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,26 +1,143 @@
-
+
4.0.0
com.bonitasoft.example
getting-started-tutorial
1.2.2-SNAPSHOT
- Getting started tutorial
+ getting-started-tutorial
This project provides the solution for Bonita getting started.
scm:git:https://github.com/Bonitasoft-Community/getting-started-tutorial.git
scm:git:https://github.com/Bonitasoft-Community/getting-started-tutorial.git
https://github.com/Bonitasoft-Community/getting-started-tutorial
- HEAD
- UTF-8
+ 7.13.0
+ 3.0.0-M1
+ 11
+ 0.0.3
+ 11
2.5.3
+ UTF-8
3.2.0
+ UTF-8
3.3.0
+
+
+
+ org.bonitasoft.runtime
+ bonita-runtime-bom
+ ${bonita.runtime.version}
+ pom
+ import
+
+
+
+
+
+ org.bonitasoft.engine
+ bonita-common
+ provided
+
+
+ org.codehaus.groovy
+ groovy
+ provided
+
+
+ org.codehaus.groovy
+ groovy-json
+ provided
+
+
+ org.codehaus.groovy
+ groovy-xml
+ provided
+
+
+ org.codehaus.groovy
+ groovy-nio
+ provided
+
+
+ org.codehaus.groovy
+ groovy-datetime
+ provided
+
+
+ org.codehaus.groovy
+ groovy-dateutil
+ provided
+
+
+ org.codehaus.groovy
+ groovy-sql
+ provided
+
+
+ org.codehaus.groovy
+ groovy-templates
+ provided
+
+
+ org.codehaus.groovy
+ groovy-jsr223
+ provided
+
+
+ org.codehaus.groovy
+ groovy-jmx
+ provided
+
+
+ org.codehaus.groovy
+ groovy-yaml
+ provided
+
+
+ org.codehaus.groovy
+ groovy-servlet
+ provided
+
+
+ com.company.model
+ bdm-client
+ 1.0.0
+ provided
+
+
+ org.bonitasoft.actorfilter
+ bonita-actorfilter-user-manager
+ 1.0.0
+ compile
+
+
+ org.bonitasoft.connectors
+ bonita-connector-email
+ 1.3.0
+ compile
+
+
+ org.bonitasoft.actorfilter
+ bonita-actorfilter-initiator
+ 1.0.0
+ compile
+
+
+
+ maven-install-plugin
+ ${maven-install-plugin.version}
+
+
+ org.bonitasoft.maven
+ bonita-project-maven-plugin
+ ${bonita-project-maven-plugin.version}
+
org.codehaus.mojo
build-helper-maven-plugin
diff --git a/process_configurations/_H38FQTyAEeqKNtcxTLvuMA.conf b/process_configurations/_H38FQTyAEeqKNtcxTLvuMA.conf
index 1291a0d..6c81196 100644
--- a/process_configurations/_H38FQTyAEeqKNtcxTLvuMA.conf
+++ b/process_configurations/_H38FQTyAEeqKNtcxTLvuMA.conf
@@ -1,5 +1,5 @@
-
+
@@ -26,8 +26,20 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/web_page/caseoverview/assets/css/style.css b/web_page/caseoverview/assets/css/style.css
index 66ea4fb..11ea8b4 100644
--- a/web_page/caseoverview/assets/css/style.css
+++ b/web_page/caseoverview/assets/css/style.css
@@ -18,7 +18,7 @@ input[type='number'].ng-invalid.ng-dirty, input[type='password'].ng-invalid.ng-d
/* Add a red star after required inputs */
.control-label--required:after {
- content: "*";
+ content: " *";
color: #C00;
}
.btn-invalid{
diff --git a/web_page/caseoverview/caseoverview.json b/web_page/caseoverview/caseoverview.json
index 55ecd8d..b4aea79 100644
--- a/web_page/caseoverview/caseoverview.json
+++ b/web_page/caseoverview/caseoverview.json
@@ -1,9 +1,9 @@
{
- "designerVersion" : "1.10.18",
- "previousDesignerVersion" : "1.9.24",
+ "modelVersion" : "2.2",
+ "previousArtifactVersion" : "1.10.18",
"id" : "caseoverview",
"name" : "caseoverview",
- "lastUpdate" : 1579619777948,
+ "lastUpdate" : 1632128362837,
"rows" : [
[
{
diff --git a/web_page/claimsList/assets/css/style.css b/web_page/claimsList/assets/css/style.css
index f6d3dad..b46df17 100644
--- a/web_page/claimsList/assets/css/style.css
+++ b/web_page/claimsList/assets/css/style.css
@@ -18,7 +18,7 @@ input[type='number'].ng-invalid.ng-dirty, input[type='password'].ng-invalid.ng-d
/* Add a red star after required inputs */
.control-label--required:after {
- content: "*";
+ content: " *";
color: #C00;
}
.btn-invalid{
diff --git a/web_page/claimsList/claimsList.json b/web_page/claimsList/claimsList.json
index 232b4c5..67b72a3 100644
--- a/web_page/claimsList/claimsList.json
+++ b/web_page/claimsList/claimsList.json
@@ -1,8 +1,9 @@
{
- "designerVersion" : "1.10.34",
+ "modelVersion" : "2.2",
+ "previousArtifactVersion" : "1.10.34",
"id" : "claimsList",
"name" : "claimsList",
- "lastUpdate" : 1580288612483,
+ "lastUpdate" : 1632128364031,
"rows" : [
[
{
@@ -80,7 +81,7 @@
"claims" : {
"type" : "businessdata",
"value" : [
- "{\"displayValue\":\"find [com.company.model.Claim]\",\"businessObjectName\":\"Claim\",\"query\":{\"name\":\"find\",\"displayName\":\"find\"},\"id\":\"com_company_model_Claim\",\"qualifiedName\":\"com.company.model.Claim\",\"filters\":[],\"pagination\":{\"p\":0,\"c\":10}}"
+ "{\"displayValue\":\"find [com.company.model.Claim]\",\"businessObjectName\":\"Claim\",\"query\":{\"name\":\"find\",\"displayName\":\"find\"},\"id\":\"com.company.model.Claim\",\"filters\":[],\"pagination\":{\"p\":\"0\",\"c\":\"10\"}}"
],
"exposed" : false
}
diff --git a/web_page/dealWithUnsatisfiedForm/assets/css/style.css b/web_page/dealWithUnsatisfiedForm/assets/css/style.css
index f6d3dad..b46df17 100644
--- a/web_page/dealWithUnsatisfiedForm/assets/css/style.css
+++ b/web_page/dealWithUnsatisfiedForm/assets/css/style.css
@@ -18,7 +18,7 @@ input[type='number'].ng-invalid.ng-dirty, input[type='password'].ng-invalid.ng-d
/* Add a red star after required inputs */
.control-label--required:after {
- content: "*";
+ content: " *";
color: #C00;
}
.btn-invalid{
diff --git a/web_page/dealWithUnsatisfiedForm/dealWithUnsatisfiedForm.json b/web_page/dealWithUnsatisfiedForm/dealWithUnsatisfiedForm.json
index 8901ed2..92dccf8 100644
--- a/web_page/dealWithUnsatisfiedForm/dealWithUnsatisfiedForm.json
+++ b/web_page/dealWithUnsatisfiedForm/dealWithUnsatisfiedForm.json
@@ -1,9 +1,9 @@
{
- "designerVersion" : "1.10.18",
- "previousDesignerVersion" : "1.9.57",
+ "modelVersion" : "2.2",
+ "previousArtifactVersion" : "1.10.18",
"id" : "dealWithUnsatisfiedForm",
"name" : "dealWithUnsatisfiedForm",
- "lastUpdate" : 1579619777929,
+ "lastUpdate" : 1632375660948,
"rows" : [
[
{
diff --git a/web_page/readAnswerAndRateItForm/assets/css/style.css b/web_page/readAnswerAndRateItForm/assets/css/style.css
index f6d3dad..b46df17 100644
--- a/web_page/readAnswerAndRateItForm/assets/css/style.css
+++ b/web_page/readAnswerAndRateItForm/assets/css/style.css
@@ -18,7 +18,7 @@ input[type='number'].ng-invalid.ng-dirty, input[type='password'].ng-invalid.ng-d
/* Add a red star after required inputs */
.control-label--required:after {
- content: "*";
+ content: " *";
color: #C00;
}
.btn-invalid{
diff --git a/web_page/readAnswerAndRateItForm/readAnswerAndRateItForm.json b/web_page/readAnswerAndRateItForm/readAnswerAndRateItForm.json
index 7ec9614..f8f4883 100644
--- a/web_page/readAnswerAndRateItForm/readAnswerAndRateItForm.json
+++ b/web_page/readAnswerAndRateItForm/readAnswerAndRateItForm.json
@@ -1,8 +1,9 @@
{
- "designerVersion" : "1.10.34",
+ "modelVersion" : "2.2",
+ "previousArtifactVersion" : "1.10.34",
"id" : "readAnswerAndRateItForm",
"name" : "readAnswerAndRateItForm",
- "lastUpdate" : 1580231476180,
+ "lastUpdate" : 1632128361117,
"rows" : [
[
{
diff --git a/web_page/reviewAndAnswerForm/assets/css/style.css b/web_page/reviewAndAnswerForm/assets/css/style.css
index f6d3dad..b46df17 100644
--- a/web_page/reviewAndAnswerForm/assets/css/style.css
+++ b/web_page/reviewAndAnswerForm/assets/css/style.css
@@ -18,7 +18,7 @@ input[type='number'].ng-invalid.ng-dirty, input[type='password'].ng-invalid.ng-d
/* Add a red star after required inputs */
.control-label--required:after {
- content: "*";
+ content: " *";
color: #C00;
}
.btn-invalid{
diff --git a/web_page/reviewAndAnswerForm/reviewAndAnswerForm.json b/web_page/reviewAndAnswerForm/reviewAndAnswerForm.json
index 562c5ba..51e3dc8 100644
--- a/web_page/reviewAndAnswerForm/reviewAndAnswerForm.json
+++ b/web_page/reviewAndAnswerForm/reviewAndAnswerForm.json
@@ -1,8 +1,9 @@
{
- "designerVersion" : "1.10.34",
+ "modelVersion" : "2.2",
+ "previousArtifactVersion" : "1.10.34",
"id" : "reviewAndAnswerForm",
"name" : "reviewAndAnswerForm",
- "lastUpdate" : 1580231451337,
+ "lastUpdate" : 1632128361667,
"rows" : [
[
{
diff --git a/web_page/submitClaimForm/assets/css/style.css b/web_page/submitClaimForm/assets/css/style.css
index f6d3dad..b46df17 100644
--- a/web_page/submitClaimForm/assets/css/style.css
+++ b/web_page/submitClaimForm/assets/css/style.css
@@ -18,7 +18,7 @@ input[type='number'].ng-invalid.ng-dirty, input[type='password'].ng-invalid.ng-d
/* Add a red star after required inputs */
.control-label--required:after {
- content: "*";
+ content: " *";
color: #C00;
}
.btn-invalid{
diff --git a/web_page/submitClaimForm/submitClaimForm.json b/web_page/submitClaimForm/submitClaimForm.json
index 683f740..86b6baf 100644
--- a/web_page/submitClaimForm/submitClaimForm.json
+++ b/web_page/submitClaimForm/submitClaimForm.json
@@ -1,8 +1,9 @@
{
- "designerVersion" : "1.10.34",
+ "modelVersion" : "2.2",
+ "previousArtifactVersion" : "1.10.34",
"id" : "submitClaimForm",
"name" : "submitClaimForm",
- "lastUpdate" : 1580219996446,
+ "lastUpdate" : 1632128361876,
"rows" : [
[
{
diff --git a/web_widgets/timelineWidget/timelineWidget.ctrl.js b/web_widgets/timelineWidget/timelineWidget.ctrl.js
new file mode 100644
index 0000000..8fdc9a4
--- /dev/null
+++ b/web_widgets/timelineWidget/timelineWidget.ctrl.js
@@ -0,0 +1,65 @@
+/**
+ * The controller is a JavaScript function that augments the AngularJS scope and exposes functions that can be used in the custom widget template
+ *
+ * Custom widget properties defined on the right can be used as variables in a controller with $scope.properties
+ * To use AngularJS standard services, you must declare them in the main function arguments.
+ *
+ * You can leave the controller empty if you do not need it.
+ */
+function ($scope) {
+
+ /**
+ * new Date in IE11 must be receive string with ISO8601 format. This formatting was use for IE.
+ * (link: https://stackoverflow.com/a/44314573)
+ */
+ $scope.formatDate = function(mydate){
+ return new Date(mydate.replace(/^(.*-[0-9][0-9])(\ )([0-9][0-9]\:.*$)/, '$1T$3')).getTime();
+ }
+
+
+ $scope.buildEventTitle = function(event) {
+ return $scope.$eval($scope.properties.eventsTitleExpression, {"event": event});
+ };
+
+ $scope.buildEventTime = function(event) {
+ return $scope.$eval($scope.properties.eventsTimeExpression, {"event": event});
+ };
+
+ $scope.buildEventAuthor = function(event) {
+ return $scope.$eval($scope.properties.eventsAuthorExpression, {"event": event});
+ };
+
+ $scope.buildEventContent = function(event) {
+ return $scope.$eval($scope.properties.eventsContentExpression, {"event": event});
+ };
+
+ $scope.buildEventIcon = function(event) {
+ return $scope.$eval($scope.properties.eventsIconExpression, {"event": event});
+ };
+
+ $scope.buildEventStyle = function(event) {
+ return $scope.$eval($scope.properties.eventsIconStyleExpression, {"event": event});
+ };
+
+
+ // ------------
+ // -- Origin --
+ // ------------
+
+ $scope.buildOriginTitle = function() {
+ return $scope.$eval($scope.properties.originTitleExpression, {"origin": $scope.properties.origin});
+ };
+
+ $scope.buildOriginTime = function() {
+ return $scope.$eval($scope.properties.originTimeExpression, {"origin": $scope.properties.origin});
+ };
+
+ $scope.buildOriginAuthor = function() {
+ return $scope.$eval($scope.properties.originAuthorExpression, {"origin": $scope.properties.origin});
+ };
+
+ $scope.buildOriginContent = function() {
+ return $scope.$eval($scope.properties.originContentExpression, {"origin": $scope.properties.origin});
+ };
+
+}
diff --git a/web_widgets/timelineWidget/timelineWidget.json b/web_widgets/timelineWidget/timelineWidget.json
index 9aef824..5431beb 100644
--- a/web_widgets/timelineWidget/timelineWidget.json
+++ b/web_widgets/timelineWidget/timelineWidget.json
@@ -1,12 +1,6 @@
{
- "designerVersion" : "1.10.12",
- "previousDesignerVersion" : "1.4.18",
- "id" : "timelineWidget",
- "name" : "TIMELINE",
- "lastUpdate" : 1579619777615,
- "template" : "@timelineWidget.tpl.html",
- "controller" : "@timelineWidget.ctrl.js",
- "custom" : true,
+ "modelVersion" : "2.2",
+ "previousArtifactVersion" : "1.10.12",
"properties" : [
{
"label" : "Events",
@@ -116,6 +110,12 @@
"bond" : "expression"
}
],
+ "id" : "timelineWidget",
+ "name" : "TIMELINE",
+ "lastUpdate" : 1632128362687,
+ "template" : "@timelineWidget.tpl.html",
+ "controller" : "@timelineWidget.ctrl.js",
+ "custom" : true,
"assets" : [
{
"name" : "angular-timeline.css",