Files
ResInsight/ApplicationLibCode/UnitTests/TestData/RimWorkflowDefinition/load_data.json
T
Kristian Bendiksen e6dc62a160 Workflows: Add interactive editor for taskmaestro workflows
Build, copy and edit taskmaestro workflows in ResInsight and save them as
standard workflow.yaml + input.yaml.

- Python helper: catalog, load, save and export-registered subcommands,
  and run --registered for installed workflows
- C++ definition model with pure edit operations, port type checks,
  config field derivation, static validation and undo/redo
- Installed folder listing registered workflows (read-only, runnable,
  can be duplicated)
- Graph editor dock with task palette, drag-to-connect, context menus,
  automatic layout and debounced live validation
- New/Duplicate/Save/Save As/Rescan commands; unsaved edits run from a
  temporary folder and prompt before being discarded
- Update the design document and the user README
2026-10-23 20:23:54 +02:00

2 lines
15 KiB
JSON

{"format": 1, "name": "resinsight_load_data", "result_task": "import_grid_property", "editable": true, "readonly_reasons": [], "warnings": [], "source": {"workflow_yaml": "test_data/taskmaestro_workflows/resinsight_load_data/workflow.yaml", "input_yaml": "test_data/taskmaestro_workflows/resinsight_load_data/input.yaml", "registered_id": null}, "header_comment": "# ResInsight grid, property, and regular surface loading example.", "passthrough": {}, "nodes": [{"name": "connect_to_resinsight", "task": "resinsight.connect", "config_fields": []}, {"name": "load_model", "task": "resinsight.load_model", "config_fields": ["path"]}, {"name": "import_grid_property", "task": "resinsight.import_grid_property", "config_fields": ["paths"]}, {"name": "load_regular_surface", "task": "resinsight.load_regular_surface", "config_fields": ["path"]}], "edges": [{"from": "connect_to_resinsight", "output": null, "to": "load_model", "input": "resinsight"}, {"from": "connect_to_resinsight", "output": null, "to": "import_grid_property", "input": "resinsight"}, {"from": "load_model", "output": null, "to": "import_grid_property", "input": "grid_case"}, {"from": "connect_to_resinsight", "output": null, "to": "load_regular_surface", "input": "resinsight"}], "inputs": {"connect_to_resinsight": {}, "load_model": {"path": "/path/to/grid.roff"}, "import_grid_property": {"paths": ["/path/to/property.roffasc"]}, "load_regular_surface": {"path": "/path/to/surface.irap"}}, "task_types": {"resinsight.connect": {"id": "resinsight.connect", "name": "connect_to_resinsight", "python_type": "taskmaestro_resinsight.connect_to_resinsight.ConnectToResInsight", "description": "Connect to a running ResInsight instance.", "timeout_seconds": null, "input_schema": {"description": "Sentinel config for workflows where all root tasks use JobConfiguration.", "properties": {}, "title": "EmptyConfig", "type": "object", "x-ri-python-bases": ["taskmaestro.job.EmptyConfig"], "x-ri-python-type": "taskmaestro.job.EmptyConfig"}, "output_schema": {"description": "Active connection to a running ResInsight application.", "properties": {"value": {"not": {}, "title": "Value", "x-ri-python-bases": ["rips.instance.Instance"], "x-ri-python-type": "rips.instance.Instance", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.instance.Instance"}}, "required": ["value"], "title": "RipsInstance", "type": "object", "x-ri-python-bases": ["taskmaestro_resinsight.models.RipsInstance", "taskmaestro.object_model.ObjectModel[Instance]", "taskmaestro.object_model.ObjectModel"], "x-ri-python-type": "taskmaestro_resinsight.models.RipsInstance"}}, "resinsight.load_model": {"id": "resinsight.load_model", "name": "load_model", "python_type": "taskmaestro_resinsight.load_model.LoadModel", "description": "Open an Eclipse case from a file path and wrap it as a GridCase.", "timeout_seconds": null, "input_schema": {"$defs": {"RipsInstance": {"description": "Active connection to a running ResInsight application.", "properties": {"value": {"not": {}, "title": "Value", "x-ri-python-bases": ["rips.instance.Instance"], "x-ri-python-type": "rips.instance.Instance", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.instance.Instance"}}, "required": ["value"], "title": "RipsInstance", "type": "object", "x-ri-python-bases": ["taskmaestro_resinsight.models.RipsInstance", "taskmaestro.object_model.ObjectModel[Instance]", "taskmaestro.object_model.ObjectModel"], "x-ri-python-type": "taskmaestro_resinsight.models.RipsInstance"}}, "description": "Input for LoadModel: RipsInstance from upstream, path from config.", "properties": {"resinsight": {"$ref": "#/$defs/RipsInstance"}, "path": {"description": "Path to the .EGRID file to load", "title": "Path", "type": "string"}}, "required": ["resinsight", "path"], "title": "LoadModelInput", "type": "object", "x-ri-python-bases": ["taskmaestro_resinsight.models.LoadModelInput"], "x-ri-python-type": "taskmaestro_resinsight.models.LoadModelInput"}, "output_schema": {"description": "Loaded Eclipse reservoir grid case.", "properties": {"value": {"not": {}, "title": "Value", "x-ri-python-bases": ["rips.generated.generated_classes.Reservoir", "rips.generated.generated_classes.Case", "rips.pdmobject.PdmObjectBase"], "x-ri-python-type": "rips.generated.generated_classes.Reservoir", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.generated.generated_classes.Reservoir"}}, "required": ["value"], "title": "GridCase", "type": "object", "x-ri-python-bases": ["taskmaestro_resinsight.models.GridCase", "taskmaestro.object_model.ObjectModel[Reservoir]", "taskmaestro.object_model.ObjectModel"], "x-ri-python-type": "taskmaestro_resinsight.models.GridCase"}}, "resinsight.import_grid_property": {"id": "resinsight.import_grid_property", "name": "import_grid_property", "python_type": "taskmaestro_resinsight.import_grid_property.ImportGridProperty", "description": "Import grid property files into a loaded grid case.", "timeout_seconds": null, "input_schema": {"$defs": {"GridCase": {"description": "Loaded Eclipse reservoir grid case.", "properties": {"value": {"not": {}, "title": "Value", "x-ri-python-bases": ["rips.generated.generated_classes.Reservoir", "rips.generated.generated_classes.Case", "rips.pdmobject.PdmObjectBase"], "x-ri-python-type": "rips.generated.generated_classes.Reservoir", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.generated.generated_classes.Reservoir"}}, "required": ["value"], "title": "GridCase", "type": "object", "x-ri-python-bases": ["taskmaestro_resinsight.models.GridCase", "taskmaestro.object_model.ObjectModel[Reservoir]", "taskmaestro.object_model.ObjectModel"], "x-ri-python-type": "taskmaestro_resinsight.models.GridCase"}, "RipsInstance": {"description": "Active connection to a running ResInsight application.", "properties": {"value": {"not": {}, "title": "Value", "x-ri-python-bases": ["rips.instance.Instance"], "x-ri-python-type": "rips.instance.Instance", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.instance.Instance"}}, "required": ["value"], "title": "RipsInstance", "type": "object", "x-ri-python-bases": ["taskmaestro_resinsight.models.RipsInstance", "taskmaestro.object_model.ObjectModel[Instance]", "taskmaestro.object_model.ObjectModel"], "x-ri-python-type": "taskmaestro_resinsight.models.RipsInstance"}}, "description": "Input for ImportGridProperty: RipsInstance, case, and property paths.", "properties": {"resinsight": {"$ref": "#/$defs/RipsInstance"}, "grid_case": {"$ref": "#/$defs/GridCase"}, "paths": {"description": "Paths to grid property files to load", "items": {"type": "string"}, "title": "Paths", "type": "array"}}, "required": ["resinsight", "grid_case", "paths"], "title": "ImportGridPropertyInput", "type": "object", "x-ri-python-bases": ["taskmaestro_resinsight.models.ImportGridPropertyInput"], "x-ri-python-type": "taskmaestro_resinsight.models.ImportGridPropertyInput"}, "output_schema": {"description": "Loaded Eclipse reservoir grid case.", "properties": {"value": {"not": {}, "title": "Value", "x-ri-python-bases": ["rips.generated.generated_classes.Reservoir", "rips.generated.generated_classes.Case", "rips.pdmobject.PdmObjectBase"], "x-ri-python-type": "rips.generated.generated_classes.Reservoir", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.generated.generated_classes.Reservoir"}}, "required": ["value"], "title": "GridCase", "type": "object", "x-ri-python-bases": ["taskmaestro_resinsight.models.GridCase", "taskmaestro.object_model.ObjectModel[Reservoir]", "taskmaestro.object_model.ObjectModel"], "x-ri-python-type": "taskmaestro_resinsight.models.GridCase"}}, "resinsight.load_regular_surface": {"id": "resinsight.load_regular_surface", "name": "load_regular_surface", "python_type": "taskmaestro_resinsight.load_regular_surface.LoadRegularSurface", "description": "Import a regular surface file and wrap it as a RegularSurface.", "timeout_seconds": null, "input_schema": {"$defs": {"RipsInstance": {"description": "Active connection to a running ResInsight application.", "properties": {"value": {"not": {}, "title": "Value", "x-ri-python-bases": ["rips.instance.Instance"], "x-ri-python-type": "rips.instance.Instance", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.instance.Instance"}}, "required": ["value"], "title": "RipsInstance", "type": "object", "x-ri-python-bases": ["taskmaestro_resinsight.models.RipsInstance", "taskmaestro.object_model.ObjectModel[Instance]", "taskmaestro.object_model.ObjectModel"], "x-ri-python-type": "taskmaestro_resinsight.models.RipsInstance"}}, "description": "Input for LoadRegularSurface: RipsInstance + path from config.", "properties": {"resinsight": {"$ref": "#/$defs/RipsInstance"}, "path": {"description": "Path to the regular surface file to load", "title": "Path", "type": "string"}}, "required": ["resinsight", "path"], "title": "LoadRegularSurfaceInput", "type": "object", "x-ri-python-bases": ["taskmaestro_resinsight.models.LoadRegularSurfaceInput"], "x-ri-python-type": "taskmaestro_resinsight.models.LoadRegularSurfaceInput"}, "output_schema": {"description": "Loaded regular surface file.", "properties": {"value": {"not": {}, "title": "Value", "x-ri-python-bases": ["rips.generated.generated_classes.Surface", "rips.generated.generated_classes.SurfaceInterface", "rips.pdmobject.PdmObjectBase"], "x-ri-python-type": "rips.generated.generated_classes.Surface", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.generated.generated_classes.Surface"}}, "required": ["value"], "title": "RegularSurface", "type": "object", "x-ri-python-bases": ["taskmaestro_resinsight.models.RegularSurface", "taskmaestro.object_model.ObjectModel[Surface]", "taskmaestro.object_model.ObjectModel"], "x-ri-python-type": "taskmaestro_resinsight.models.RegularSurface"}}}, "describe": {"workflow": "resinsight_load_data", "result_task": "import_grid_property", "tasks": [{"name": "connect_to_resinsight", "python_type": "taskmaestro_resinsight.connect_to_resinsight.ConnectToResInsight", "depends_on": null, "config_fields": [], "provided_config_fields": [], "missing_config_fields": [], "config_values": {}, "required_input_fields": [], "map": null, "input_schema": {"description": "Sentinel config for workflows where all root tasks use JobConfiguration.", "properties": {}, "title": "EmptyConfig", "type": "object"}, "output_schema": {"description": "Active connection to a running ResInsight application.", "properties": {"value": {"not": {}, "title": "Value", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.instance.Instance"}}, "required": ["value"], "title": "RipsInstance", "type": "object"}}, {"name": "load_model", "python_type": "taskmaestro_resinsight.load_model.LoadModel", "depends_on": {"resinsight": {"task": "connect_to_resinsight", "field": null}}, "config_fields": ["path"], "provided_config_fields": ["path"], "missing_config_fields": [], "config_values": {"path": "/path/to/grid.roff"}, "required_input_fields": ["path", "resinsight"], "map": null, "input_schema": {"$defs": {"RipsInstance": {"description": "Active connection to a running ResInsight application.", "properties": {"value": {"not": {}, "title": "Value", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.instance.Instance"}}, "required": ["value"], "title": "RipsInstance", "type": "object"}}, "description": "Input for LoadModel: RipsInstance from upstream, path from config.", "properties": {"resinsight": {"$ref": "#/$defs/RipsInstance"}, "path": {"description": "Path to the .EGRID file to load", "title": "Path", "type": "string"}}, "required": ["resinsight", "path"], "title": "LoadModelInput", "type": "object"}, "output_schema": {"description": "Loaded Eclipse reservoir grid case.", "properties": {"value": {"not": {}, "title": "Value", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.generated.generated_classes.Reservoir"}}, "required": ["value"], "title": "GridCase", "type": "object"}}, {"name": "import_grid_property", "python_type": "taskmaestro_resinsight.import_grid_property.ImportGridProperty", "depends_on": {"resinsight": {"task": "connect_to_resinsight", "field": null}, "grid_case": {"task": "load_model", "field": null}}, "config_fields": ["paths"], "provided_config_fields": ["paths"], "missing_config_fields": [], "config_values": {"paths": ["/path/to/property.roffasc"]}, "required_input_fields": ["grid_case", "paths", "resinsight"], "map": null, "input_schema": {"$defs": {"GridCase": {"description": "Loaded Eclipse reservoir grid case.", "properties": {"value": {"not": {}, "title": "Value", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.generated.generated_classes.Reservoir"}}, "required": ["value"], "title": "GridCase", "type": "object"}, "RipsInstance": {"description": "Active connection to a running ResInsight application.", "properties": {"value": {"not": {}, "title": "Value", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.instance.Instance"}}, "required": ["value"], "title": "RipsInstance", "type": "object"}}, "description": "Input for ImportGridProperty: RipsInstance, case, and property paths.", "properties": {"resinsight": {"$ref": "#/$defs/RipsInstance"}, "grid_case": {"$ref": "#/$defs/GridCase"}, "paths": {"description": "Paths to grid property files to load", "items": {"type": "string"}, "title": "Paths", "type": "array"}}, "required": ["resinsight", "grid_case", "paths"], "title": "ImportGridPropertyInput", "type": "object"}, "output_schema": {"description": "Loaded Eclipse reservoir grid case.", "properties": {"value": {"not": {}, "title": "Value", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.generated.generated_classes.Reservoir"}}, "required": ["value"], "title": "GridCase", "type": "object"}}, {"name": "load_regular_surface", "python_type": "taskmaestro_resinsight.load_regular_surface.LoadRegularSurface", "depends_on": {"resinsight": {"task": "connect_to_resinsight", "field": null}}, "config_fields": ["path"], "provided_config_fields": ["path"], "missing_config_fields": [], "config_values": {"path": "/path/to/surface.irap"}, "required_input_fields": ["path", "resinsight"], "map": null, "input_schema": {"$defs": {"RipsInstance": {"description": "Active connection to a running ResInsight application.", "properties": {"value": {"not": {}, "title": "Value", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.instance.Instance"}}, "required": ["value"], "title": "RipsInstance", "type": "object"}}, "description": "Input for LoadRegularSurface: RipsInstance + path from config.", "properties": {"resinsight": {"$ref": "#/$defs/RipsInstance"}, "path": {"description": "Path to the regular surface file to load", "title": "Path", "type": "string"}}, "required": ["resinsight", "path"], "title": "LoadRegularSurfaceInput", "type": "object"}, "output_schema": {"description": "Loaded regular surface file.", "properties": {"value": {"not": {}, "title": "Value", "x-taskmaestro-opaque": true, "x-taskmaestro-python-type": "rips.generated.generated_classes.Surface"}}, "required": ["value"], "title": "RegularSurface", "type": "object"}}]}, "describe_error": null, "status": "ok"}