diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a301787..ddf111c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -133,6 +133,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `apply_polygon` - `fit_curve` - `predict_curve` + - `run_process` - `ard_normalized_radar_backscatter` and `sar_backscatter`: Added `options` parameter - `array_find`: Added parameter `reverse`. [#269](https://github.com/Open-EO/openeo-processes/issues/269) - `load_result`: diff --git a/meta/subtype-schemas.json b/meta/subtype-schemas.json index 347df234..b09528fa 100644 --- a/meta/subtype-schemas.json +++ b/meta/subtype-schemas.json @@ -271,6 +271,18 @@ } } }, + "process-id": { + "type": "string", + "subtype": "process-id", + "title": "Process", + "description": "A process, referenced by id without namespace" + }, + "process-namespace": { + "type": "string", + "subtype": "process-namespace", + "title": "Process namespace", + "description": "The namespace for the process." + }, "raster-cube": { "type": "object", "subtype": "raster-cube", diff --git a/proposals/run_process.json b/proposals/run_process.json new file mode 100644 index 00000000..daa4a898 --- /dev/null +++ b/proposals/run_process.json @@ -0,0 +1,43 @@ +{ + "id": "run_process", + "summary": "Run a process", + "description": "Executes a process. This is useful for user-defined processes which should be able to execute different processes based on the user input.", + "categories": [ + "development" + ], + "experimental": true, + "parameters": [ + { + "name": "id", + "description": "The identifier for the process to be executed.", + "schema": { + "type": "string", + "subtype": "process-id" + } + }, + { + "name": "arguments", + "description": "The arguments passed to the process.", + "schema": { + "type": "object" + } + }, + { + "name": "namespace", + "description": "The namespace of the process.\n\nDefaults to `null`, which checks both user-defined and predefined processes, but prefers user-defined processes if both are available.", + "schema": { + "type": "string", + "subtype": "process-namespace" + }, + "optional": true, + "default": null + } + ], + "returns": { + "description": "The data that is returned by the executed process.", + "schema": { + "title": "Any", + "description": "Any data type." + } + } +} \ No newline at end of file