Skip to content

Commit

Permalink
Add run_process #413
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Nov 23, 2021
1 parent e293cda commit 6d4c379
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- New processes in proposal state
- `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)
- `run_udf`: Exception `InvalidRuntime` added. [#273](https://github.com/Open-EO/openeo-processes/issues/273)
Expand Down
12 changes: 12 additions & 0 deletions meta/subtype-schemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,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."
},
"proj-definition": {
"type": "string",
"subtype": "proj-definition",
Expand Down
44 changes: 44 additions & 0 deletions proposals/run_process.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"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": [
"cubes",
"import",
"udf"
],
"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."
}
}
}

0 comments on commit 6d4c379

Please sign in to comment.