Sanjay Patel
12/11/2020, 10:50 PMwith Flow('first') as flow:
    a = task_a()
    b = task_b(a)
    c = task_c(b)
    StartFlowRun(flow_name='second', project_name=...)(parameters={"input"=c})with Flow('first') as flow:
    a = task_a()
    b = task_b(a)
    c = task_c(b)
    
with Flow('second') as flow:
    param = Parameter('input')
    d = task_d(param)
    
# How to do something like this:
flow_a = StartFlowRun(flow_name="first", project_name="examples", wait=True)
flow_b = StartFlowRun(flow_name="second", project_name="examples", wait=True)with Flow('total') as flow:
    a = flow_a()
    b = flow_b()(upstream_tasks=[a], parameters={'input': a.d})nicholas
StartFlowRunflow.runRunStartFlowRunState@task
def task_a():
  return "hello"
task_b = StartFlowRun(flow_name="flow_b", project_name="examples", wait=True)
task_c = StartFlowRun(flow_name="flow_c", project_name="examples", wait=True)
with Flow("flow_a") as flow:
  result_a = task_a()
  result_b = task_b(upstream_tasks=[result_a], parameters={'result_a': result_a})
  result_c = task_c(upstream_tasks=[result_b], parameters={'result_b': result_b.result}) # We access the .result of result_b because StartFlowRun returns a State object, which includes the state message, result, context, and any cached inputsStartFlowRunStateSanjay Patel
12/12/2020, 12:47 AMnicholas
Sanjay Patel
12/12/2020, 3:19 AMwith Flow("flow_a") as flow:
  result_a = task_a.map(some_iterable)
  result_b = task_b.map(upstream_tasks=[result_a], parameters={'result_a': result_a}) # mapnicholas
unmappedJustin Chavez
03/10/2021, 10:04 PMAttributeError: 'StartFlowRun' object has no attribute 'result'Justin Chavez
03/10/2021, 10:06 PM