Display Message
Allows to display a message in the Actions panel.
Json
Example
json
{
"name": "notification-display-message",
"taskReferenceName": "display_message",
"description": "Send emails",
"type": "SUB_WORKFLOW",
"optional": false,
"inputParameters": {
"request": "${file_transformation_html.output.file}",
"requestLocal": {
"eng": "${file_eng.output.file}",
"fra": "${file_fra.output.file}",
"deu": "${file_deu.output.file}",
"spa": "${file_spa.output.file}"
},
"height": 300
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Definition
Property | Description |
---|---|
name | The name of the task, must be: notification-display-message |
taskReferenceName | The unique name of the task in your job. |
description | The functional description of this task in your job. |
type | Set SUB_WORKFLOW for this task. |
optional | true : the job continues if there is an error on this task. false : the job fails. |
inputParameters | Input parameters of the task. See below |
Inputs
Property | Description |
---|---|
request | A valid input in HTML format. It can reference the output of a previous task, example: ${previous_taskReferenceName.output.file} , or a static file, example: file://assets/file.xml , or a user input, example: ${workflow.input.input_key} . |
requestLocal | Optional An object where keys are ISO languages and values must be a valid |
height | The display height in px. |
Input request
Example
html
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
margin: 0;
padding: 0;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana;
}
.table-display-message {
border-collapse: collapse;
}
.table-display-message th {
border: 1px solid #d9d9d9;
padding: 5px;
}
.table-display-message td {
border: 1px solid #d9d9d9;
padding: 5px;
}
</style>
</head>
<body>
Dans l'export il y a <b>65</b> produits
<table class="table-display-message">
<thead>
<tr>
<th>Total</th>
<th>Statut</th>
<th>Lien</th>
</tr>
</thead>
<tbody>
<tr>
<td>30</td>
<td>Valides</td>
<td><a href="https://app.product-live.com/search">Lien</a></td>
</tr>
<tr>
<td>35</td>
<td>Non valides</td>
<td><a href="https://app.product-live.com/search">Lien</a></td>
</tr>
</tbody>
</table>
</body>
</html>
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
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
Definition
It must be a valid HTML file. See examples. You cannot use javascript to avoid security issues.
Outputs
Property | Description |
---|---|
message | This output must be used in outputParameters to display the message in the Actions panel. |
Limits and additional notes
- You cannot reference assets in assets folder.
- You cannot reference assets on public urls.
- You cannot use javascript within your HTML document.
FAQ
Can I reference assets in the assets folder?
You cannot reference assets in the assets folder.
Can I reference assets on public urls?
You cannot reference assets on public urls.