Script Visualisation
Engine creates a visual representation of scripts in your flows, schedulers, or wrappers.
Concept
Using static code analysis Engine extracts the control-flow and several key-commands of your scripts. This data is used to create a flowchart.
Features
Child Flow
Child flows are visualised as a squared box with a code icon.
example
import flow_api
def handler(system: flow_api.System, this: flow_api.Execution, inputs: dict):
this.flow('child')
return this.success('all done')

a child flow execution visualised
Child Connection
Child connection are visualised as a squared box with a plug icon.
example
import flow_api
def handler(system: flow_api.System, this: flow_api.Execution, inputs: dict):
this.connect(
'server',
name='read diskspace',
script='df -B1',
)
return this.success('all done')

a child connection execution visualised
Condition
Conditions are visualised as a rhomb shape with "true" and "false" lines.
example
import flow_api
def handler(system: flow_api.System, this: flow_api.Execution, inputs: dict):
if condition:
this.flow('child A')
else:
this.flow('child B')
return this.success('all done')

a condition visualised