~humaid/workflow-engine unlisted

ref: 5742459f5e4184fddef5d200e0cba0f779f869ff workflow-engine/templates/step.tmpl -rw-r--r-- 3.1 KiB
5742459f — Humaid AlQassimi admin: implement adding adding of criteria in steps 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{{template "base/head" .}}
<div class="content">
	{{template "partials/flash" .}}
	<h2>{{.ServiceID}}'s {{.Channel.ChannelID}}: {{.Step.StepID}}</h2>
	<h3>Step Attributes</h3>
	<ul>
		<li><span title="The description of the step's status on the
		actualisation" class="help">Status</span>: {{.Step.Status}}</li>
		<li><span title="This has no effect on the engine."
		class="help">Page</span>: {{.Step.Page}}</li>
		<li><span title="User, group, or department to post the step to."
		class="help">Post To</span>: {{.Step.PostTo}}</li>
		<li><span title="Variables to import from other steps" class="help">Data In</span>: {{.Step.DataIn}}</li>
		<li><span title="Variables or data to input from the API" class="help">Data Out</span>: {{.Step.DataOut}}</li>
		<li><span title="Whether this step ends the entire actualisation when
		completed" class="help">End application</span>: {{.Step.EndApplication}}</li>
	</ul>
	<p><small><b>Note</b>: You may hover dotted text for help
	message.</small></p>
	<p><a class="btn"
	href="/edit/step/{{.Rel}}">Edit attributes</a></p>
	<h3>Execution Criteria <a class="btn"
	href="/s/{{.Rel}}/new/criteria/exec">+</a></h3>
	
	<p><i>These are criterion required to pass before the step is allowed to
	start.</i></p>
	{{range .Step.CriteriaExec}}
	<div class="entry">
		<a href="/s/{{$.Rel}}/edit/criteria/exec/{{.CriteriaName}}">{{if .CriteriaName}}{{.CriteriaName}}{{else}}No
		Name!{{end}}</a>
		<div class="meta">
			<p><a><code>{{.Expression}}</code></a></p>
			<p><a>Fail message: {{if .FailMessage}}{{.FailMessage}}{{else}}None{{end}}</a></p>
		</div>
	</div>
	{{end}}
	<h3>Finalisation Criteria <a class="btn"
	href="/s/{{.Rel}}/new/criteria/final">+</a></h3>
	
	<p><i>These are criterion required to pass before the step is allowed to be
	marked as complete.</i></p>
	{{range .Step.CriteriaFinal}}
	<div class="entry">
		<a href="/s/{{$.Rel}}/edit/criteria/exec/{{.CriteriaName}}">{{if .CriteriaName}}{{.CriteriaName}}{{else}}No
		Name!{{end}}</a>
		<div class="meta">
			<p><a><code>{{.Expression}}</code></a></p>
			<p><a>Fail message: {{if .FailMessage}}{{.FailMessage}}{{else}}None{{end}}</a></p>
		</div>
	</div>
	{{end}}
	<h3>Pull Data <a class="btn" href="/s/{{.Rel}}/new/pulldata">+</a></h3>
	<p><i>This is the external services called via HTTP POST.</i></p>
	<h3>Commit Objects <a class="btn" href="/s/{{.Rel}}/new/commitobject">+</a></h3>
	<p><i>These are objects which are created before committing, and are loaded
	in the commit scripting environment.</i></p>
	{{range .Step.CommitObjects}}
	<div class="entry">
		<a href="/s/"><code>{{.Name}}</code> (type: {{.Type}})</a>
		<div class="meta">
			{{range $key, $value := .Variables}}
			<p><a>{{$key}}: <code>{{$value}}</code></a></p>
			{{end}}
		</div>
	</div>
	{{end}}
	<h3>Commit</h3>
	<p><i>These are the scripts which are run against the database when the
	step is finalised.</i></p>
	{{range .Step.Commit}}
	<div class="entry">
		<a href="/s/"><code>{{.}}</code></a>
		<div class="">
			<p>(<a class="inline" href="">delete</a> | <a class="inline"
			href="">edit</a>)</p>
		</div>
	</div>
	{{end}}
	<h3></h3>
</div>
{{template "base/footer" .}}