-
Notifications
You must be signed in to change notification settings - Fork 39
/
config.js
119 lines (109 loc) · 4.18 KB
/
config.js
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
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
var Config = new function() {
//------------------------------------------------------------------------
// NOTE: FULL NFLOW EXPLORER CONFIGURATION DOCUMENTATION IN:
// https://github.com/NitorCreations/nflow/wiki/Explorer-Configuration
//------------------------------------------------------------------------
/**
* Controls how often data is polled from the selected nFlow REST API, when an automatically refreshing
* UI element is displayed (e.g. active executors list)
*/
this.refreshSeconds = 60;
/**
* Defines nFlow API REST API endpoints that Explorer will use. If there's more than one endpoint defined,
* the navigation bar will display a dropdown for endpoint selection and the first defined endpoint
* is selected by default.
*
* Endpoint properties:
* - id: unique technical identifier for the endpoint, can be arbitrary string (required)
* - title: string shown in the endpoint selection dropdown (required)
* - apiUrl: nFlow REST API base URL (required)
* - docUrl: Swagger UI URL for nFlow REST API (optional)
*/
this.nflowEndpoints = [
{
id: 'nflow.io',
title: 'nflow.io demo deployment',
apiUrl: 'http://localhost:3000/nflow/api',
docUrl: 'http://localhost:3000/nflow/ui/doc/'
},
];
/**
* Generate custom content for workflow definition details page.
* Optional function that returns either a string or a Promise
* that resolves to a string. The string is added to the page DOM.
* See customInstanceContent for example.
*/
this.customDefinitionContent = function(definition) {
return null;
};
/**
* Generate custom content for workflow instance details page.
* Optional function that returns either a string or a Promise
* that resolves to a string. The string is added to the page DOM.
*
* The intended purpose is:
* - to create links to external, which contain additional data about the workflow.
* e.g.
* ```
* return '<a href="https://cms.service.com/content/' + workflow.businessKey + '">Open CMS</a>'
* ```
* - fetch additional data from external systems and display it in the in nFlow Explorer UI:
* ```
* return fetch('https://api.service.com/content/' + workflow.businessKey)
* .then(result => {
* return result.json()
* .then(data => data.contentTitle)
* })
* ```
*/
this.customInstanceContent = function(definition, workflow, parentWorkflow, childWorkflows) {
return null;
};
// Replaces HTML page title by given string
this.htmlTitle = undefined;
// Replaces nFlow text in header by image in given location
this.nflowLogoFile = undefined;
// Replaces nFlow text in header by given text (nflowLogoFile takes precedence, if it is defined)
this.nflowLogoTitle = undefined;
/**
* Customizes columns shown in workflow instance search as visible, for example following shows workflow id
* and type (which are always first columns by default) followed by business key, state variable "cron" and
* next activation.
*
* Supported fields: parentWorkflowId, state, stateText, status, businessKey, externalId, retries,
* started, created, modified, nextActivation, priority, stateVariables.<stateVariableName>
*
* Supported types for state variables: undefined (rendered as string), timestamp
*
* this.searchResultColumns = [
* {
* field: 'businessKey',
* label: 'Business key'
* },
* {
* field: 'stateVariables.cron',
* label: 'CRON'
* },
* {
* field: 'nextActivation',
* label: 'Next activation',
* type: 'timestamp'
* }
* ]
*/
this.searchResultColumns = undefined;
/**
* Microsoft Authentication Library for JavaScript configuration. For more details, see:
* https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/master/lib/msal-browser/docs/configuration.md
* this.msalConfig = {
* auth: {
* authority: "https://login.microsoftonline.com/ENTER_YOUR_TENANT_ID",
* clientId: "ENTER_YOUR_APPLICATION_ID"
* },
* cache: {
* cacheLocation: "localStorage"
* }
* };
*/
this.msalConfig = undefined;
};