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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<div class="row">
<div class="col-xs-12">
<table class="table table-bordered table-condensed">
<tbody>
<tr>
<td class="property-key">Project name</td>
<td>{projectName}</td>
</tr>
<tr>
<td class="property-key">Job Types Used</td>
<td>{#jobTypes}{.} {/jobTypes}</td>
</tr>
<tr>
<td class="property-key">Condition</td>
{?condition}
<td>{condition}</td>
{:else}
<td>none</td>
{/condition}
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<h3>
Scheduling
{?schedule}
<div class="pull-right">
<button type="button" id="removeSchedBtn" class="btn btn-sm btn-danger"
onclick="removeSched({schedule.scheduleId})">Remove Schedule
</button>
</div>
{/schedule}
</h3>
{?schedule}
<table class="table table-condensed table-bordered">
<tbody>
<tr>
<td class="property-key">Schedule ID</td>
<td class="property-value-half">{schedule.scheduleId}</td>
<td class="property-key">Submitted By</td>
<td class="property-value-half">{schedule.submitUser}</td>
</tr>
<tr>
<td class="property-key">First Scheduled to Run</td>
<td class="property-value-half">{schedule.firstSchedTime}</td>
<td class="property-key">
{?schedule.cronExpression}
Cron Expression
{:else}
Repeats Every
{/schedule.cronExpression}
</td>
<td class="property-value-half">
{?schedule.cronExpression}
{schedule.cronExpression}
{:else}
{schedule.period}
{/schedule.cronExpression}
</td>
</tr>
<tr>
<td class="property-key">Next Execution Time</td>
<td class="property-value-half">{schedule.nextExecTime}</td>
<td class="property-key">SLA</td>
<td class="property-value-half">
{?schedule.slaOptions}
true
{:else}
false
{/schedule.slaOptions}
<div class="pull-right">
<button type="button" id="addSlaBtn" class="btn btn-xs btn-primary"
onclick="slaView.initFromSched({schedule.scheduleId}, '{flowName}')">View/Set
SLA
</button>
</div>
</td>
</tr>
</tbody>
</table>
{:else}
<div class="callout callout-default">
<h4>None</h4>
<p>This flow has not been scheduled.</p>
</div>
{/schedule}
<div class="row">
<div class="col-xs-12">
<h3>
Flow Trigger
</h3>
{?flowtrigger}
<table class="table table-condensed table-bordered">
<tbody>
<tr>
<td class="property-key">Max Wait Mins</td>
<td class="property-value-half">{flowtrigger.maxWaitMin}</td>
<td class="property-key">Submitted By</td>
<td class="property-value-half">{flowtrigger.submitUser}</td>
</tr>
<tr>
<td class="property-key">First Scheduled to Run</td>
<td class="property-value-half">{flowtrigger.firstSchedTime}</td>
<td class="property-key">
Cron Expression
</td>
<td class="property-value-half">
{?flowtrigger.cronExpression}
{flowtrigger.cronExpression}
{/flowtrigger.cronExpression}
</td>
</tr>
<tr>
<td class="property-key">Next Execution Time</td>
<td class="property-value-half">{flowtrigger.nextExecTime}</td>
<td class="property-key">Has Dependency</td>
<td class="property-value-half">
{?flowtrigger.dependencies}
true
{:else}
false
{/flowtrigger.dependencies}
<div class="pull-right">
<button type="button" id="showFlowTrigger" data-toggle="modal"
class="btn btn-sm btn-info" data-target="#dependencyList">Show Dependency
</button>
</div>
<div class="modal fade" id="dependencyList" tabindex="-1"
role="dialog"
aria-labelledby="dependencyLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="dependencyLabel">Dependencies</h4>
</div>
<div class="modal-body">
<pre>{flowtrigger.dependencies}</pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close
</button>
</div>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
{:else}
<div class="callout callout-default">
<h4>None</h4>
<p>This flow doesn't have flow trigger.</p>
</div>
{/flowtrigger}
</div>
<h3>Last Run Stats</h3>
</div>
</div>