Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Camunda to v7.17 #133

Merged
merged 4 commits into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

4 changes: 1 addition & 3 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ The `publish-cws-image` job is the CD component of the workflow, triggered upon
- MariaDB
- Image: mariadb:10.3
- Ports: 3306:3306
- [**checkout**](https://github.com/marketplace/actions/checkout):
- This action checks out the repository under `$GITHUB_WORKSPACE`, so the workflow can access it.
- `lfs` is set to `true`, enabling the download of Git-LFS files. Starting with Camunda 7.16, this is required because the Camunda Platform with Tomcat distribution bundled with CWS exceeds GitHub's file size limit of 100 MB.
- [**checkout**](https://github.com/marketplace/actions/checkout): This action checks out the repository under `$GITHUB_WORKSPACE`, so the workflow can access it.
- Set up JDK 8:
- [**setup-java**](https://github.com/marketplace/actions/setup-java-jdk): This action downloads and sets up a requested version of Java
- Current configuration:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/camunda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
lfs: true

- name: Set up JDK 8
uses: actions/setup-java@v3
Expand Down Expand Up @@ -80,7 +78,7 @@ jobs:

- name: Show CWS Log
run: |
cd dist/console-only/cws/server/apache-tomcat-9.0.52/logs
cd dist/console-only/cws/server/apache-tomcat-9.0.58/logs
ls -al

- name: Set up Google Chrome
Expand Down Expand Up @@ -157,8 +155,6 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
lfs: true

- name: Set up JDK 8
uses: actions/setup-java@v3
Expand Down Expand Up @@ -205,7 +201,7 @@ jobs:

- name: Show CWS Log
run: |
cd dist/console-only/cws/server/apache-tomcat-9.0.52/logs
cd dist/console-only/cws/server/apache-tomcat-9.0.58/logs
ls -al

- name: Set up Google Chrome
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/ldap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
lfs: true

- name: Set up JDK 8
uses: actions/setup-java@v3
Expand Down Expand Up @@ -85,7 +83,7 @@ jobs:

- name: Show CWS Log
run: |
cd dist/console-only/cws/server/apache-tomcat-9.0.52/logs
cd dist/console-only/cws/server/apache-tomcat-9.0.58/logs
ls -al

- name: Set up Google Chrome
Expand Down
1 change: 1 addition & 0 deletions create_server_dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ mkdir -p ${CWS}/{bpmn,config/templates,installer,logs,sql/cws}

print 'Unzipping Camunda into distribution...'
unzip ${INSTALL_DIR}/cws_camunda-bpm-tomcat-${CAMUNDA_VER}.zip -x start-camunda.bat start-camunda.sh -d ${CWS} > ${CWS}/logs/camunda_extract.log 2>&1
unzip ${INSTALL_DIR}/cws_camunda-bpm-tomcat-${CAMUNDA_VER}-lib.zip -d ${CWS}/lib > ${CWS}/logs/camunda_extract.log 2>&1

if [[ $? -gt 0 ]]; then
print "ERROR: failed to unzip Camunda distribution, check ${CWS}/logs/camunda_extract.log for details."
Expand Down
2 changes: 1 addition & 1 deletion cws-adaptation-engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</dependency>

<dependency>
<groupId>org.camunda.bpm.assert</groupId>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-bpm-assert</artifactId>
<exclusions>
<exclusion>
Expand Down
2 changes: 1 addition & 1 deletion cws-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
</dependency>

<dependency>
<groupId>org.camunda.bpm.assert</groupId>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-bpm-assert</artifactId>
<exclusions>
<exclusion>
Expand Down
2 changes: 1 addition & 1 deletion cws-engine-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
</dependency>

<dependency>
<groupId>org.camunda.bpm.assert</groupId>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-bpm-assert</artifactId>
<exclusions>
<exclusion>
Expand Down
2 changes: 1 addition & 1 deletion cws-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</dependency>

<dependency> <!-- FOR TESTING -->
<groupId>org.camunda.bpm.assert</groupId>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-bpm-assert</artifactId>
<exclusions>
<exclusion>
Expand Down
2 changes: 1 addition & 1 deletion cws-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
</dependency>

<dependency>
<groupId>org.camunda.bpm.assert</groupId>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-bpm-assert</artifactId>
<exclusions>
<exclusion>
Expand Down
3 changes: 2 additions & 1 deletion install/camunda_mods/admin/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default {
// http://requirejs.org/docs/api.html#config
deps: ['jquery', 'cws'],
paths: {
// if you have a folder called `custom-ui` (in the `cockpit` folder)
// if you have a folder called `custom-ui` (in the `admin` folder)
// with a file called `scripts.js` in it and defining the `custom-ui` AMD module
'cws': 'cws/scripts'
}
Expand All @@ -49,6 +49,7 @@ export default {
// 'unit': 'day'
// }
// },
'alwaysShowUniqueTaskWorkerMetrics': true,
// 'locales': {
// 'availableLocales': ['en', 'de'],
// 'fallbackLocale': 'en'
Expand Down
10 changes: 5 additions & 5 deletions install/camunda_mods/admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@


<!-- styles -->
<link href="$APP_ROOT/app/admin/styles/styles.css?bust=7.16.0"
<link href="$APP_ROOT/app/admin/styles/styles.css?bust=7.17.0"
rel="stylesheet" />
<link rel="stylesheet"
type="text/css"
href="$APP_ROOT/app/admin/styles/user-styles.css?bust=7.16.0">
href="$APP_ROOT/app/admin/styles/user-styles.css?bust=7.17.0">

<!-- favicon -->
<link rel="shortcut icon"
Expand Down Expand Up @@ -130,7 +130,7 @@

<!-- footer -->
<footer cam-widget-footer
version="v7.16.0"></footer>
version="v7.17.0"></footer>

<script type="application/javascript">
var adminConf = window.camAdminConf = {};
Expand All @@ -156,11 +156,11 @@
window.__require = window.require;
window.define = undefined;
window.require = undefined;
window.bust = '7.16.0';
window.bust = '7.17.0';

requirejs.config({
baseUrl: '$APP_ROOT/app/admin',
urlArgs: 'bust=7.16.0'
urlArgs: 'bust=7.17.0'
});
requirejs(['$APP_ROOT/lib/deps.js'], function () {
requirejs(['$APP_ROOT/app/admin/camunda-admin-bootstrap.js'], function () {});
Expand Down
12 changes: 6 additions & 6 deletions install/camunda_mods/cockpit/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@


<!-- styles -->
<link href="$APP_ROOT/app/cockpit/styles/styles.css?bust=7.16.0"
<link href="$APP_ROOT/app/cockpit/styles/styles.css?bust=7.17.0"
rel="stylesheet" />
<link href="$APP_ROOT/app/cockpit/styles/styles-components.css?bust=7.16.0"
<link href="$APP_ROOT/app/cockpit/styles/styles-components.css?bust=7.17.0"
rel="stylesheet" />
<link rel="stylesheet"
type="text/css"
href="$APP_ROOT/app/cockpit/styles/user-styles.css?bust=7.16.0">
href="$APP_ROOT/app/cockpit/styles/user-styles.css?bust=7.17.0">

<!-- favicon -->
<link rel="shortcut icon"
Expand Down Expand Up @@ -133,7 +133,7 @@

<!-- footer -->
<footer cam-widget-footer
version="v7.16.0"></footer>
version="v7.17.0"></footer>

<script type="application/javascript">
var cockpitConf = window.camCockpitConf = {};
Expand All @@ -159,11 +159,11 @@
window.__require = window.require;
window.define = undefined;
window.require = undefined;
window.bust = '7.16.0';
window.bust = '7.17.0';

requirejs.config({
baseUrl: '$APP_ROOT/app/cockpit',
urlArgs: 'bust=7.16.0'
urlArgs: 'bust=7.17.0'
});
requirejs(['$APP_ROOT/lib/deps.js'], function () {
requirejs(['$APP_ROOT/app/cockpit/camunda-cockpit-bootstrap.js'], function(){});
Expand Down
2 changes: 1 addition & 1 deletion install/camunda_mods/tasklist/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default {
// http://requirejs.org/docs/api.html#config
deps: ['jquery', 'cws'],
paths: {
// if you have a folder called `custom-ui` (in the `cockpit` folder)
// if you have a folder called `custom-ui` (in the `scripts` folder)
// with a file called `scripts.js` in it and defining the `custom-ui` AMD module
'cws': 'cws/scripts'
}
Expand Down
10 changes: 5 additions & 5 deletions install/camunda_mods/tasklist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

<link rel="stylesheet"
type="text/css"
href="$APP_ROOT/app/tasklist/styles/styles.css?bust=7.16.0">
href="$APP_ROOT/app/tasklist/styles/styles.css?bust=7.17.0">
<link rel="stylesheet"
type="text/css"
href="$APP_ROOT/app/tasklist/styles/user-styles.css?bust=7.16.0">
href="$APP_ROOT/app/tasklist/styles/user-styles.css?bust=7.17.0">

<!-- favicon -->
<link rel="shortcut icon"
Expand Down Expand Up @@ -108,7 +108,7 @@

<!-- # page-footer -->
<footer cam-widget-footer
version="v7.16.0"></footer>
version="v7.17.0"></footer>


<script type="text/javascript">
Expand Down Expand Up @@ -142,11 +142,11 @@
window.__require = window.require;
window.define = undefined;
window.require = undefined;
window.bust = '7.16.0';
window.bust = '7.17.0';

requirejs.config({
baseUrl: '$APP_ROOT/app/tasklist',
urlArgs: 'bust=7.16.0'
urlArgs: 'bust=7.17.0'
});
requirejs(['$APP_ROOT/lib/deps.js'], function () {
requirejs(['$APP_ROOT/app/tasklist/camunda-tasklist-bootstrap.js'], function () {});
Expand Down
14 changes: 14 additions & 0 deletions install/camunda_mods/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,20 @@
<url-pattern>/*</url-pattern>
</filter-mapping>

<!-- Session Cookie filter -->
<filter>
<filter-name>SessionCookieFilter</filter-name>
<filter-class>org.camunda.bpm.webapp.impl.security.filter.SessionCookieFilter</filter-class>
<!--<init-param>-->
<!--<param-name>enableSecureCookie</param-name>-->
<!--<param-value>true</param-value>-->
<!--</init-param>-->
</filter>
<filter-mapping>
<filter-name>SessionCookieFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

<!-- HTTP Header Security Filter -->
<filter>
<filter-name>HttpHeaderSecurity</filter-name>
Expand Down
2 changes: 1 addition & 1 deletion install/camunda_mods/welcome/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default {
// http://requirejs.org/docs/api.html#config
deps: ['jquery', 'cws'],
paths: {
// if you have a folder called `custom-ui` (in the `cockpit` folder)
// if you have a folder called `custom-ui` (in the `scripts` folder)
// with a file called `scripts.js` in it and defining the `custom-ui` AMD module
'cws': 'cws/scripts'
}
Expand Down
2 changes: 1 addition & 1 deletion install/cws-ui/documentation.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<td><a href="https://github.com/NASA-AMMOS/common-workflow-service/wiki" target="_blank">CWS Wiki</a></td>
</tr>
<tr>
<td><a href="https://docs.camunda.org/manual/7.16/reference/bpmn20/" target="_blank">Camunda BPMN 2.0 Implementation Reference</a></td>
<td><a href="https://docs.camunda.org/manual/7.17/reference/bpmn20/" target="_blank">Camunda BPMN 2.0 Implementation Reference</a></td>
</tr>
<tr>
<td><a href="http://www.bpmnquickguide.com/quickguide/index.html" target="_blank">BP Incubator BPMN Quick Guide</a></td>
Expand Down
2 changes: 1 addition & 1 deletion install/cws-ui/snippets.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<br/>
<b>NOTE:</b> <b>For each external code library (JAR)</b> (referenced by Java import statements) <b>put the JAR in the following place</b>:
<ul>
<li>CWS Console Server: <pre>cws/server/apache-tomcat-9.0.52/lib</pre></li>
<li>CWS Console Server: <pre>cws/server/apache-tomcat-9.0.58/lib</pre></li>
</ul>
<br/>
</form>
Expand Down
3 changes: 0 additions & 3 deletions install/cws_camunda-bpm-tomcat-7.16.0.zip

This file was deleted.

Binary file added install/cws_camunda-bpm-tomcat-7.17.0-lib.zip
Binary file not shown.
Binary file added install/cws_camunda-bpm-tomcat-7.17.0.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions install/docker/console-db-es-ls-kibana/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ services:
retries: 12
volumes:
- ./config.properties:/home/cws_user/config.properties:ro
- logs-volume:/home/cws_user/cws/server/apache-tomcat-9.0.52/logs
- logs-volume:/home/cws_user/cws/server/apache-tomcat-9.0.58/logs
cws-worker:
container_name: cws-worker1
labels:
Expand All @@ -145,7 +145,7 @@ services:
- ES_PORT=9200
volumes:
- ./worker-config.properties:/home/cws_user/config.properties:ro
- logs-volume:/home/cws_user/cws/server/apache-tomcat-9.0.52/logs
- logs-volume:/home/cws_user/cws/server/apache-tomcat-9.0.58/logs

volumes:
logs-volume:
Expand Down
4 changes: 2 additions & 2 deletions install/docker/cws-image/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
javac -cp joda-time-2.1.jar getTime.java
java -cp .:joda-time-2.1.jar getTime

ls /home/cws_user/cws/server/apache-tomcat-9.0.52/logs
ls /home/cws_user/cws/server/apache-tomcat-9.0.58/logs

# Clear out any previous logs before starting (Note: Previous logs will cause CWS not to start)
rm -rf /home/cws_user/cws/server/apache-tomcat-9.0.52/logs/*
rm -rf /home/cws_user/cws/server/apache-tomcat-9.0.58/logs/*

cd cws
./configure.sh ../config.properties Y
Expand Down
2 changes: 1 addition & 1 deletion install/docker/worker-ls/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ services:
- ES_PORT=9200
volumes:
- ./config.properties:/home/cws_user/config.properties:ro
- logs-volume:/home/cws_user/cws/server/apache-tomcat-9.0.52/logs
- logs-volume:/home/cws_user/cws/server/apache-tomcat-9.0.58/logs

volumes:
logs-volume:
Expand Down
Loading