cogk / reacteur

Automation and computation toolbox for no-code development for Frappe / Dodock.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example of a basic flow

cogk opened this issue · comments

Hidden nodes / "blocks can be nodes or edges".

flowchart TB
x0["frappe/trigger/doc
(event: validate)"]
x3["core/eval
(code: 'rate * qty')"]
x4["core/setvalue
(of: x0.doc, key: 'total', value: x3.out)"]

x0 -->|"core/result_of
(block: 'x0', key: 'x0.doc.rate')"| x3
x0 -->|"core/result_of
(block: 'x0', key: 'x0.doc.qty')"| x3
x3 -->|"core/result_of
(block: 'x3', key: 'x3.out')"| x4
Loading
flowchart TD
a["On workflow state transition"]
b(["« Sales Invoice »"])
c(["« Approved »"])
d(["« Document has been Approved: {{ url }} »"])
e(["(expr): doc.owner"])
f["Convert to PDF"]
g["Get link to Form"]
h["Send e-mail"]

b -->|doctype| a
c -->|target_state| a
a -->|doc| f -->|attachment| h
a -->|doc| g -->|url| d
d -->|subject| h
e -->|recipients| h
Loading