Skip to content

Commit 1531dcc

Browse files
Ticket #101 : Update configuration
1 parent b67cd63 commit 1531dcc

11 files changed

Lines changed: 156 additions & 9 deletions

2013-06-division-logements.pdf

-121 KB
Binary file not shown.

Formulaire FR annexe 1 PU.pdf

-899 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CaseManagement
22

3-
<img width="100px" src="https://github.com/simpleidserver/CaseManagement/tree/release/1.0.3/logos/logo.png" />
3+
<img width="100px" src="https://raw.githubusercontent.com/simpleidserver/CaseManagement/release/1.0.3/logos/logo.png" />
44

55
CaseManagement is an open source framework enabling any DOTNETCORE applications to host a CMMN / WS-HumanTask or BPMN engine.
66
It supports most of the concepts introduced by CMMN1.1, BPMN2.0.2 and WS-HumanTask.

conf/casemanagement-bpmn.service

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Unit]
2+
Description=BPMN API
3+
After=network.target
4+
5+
[Service]
6+
ExecStart=/usr/bin/dotnet /home/ftpuser/src/build/results/services/BpmnApi/CaseManagement.BPMN.Host.dll --pathBase=/bpmnapi --server.urls="http://*:60007"
7+
KillMode=process
8+
TimeoutStopSec=5s
9+
Restart=always
10+
WorkingDirectory=/home/ftpuser/src/build/results/services/BpmnApi
11+
12+
[Install]
13+
WantedBy=multi-user.target
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[Unit]
2-
Description=Case Management API
2+
Description=CMMN API
33
After=network.target
44

55
[Service]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Unit]
2+
Description=WS-HumanTask API
3+
After=network.target
4+
5+
[Service]
6+
ExecStart=/usr/bin/dotnet /home/ftpuser/src/build/results/services/HumanTaskApi/CaseManagement.HumanTask.Host.dll --pathBase=/humantaskapi --server.urls="http://*:60006"
7+
KillMode=process
8+
TimeoutStopSec=5s
9+
Restart=always
10+
WorkingDirectory=/home/ftpuser/src/build/results/services/HumanTaskApi
11+
12+
[Install]
13+
WantedBy=multi-user.target

conf/casemanagement.nginx

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,31 @@ server {
3333
proxy_read_timeout 90;
3434
proxy_buffer_size 128k;
3535
proxy_buffers 32 256k;
36-
}
36+
}
3737

38+
location /tasklist {
39+
proxy_pass http://localhost:5003;
40+
proxy_set_header Upgrade $http_upgrade;
41+
proxy_set_header Connection keep-alive;
42+
proxy_set_header Host $host;
43+
proxy_pass_header Set-Cookie;
44+
proxy_pass_request_headers on;
45+
proxy_cache_bypass $http_upgrade;
46+
proxy_cookie_domain localhost $host;
47+
proxy_set_header X-Scheme https;
48+
proxy_set_header X-Real-IP $remote_addr;
49+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
50+
proxy_set_header X-Forwarded-Proto $scheme;
51+
proxy_set_header X-URL-SCHEME https;
52+
client_max_body_size 1M;
53+
client_body_buffer_size 4096k;
54+
proxy_connect_timeout 90;
55+
proxy_send_timeout 90;
56+
proxy_read_timeout 90;
57+
proxy_buffer_size 128k;
58+
proxy_buffers 32 256k;
59+
}
60+
3861
location /casemanagementapi {
3962
proxy_pass http://localhost:60005;
4063
proxy_set_header Upgrade $http_upgrade;
@@ -57,4 +80,50 @@ server {
5780
proxy_buffer_size 128k;
5881
proxy_buffers 32 256k;
5982
}
83+
84+
location /humantaskapi {
85+
proxy_pass http://localhost:60006;
86+
proxy_set_header Upgrade $http_upgrade;
87+
proxy_set_header Connection keep-alive;
88+
proxy_set_header Host $host;
89+
proxy_pass_header Set-Cookie;
90+
proxy_pass_request_headers on;
91+
proxy_cache_bypass $http_upgrade;
92+
proxy_cookie_domain localhost $host;
93+
proxy_set_header X-Scheme https;
94+
proxy_set_header X-Real-IP $remote_addr;
95+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
96+
proxy_set_header X-Forwarded-Proto $scheme;
97+
proxy_set_header X-URL-SCHEME https;
98+
client_max_body_size 1M;
99+
client_body_buffer_size 4096k;
100+
proxy_connect_timeout 90;
101+
proxy_send_timeout 90;
102+
proxy_read_timeout 90;
103+
proxy_buffer_size 128k;
104+
proxy_buffers 32 256k;
105+
}
106+
107+
location /bpmnapi {
108+
proxy_pass http://localhost:60007;
109+
proxy_set_header Upgrade $http_upgrade;
110+
proxy_set_header Connection keep-alive;
111+
proxy_set_header Host $host;
112+
proxy_pass_header Set-Cookie;
113+
proxy_pass_request_headers on;
114+
proxy_cache_bypass $http_upgrade;
115+
proxy_cookie_domain localhost $host;
116+
proxy_set_header X-Scheme https;
117+
proxy_set_header X-Real-IP $remote_addr;
118+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
119+
proxy_set_header X-Forwarded-Proto $scheme;
120+
proxy_set_header X-URL-SCHEME https;
121+
client_max_body_size 1M;
122+
client_body_buffer_size 4096k;
123+
proxy_connect_timeout 90;
124+
proxy_send_timeout 90;
125+
proxy_read_timeout 90;
126+
proxy_buffer_size 128k;
127+
proxy_buffers 32 256k;
128+
}
60129
}

conf/tasklisttwebsite.service

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Unit]
2+
Description=TaskList website
3+
After=network.target
4+
5+
[Service]
6+
ExecStart=/usr/bin/dotnet /home/ftpuser/src/build/results/services/TaskListWebsite/CaseManagement.Tasklist.Website.dll --pathBase=/tasklist --server.urls="http://*:5003"
7+
KillMode=process
8+
TimeoutStopSec=5s
9+
Restart=always
10+
WorkingDirectory=/home/ftpuser/src/build/results/services/TaskListWebsite
11+
12+
[Install]
13+
WantedBy=multi-user.target

default.ps1

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ task ci -depends clean, release, local, pack, publish
1919

2020
task publish {
2121
exec { dotnet publish $source_dir\CaseManagement.CMMN.Host\CaseManagement.CMMN.Host.csproj -c $config -o $result_dir\services\CaseManagementApi }
22+
exec { dotnet publish $source_dir\CaseManagement.BPMN.Host\CaseManagement.BPMN.Host.csproj -c $config -o $result_dir\services\BpmnApi }
23+
exec { dotnet publish $source_dir\CCaseManagement.HumanTask.Host\CaseManagement.HumanTask.Host.csproj -c $config -o $result_dir\services\HumanTaskApi }
2224
exec { npm install $source_dir\CaseManagement.Website --prefix $source_dir\CaseManagement.Website }
2325
exec { npm run build-azure --prefix $source_dir\CaseManagement.Website }
2426
exec { dotnet publish $source_dir\CaseManagement.Website -c $config -o $result_dir\services\CaseManagementWebsite }
27+
exec { npm install $source_dir\CaseManagement.Tasklist.Website --prefix $source_dir\CaseManagement.Tasklist.Website }
28+
exec { npm run build-azure --prefix $source_dir\CaseManagement.Tasklist.Website }
29+
exec { dotnet publish $source_dir\CaseManagement.Tasklist.Website -c $config -o $result_dir\services\TaskListWebsite }
2530
}
2631

2732
task clean {
@@ -48,14 +53,31 @@ task compile -depends clean {
4853
}
4954

5055
task pack -depends compile {
56+
exec { dotnet pack $source_dir\CaseManagement.BPMN\CaseManagement.BPMN.csproj -c $config --no-build $versionSuffix --output $result_dir }
57+
exec { dotnet pack $source_dir\CaseManagement.BPMN.AspNetCore\CaseManagement.BPMN.AspNetCore.csproj -c $config --no-build $versionSuffix --output $result_dir }
58+
exec { dotnet pack $source_dir\CaseManagement.BPMN.Common\CaseManagement.BPMN.Common.csproj -c $config --no-build $versionSuffix --output $result_dir }
59+
exec { dotnet pack $source_dir\CaseManagement.BPMN.Persistence.EF\CaseManagement.BPMN.Persistence.EF.csproj -c $config --no-build $versionSuffix --output $result_dir }
60+
exec { dotnet pack $source_dir\CaseManagement.BPMN.Persistence.EF\CaseManagement.BPMN.Persistence.EF.csproj -c $config --no-build $versionSuffix --output $result_dir }
5161
exec { dotnet pack $source_dir\CaseManagement.CMMN\CaseManagement.CMMN.csproj -c $config --no-build $versionSuffix --output $result_dir }
52-
exec { dotnet pack $source_dir\CaseManagement.CMMN.Persistence.EF\CaseManagement.CMMN.Persistence.EF.csproj -c $config --no-build $versionSuffix --output $result_dir }
53-
exec { dotnet pack $source_dir\CaseManagement.CMMN.SqlServer\CaseManagement.CMMN.SqlServer.csproj -c $config --no-build $versionSuffix --output $result_dir }
5462
exec { dotnet pack $source_dir\CaseManagement.CMMN.AspNetCore\CaseManagement.CMMN.AspNetCore.csproj -c $config --no-build $versionSuffix --output $result_dir }
63+
exec { dotnet pack $source_dir\CaseManagement.CMMN.Persistence.EF\CaseManagement.CMMN.Persistence.EF.csproj -c $config --no-build $versionSuffix --output $result_dir }
64+
exec { dotnet pack $source_dir\CaseManagement.Common\CaseManagement.Common.csproj -c $config --no-build $versionSuffix --output $result_dir }
65+
exec { dotnet pack $source_dir\CaseManagement.Common.SqlServer\CaseManagement.Common.SqlServer.csproj -c $config --no-build $versionSuffix --output $result_dir }
66+
exec { dotnet pack $source_dir\CaseManagement.HumanTask\CaseManagement.HumanTask.csproj -c $config --no-build $versionSuffix --output $result_dir }
67+
exec { dotnet pack $source_dir\CaseManagement.HumanTask.AspNetCore\CaseManagement.HumanTask.AspNetCore.csproj -c $config --no-build $versionSuffix --output $result_dir }
68+
exec { dotnet pack $source_dir\CaseManagement.HumanTask.Persistence.EF\CaseManagement.HumanTask.Persistence.EF.csproj -c $config --no-build $versionSuffix --output $result_dir }
5569
}
5670

5771
task test {
58-
Push-Location -Path $base_dir\tests\CaseManagement.CMMN.Tests
72+
Push-Location -Path $base_dir\tests\CaseManagement.BPMN.Acceptance.Tests
73+
74+
try {
75+
exec { & dotnet test -c $config -v n --no-build --no-restore }
76+
} finally {
77+
Pop-Location
78+
}
79+
80+
Push-Location -Path $base_dir\tests\CaseManagement.BPMN.Tests
5981

6082
try {
6183
exec { & dotnet test -c $config -v n --no-build --no-restore }
@@ -70,4 +92,20 @@ task test {
7092
} finally {
7193
Pop-Location
7294
}
95+
96+
Push-Location -Path $base_dir\tests\CaseManagement.CMMN.Tests
97+
98+
try {
99+
exec { & dotnet test -c $config -v n --no-build --no-restore }
100+
} finally {
101+
Pop-Location
102+
}
103+
104+
Push-Location -Path $base_dir\tests\CaseManagement.HumanTasks.Acceptance.Tests
105+
106+
try {
107+
exec { & dotnet test -c $config -v n --no-build --no-restore }
108+
} finally {
109+
Pop-Location
110+
}
73111
}

src/CaseManagement.Tasklist.Website/config/webpack.azure.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const CleanWebpackPlugin = require('clean-webpack-plugin');
99
const FilterWarningsPlugin = require('webpack-filter-warnings-plugin');
1010

1111
const ENV = process.env.ENV = process.env.NODE_ENV = 'azure';
12-
const API_URL = process.env.API_URL = "http://simpleidserver.northeurope.cloudapp.azure.com/casemanagementapi";
12+
const API_URL = process.env.API_URL = "http://simpleidserver.northeurope.cloudapp.azure.com/humantaskapi";
1313
const OPENID_URL = process.env.OPENID_URL = "http://simpleidserver.northeurope.cloudapp.azure.com/openid";
14-
const REDIRECT_URL = process.env.REDIRECT_URL = "http://simpleidserver.northeurope.cloudapp.azure.com/casemanagement";
15-
const BASE_URL = process.env.BASE_URL || '/casemanagement/';
14+
const REDIRECT_URL = process.env.REDIRECT_URL = "http://simpleidserver.northeurope.cloudapp.azure.com/tasklist";
15+
const BASE_URL = process.env.BASE_URL || '/tasklist/';
1616

1717
const ROOT = path.resolve(__dirname, '..');
1818

0 commit comments

Comments
 (0)