Running a flow
The following example runs all executable nodes in the flow, and is the simplest type of flow script:
The following example also runs all executable nodes in the flow:
stream = modeler.script.stream() stream.runAll(None)
In this example, the flow is stored in a variable called
stream. Storing the
flow in a variable is useful because a script is typically used to modify either the flow or the
nodes within a flow. Creating a variable that stores the flow results in a more concise script.