-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathEngines.js
More file actions
51 lines (45 loc) · 1.41 KB
/
Engines.js
File metadata and controls
51 lines (45 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
/**
* 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 MIT; you may not use this file
* except in compliance with the MIT License.
*/
export const ENGINES = {
PLATFORM: 'Camunda Platform',
CLOUD: 'Camunda Cloud',
FLUXNOVA: 'Fluxnova Platform'
};
export const ENGINE_PROFILES = [
{
executionPlatform: ENGINES.PLATFORM,
executionPlatformVersions: [ '7.23.0', '7.22.0', '7.21.0', '7.20.0', '7.19.0', '7.18.0', '7.17.0', '7.16.0', '7.15.0' ],
latestStable: '7.22.0'
},
{
executionPlatform: ENGINES.CLOUD,
executionPlatformVersions: [ '8.8.0', '8.7.0', '8.6.0', '8.5.0', '8.4.0', '8.3.0', '8.2.0', '8.1.0', '8.0.0' ],
latestStable: '8.6.0'
},
{
executionPlatform: ENGINES.FLUXNOVA,
executionPlatformVersions: [ '1.0.0' ,'2.0.0' ],
latestStable: '2.0.0'
}
];
export const ENGINE_LABELS = {
[ ENGINES.PLATFORM ]: 'Camunda 7',
[ ENGINES.FLUXNOVA ]: 'Fluxnova',
[ ENGINES.CLOUD ]: 'Camunda 8'
};
export function getLatestStable(platform) {
const profile = ENGINE_PROFILES.find(
p => p.executionPlatform === platform
);
if (!profile) {
throw new Error(`no profile for platform <${platform}>`);
}
return profile.latestStable;
}