-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.yaml
More file actions
90 lines (85 loc) · 3.14 KB
/
Copy pathplugin.yaml
File metadata and controls
90 lines (85 loc) · 3.14 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
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
# Common definitions using anchors, merges and aliases
# For more information, see:
# http://blogs.perl.org/users/tinita/2019/05/reusing-data-with-yaml-anchors-aliases-and-merge-keys.html
# Common ports
commonIn: &commonIn
- slug: input
name: {en: Input data, pt: Dados de entrada}
description: {en: Input data, pt: Dados de entrada}
type: INPUT
interfaces: [1] # 1 is Data Interface in Lemonade
commonOut: &commonOut
- slug: output
name: {en: Output data, pt: Dados de saída}
description: {en: Output data, pt: Dados de saída}
type: OUTPUT
interfaces: [1]
# Common attributes
attribute: &attribute
- name: attribute
label: {en: Attribute, pt: Atributo}
help: {en: Attribute used as input, pt: Atributo usado como entrada}
suggested-widget: attribute-selector
required: true
type: TEXT
output: &output
- name: output
label: {en: New attribute, pt: Novo atributo}
help: {en: Attribute used as output, pt: Atributo usado como saída}
required: true
suggested-widget: text
type: TEXT
# Operation categories: where in toolbox tree operation is
# going to be displayed
dataManipulationByColumn: &dataManipulationByColumn
[7, 30]
commonForms: &commonForms
[41, 110]
plugin:
name: Demo plugin
description: A simple demo used to test Lemonade plugin
uuid: e8bc429d-16fa-4840-bced-838ace93fa46
version: '1.0'
copyright: (c) 2020 - Speed Labs/DCC/UFMG
url: https://github.com/dccspeed/demo-plugin.git
provides:
platform:
name: {en: Plugin Demo, pt: Demonstração plugin}
description: {en: Plugin Demo, pt: Demonstração plugin}
slug: demo
compiler:
- name: simpledemo.transpiler
executor:
- name: simpledemo.minion
imported-operations: [18]
operations:
- slug: demo::upper_case
name: {en: Upper case, pt: Caixa alta}
description: {en: Convert an attribute to upper case, pt: Converte um atributo para letras maiúsculas}
ports:
- << : *commonIn
- << : *commonOut
fields:
- << : *attribute
- << : *output
imported-forms:
*commonForms
scripts:
- copyInputAddField(task, 'output', false, 'output')
categories:
*dataManipulationByColumn
- slug: demo::lower_case
name: {en: Lower case, pt: Caixa baixa}
description: {en: Convert an attribute to lower case, pt: Converte um atributo para letras minúsculas}
ports:
- << : *commonIn
- << : *commonOut
fields:
- << : *attribute
- << : *output
imported-forms:
*commonForms
scripts:
- copyInputAddField(task, 'output', false, 'output')
categories:
*dataManipulationByColumn