Skip to content

Conversation

@GeigerJ2
Copy link
Collaborator

No description provided.

@JaGeo
Copy link
Contributor

JaGeo commented Oct 24, 2025

@GeigerJ2 I am wondering if ee can construct a more advanced example with two nested flows or a nested one combined with a function. This would help me a lot to debug my code.

@GeigerJ2
Copy link
Collaborator Author

@GeigerJ2 I am wondering if ee can construct a more advanced example with two nested flows or a nested one combined with a function. This would help me a lot to debug my code.

Yes, fully agree! The current one is a bit pointless, as the outer graph just wraps the inputs/outputs but adds zero logic. I should have a working version of the load_workflow_json now, so I'm happy to extend the workflow. We can touch base on this once we arrive at the workshop 🙏🏽

@GeigerJ2
Copy link
Collaborator Author

GeigerJ2 commented Oct 24, 2025

@JaGeo an example with additional pre- and post-processing around the inner graph:

{
  "version": "0.1.1",
  "nodes": [
    { "id": 0, "value": 3, "type": "input", "name": "a" },
    { "id": 1, "value": 2, "type": "input", "name": "b" },
    { "id": 2, "value": 4, "type": "input", "name": "c" },
    { "id": 3, "type": "function", "value": "workflow.get_prod_and_div" },
    { "id": 4, "type": "workflow", "value": "prod_div.json" },
    { "id": 5, "type": "function", "value": "workflow.get_sum" },
    { "id": 6, "type": "output", "name": "final_result" }
  ],
  "edges": [
    { "target": 3, "targetPort": "x", "source": 0, "sourcePort": null },
    { "target": 3, "targetPort": "y", "source": 2, "sourcePort": null },
    { "target": 4, "targetPort": "x", "source": 3, "sourcePort": "prod" },
    { "target": 4, "targetPort": "y", "source": 3, "sourcePort": "div" },
    { "target": 5, "targetPort": "x", "source": 4, "sourcePort": "result" },
    { "target": 5, "targetPort": "y", "source": 1, "sourcePort": null },
    { "target": 6, "targetPort": null, "source": 5, "sourcePort": null }
  ]
}
{BA0AFF8C-07DC-406E-88D3-2FB9D1768C82}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants