Skip to content

Update single flows in process #29

Description

@dontoasty

Hi,
I am trying to update a single flow inside a process, e.g. to adjust the amount or even delete it from the process. The way I am doing it right now, is to create a new exchange list and update the whole process. That way, all unchanged flows have to be part of the new exchange list again, though.
Is there a way to only change certain flows within a process? Something like

process = client.get(olca.Process, 'fb0d68e9-9a14-431b-ac34-1f9a14c18de8') 

for "flow" in process:
       if flow.id = "dc50a884-b2f5-4c95-9912-07b8dfb2d497":
           flow.amount = 5

client.update(process)

Thanks for any hints!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions