Branching and conditionals

hi, i come from airflow and dagster.

so, what i can’t find in docs is how to do branching
like
image

and conditionals too

also is there any way to see the pipeline graph in temporal?

working with go sdk

thanks

Use the standard language constructs:

if condition {
    // branch 1
} else {
   // branch 2
}

or (See choice-exclusive sample)

switch foo {
     case branch1:
          // branch 1
     case branch2:
          // branch 2
}

or map if you want to dynamically dispatch:

type branch interface {
    branchCode()
}
...
branchMap[someKey].branchCode()

also is there any way to see the pipeline graph in temporal?

As Temporal workflows are code there is no automated way to represent them as graphs. If there is a need to generate some user facing picture/graph then use the query feature to return correspondent data from the workflow.