-
Notifications
You must be signed in to change notification settings - Fork 2
Processors
Olena Orobei edited this page Jul 13, 2021
·
2 revisions
Processors are responsible for modifying the resulting data objects. In processors, you can implement any logic to modify, delete, create properties.
| Available processors | Description |
|---|---|
Selected Labels |
Creates new property in data object based on filtered labels |
| Configuration option | Description |
|---|---|
| name | Processor name |
| field | Field that will be added to data object |
| labelRegExp | Regexp to filter labels. If the label matches this regexp it will be added to the results array as a value of field property |
"processors": [
{
"name": "selected-labels",
"field": "components",
"labelRegExp": "(Component:)(.*)"
},
{
"name": "selected-labels",
"field": "partners",
"labelRegExp": "(Partner:)(.*)"
}
]- Create a new
<custom_name>.jsfile under thesrc/processorsfolder. Note: The name of the file will be used as the processor name. - Provide configuration for custom processor