summaryrefslogtreecommitdiffstats
path: root/doc/action-call.dot
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-30 19:59:32 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-30 19:59:32 +0200
commitbbb0d7c9d1b63dfd78f0ab33fd014909b20bf785 (patch)
tree612549b24386bf98eb94faaa53c4ab248090a48b /doc/action-call.dot
parent2debe89434872b68f36cc4282d8a02039847c605 (diff)
downloadrsyslog-bbb0d7c9d1b63dfd78f0ab33fd014909b20bf785.tar.gz
rsyslog-bbb0d7c9d1b63dfd78f0ab33fd014909b20bf785.tar.xz
rsyslog-bbb0d7c9d1b63dfd78f0ab33fd014909b20bf785.zip
added action processing message state diagram
Diffstat (limited to 'doc/action-call.dot')
-rw-r--r--doc/action-call.dot33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/action-call.dot b/doc/action-call.dot
new file mode 100644
index 00000000..86c6834d
--- /dev/null
+++ b/doc/action-call.dot
@@ -0,0 +1,33 @@
+// This file is part of rsyslog.
+//
+// rsyslog action call state diagram
+//
+// see http://www.graphviz.org for how to obtain the graphviz processor
+// which is used to build the actual graph.
+//
+// generate the graph with
+// $ dot action-call.dot -Tpng >action-call.png
+
+digraph G {
+ label="\n\nrsyslog message states during action processing\nhttp://www.rsyslog.com";
+ //fontsize=20;
+
+ ok [label="ready for processing" color="green"];
+ mpf [label="message permanent failure" color="red"];
+ tf [label="temporary failure"]
+ cPen [label="commit pending"];
+ com [label="committed" color="red"];
+
+ tf -> tf [label="retry fails, i < n"];
+ tf -> mpf [label="retry fails, i = n"];
+ tf -> ok [label="retry succeeds"];
+ ok -> com [label="doAction RS_RET_OK"];
+ ok -> cPen [label="doAction COMMIT_PENDING"];
+ ok -> tf [label="doAction RS_RET_SUSPENDED"];
+ ok -> mpf [label="doAction RS_RET_DISABLED"];
+ cPen -> com [label="endTransaction RS_RET_OK"];
+ cPen -> tf [label="endTransaction _SUSPENDED"];
+
+ //{rank=same; tf cPen}
+ {rank=same; com mpf}
+}