Skip to main content
Version: 2.0

REGARDS processing plugins

Plugins

Common Process plugins configuration

Configuration parameters are:

NameTypeDefault ValueOptionalDescription
durationForecaststringIn order to detect executions which have silently stopped working, we need an estimation of the duration the execution will take.
Examples: '10s' for 10 seconds, '5min' for 5 minutes, '4h' for 4 hours, '2d' for 2 days ; '10s/m' for 10 seconds per megabyte of input data ; '4h/g' for 4 hours per gigabyte of input data.
addMetadatabooleanfalseDefine if metadata are provided to process.
requiredDataTypesstringRAWDATAYThis parameter allows changing the product files sent as input for executions. By default, only RAWDATA are sent, but changing this parameter to 'RAWDATA,THUMBNAIL,AIP' for instance would provide RAWDATA, THUMBNAIL and AIP files.
scopestringSUBORDERYThis parameter defines how many executions are launched per suborder. The possible values are: SUBORDER, FEATURE. If the value is SUBORDER, there is only one execution per suborder, allowing to group several features in the same execution. If the value is FEATURE, there is one execution per feature in the suborder, allowing to isolate each feature in its own execution context.
cardinalitystringONE_PER_FEATUREYThis parameter defines how many output files are created. The possible values are: ONE_PER_EXECUTION, ONE_PER_FEATURE, `ONE_PER_INPUT_FILE.
maxFeaturesInInputlong0YThis parameter allows to limit the number of features given as input. Must be positive or null. Set to 0 for no limit.
forbidSplitInSubordersbooleanfalseYIf true, all the ordrered products will be processed in the same batch.
warning

It is not recommended to put the maxFeaturesInInput parameter to 0 (no limit) when the parameter forbidSplitInSuborders is activated to avoid any memory overload.

Simple Shell Process Plugin

This plugin allows to launch a shell script through the Processing service.

Configuration parameters are :

NameTypeDefault ValueOptionalDescription
shellScriptstringShell script name to execute or its absolute path.
envVariablesstringYList of environment variables needed by the shell script. Format as KEY=VALUE separated by '&', for instance: KEY1=value1&KEY2=value2
SimpleShellProcessPlugin plugin configuration example
{
"key": "fr.cnes.regards.framework.modules.plugins.domain.PluginConfiguration",
"value": {
"pluginId": "SimpleShellProcessPlugin",
"label": "{label}",
"businessId": "{uniqueIdentifier}",
"version": "1.0.0",
"priorityOrder": 0,
"active": true,
"parameters": [
{
"name": "shellScript",
"type": "STRING",
"value": "{path to a shell}"
},
{
"name": "requiredDataTypes",
"type": "STRING",
"value": "RAWDATA,THUMBNAIL,QUICKLOOK_SD"
},
{
"name": "scope",
"type": "STRING",
"value": "FEATURE"
},
{
"name": "cardinality",
"type": "STRING",
"value": "ONE_PER_EXECUTION"
},
{
"name": "addMetadata",
"type": "BOOLEAN",
"value": true
},
{
"name": "sizeForecast",
"type": "STRING",
"value": "*1"
},
{
"name": "durationForecast",
"type": "STRING",
"value": "5min"
}
]
}
}