annotate Resources/ImplementationNotes/JobsEngineStates.dot @ 2832:307f166b5bef Orthanc-1.4.2

Orthanc-1.4.2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 Sep 2018 13:24:18 +0200
parents 8da2cffc2378
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2558
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 // dot -Tpdf JobsEngineStates.dot -o JobsEngineStates.pdf
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 digraph G
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 rankdir="LR";
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 init [shape=point];
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 failure, success [shape=doublecircle];
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 // Internal transitions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 init -> pending;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 pending -> running;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 running -> success;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 running -> failure;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 running -> retry;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 retry -> pending [label="timeout"];
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 // External actions
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 failure -> pending [label="Resubmit()" fontcolor="red"];
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 paused -> pending [label="Resume()" fontcolor="red"];
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 pending -> paused [label="Pause()" fontcolor="red"];
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 retry -> paused [label="Pause()" fontcolor="red"];
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 running -> paused [label="Pause()" fontcolor="red"];
2581
8da2cffc2378 JobsRegistry::Cancel()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2559
diff changeset
23
8da2cffc2378 JobsRegistry::Cancel()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2559
diff changeset
24 paused -> failure [label="Cancel()" fontcolor="red"];
8da2cffc2378 JobsRegistry::Cancel()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2559
diff changeset
25 pending -> failure [label="Cancel()" fontcolor="red"];
8da2cffc2378 JobsRegistry::Cancel()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2559
diff changeset
26 retry -> failure [label="Cancel()" fontcolor="red"];
8da2cffc2378 JobsRegistry::Cancel()
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2559
diff changeset
27 running -> failure [label="Cancel()" fontcolor="red"];
2559
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2558
diff changeset
28 }