Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add run_process #307

Draft
wants to merge 2 commits into
base: draft
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
43 changes: 43 additions & 0 deletions proposals/run_process.json
Original file line number Diff line number Diff line change
@@ -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."
}
}
}