add sketch of chained flow

This commit is contained in:
Jonathan Shook 2020-06-08 13:17:24 -05:00
parent d95e9de01d
commit d0f2152ae8
2 changed files with 124 additions and 0 deletions

View File

@ -0,0 +1,44 @@
digraph {
// rankdir=LR;
node [shape = none]
cycles[label="read input"]
c_err[shape="none",label="[ERR,null]"]
c_ok[shape="none",label="[OK,cycle]"]
cycles -> c_err
cycles -> c_ok
bind_template[label="bind template"]
template_ok[label="[OK,template]"]
template_err[label="[ERR,template]"]
c_ok -> bind_template
bind_template -> template_err
bind_template -> template_ok
exec_cmd[label="execute command"]
command_err[label="[ERR,template]"]
command_ok[label="[OK,result]"]
template_ok -> exec_cmd
exec_cmd -> command_err
exec_cmd -> command_ok
verify_result[label="verify result"]
command_ok -> verify_result
result_invalid[label="[ERR,result]"]
result_ok[label="[OK,result]"]
verify_result -> result_invalid
verify_result -> result_ok
// <tr><td>Error<sub>none</sub></td></tr>
// ⁅⁆⟦⟧ ⟬⟭ ⟮⟯ ⟨⟩ ⁅⁆
// <td rowspan="*"><FONT POINT-SIZE="32">{</FONT></td>
// <td rowspan="*"><FONT POINT-SIZE="32">}</FONT></td>
}

View File

@ -0,0 +1,80 @@
digraph {
node [shape = none]
// rankdir=LR;
do_read_input[label="read input"]
c_err[shape="none",label="[ERR,null]"fontcolor=red]
c_ok[shape="none",label="[OK,cycle]",fontcolor=blue]
do_read_input -> c_err [color=red]
do_read_input -> c_ok [color=blue]
bind_template[label="bind template"]
template_ok[label="[OK,template]",fontcolor=blue]
template_err[label="[ERR,cycle]"fontcolor=red]
c_ok -> bind_template
bind_template -> template_err [color=red]
bind_template -> template_ok [color=blue]
exec_cmd[label="execute command"]
command_err[label="[ERR,template]"fontcolor=red]
command_ok[label="[OK,result]",fontcolor=blue]
template_ok -> exec_cmd
exec_cmd -> command_err [color=red]
exec_cmd -> command_ok [color=blue]
verify[label="verify result"]
command_ok -> verify
verify_err[label="[ERR,result]",fontcolor=red]
verify_ok[label="[OK,status]",fontcolor=blue]
verify -> verify_err [color=red]
verify -> verify_ok [color=blue]
clusterrank="local"
{
c_ok; command_ok; verify_ok
}
{
do_read_input; bind_template; exec_cmd; verify;
}
{
c_err; command_err; template_err; verify_err;
}
{
rank=sink;
errs[fontcolor=red];
ok[fontcolor=blue];
}
template_err -> errs [color=red]
verify_err -> errs [color=red]
c_err -> errs [color=red]
command_err -> errs [color=red]
// c_ok -> ok;
// template_ok -> ok;
// command_ok -> ok;
verify_ok -> ok [color=blue]
// <tr><td>Error<sub>none</sub></td></tr>
// ⁅⁆⟦⟧ ⟬⟭ ⟮⟯ ⟨⟩ ⁅⁆
// <td rowspan="*"><FONT POINT-SIZE="32">{</FONT></td>
// <td rowspan="*"><FONT POINT-SIZE="32">}</FONT></td>
}