-
Notifications
You must be signed in to change notification settings - Fork 214
/
runningProcess.jsp
executable file
·123 lines (114 loc) · 6.23 KB
/
runningProcess.jsp
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
<%@ include file="/WEB-INF/jsp/includes/taglibs.jsp" %>
<commons:header />
<div id="nav">
<div id="nav-title">
</div>
<div id="nav-body">
<ul id="nav-list">
<jsp:include page="subMenu.jsp" flush="true" />
</ul>
</div>
</div>
<div id="main">
<div id="main-title"></div>
<div id="main-action">
<ul id="main-action-buttons">
<li><button onclick="viewGraph()"><fmt:message key="console.monitoring.common.label.viewGraph"/></button></li>
<li><button onclick="abortProcessInstance()"><fmt:message key="console.monitoring.running.label.abortProcess"/></button></li>
<li><button onclick="removeProcessInstance()"><fmt:message key="console.monitoring.common.label.removeInstance"/></button></li>
<li><button onclick="reevaluateProcessInstance()"><fmt:message key="console.monitoring.running.label.reevaluate"/></button></li>
</ul>
</div>
<div id="main-body">
<dl>
<dt><fmt:message key="console.app.process.common.label.id"/></dt>
<dd>${wfProcess.instanceId} </dd>
<dt><fmt:message key="console.app.process.common.label.definitionId"/></dt>
<dd>${wfProcess.id} </dd>
<dt><fmt:message key="console.app.process.common.label.version"/></dt>
<dd>${wfProcess.version} </dd>
<dt><fmt:message key="console.app.process.common.label.name"/></dt>
<dd><a target="_blank" href="${pageContext.request.contextPath}/web/console/app/${wfProcess.packageId}//processes/${wfProcess.idWithoutVersion}">${wfProcess.name}</a> </dd>
<dt><fmt:message key="console.app.process.common.label.state"/></dt>
<dd>${wfProcess.state} </dd>
<dt><fmt:message key="console.app.process.common.label.serviceLevelMonitor"/></dt>
<dd>${serviceLevelMonitor} </dd>
<dt><fmt:message key="console.app.process.common.label.startedTime"/></dt>
<dd>${trackWflowProcess.startedTime} </dd>
<dt><fmt:message key="console.app.process.common.label.limit"/></dt>
<dd>${trackWflowProcess.limit} </dd>
<dt><fmt:message key="console.app.process.common.label.dueDate"/></dt>
<dd>${trackWflowProcess.due} </dd>
<dt><fmt:message key="console.app.process.common.label.delay"/></dt>
<dd>${trackWflowProcess.delay} </dd>
<dt><fmt:message key="console.app.process.common.label.finishTime"/></dt>
<dd>${trackWflowProcess.finishTime} </dd>
<dt><fmt:message key="console.app.process.common.label.timeConsumingFromDateStarted"/></dt>
<dd>${trackWflowProcess.timeConsumingFromDateStarted} </dd>
</dl>
<div id="main-body-content-subheader">
<fmt:message key="console.monitoring.common.label.activityList"/>
</div>
<ui:jsontable url="${pageContext.request.contextPath}/web/json/console/monitor/activity/list?processId=${wfProcess.instanceId}"
var="JsonDataTable"
divToUpdate="activityList"
jsonData="data"
rowsPerPage="10"
width="100%"
sort="id"
desc="false"
href="${pageContext.request.contextPath}/web/console/monitor/running/process/activity/view"
hrefParam="id"
hrefQuery="false"
hrefDialog="false"
hrefDialogWidth="600px"
hrefDialogHeight="400px"
hrefDialogTitle="Process Dialog"
fields="['id','name','serviceLevelMonitor']"
column1="{key: 'id', label: 'console.app.activity.common.label.id', sortable: true}"
column2="{key: 'name', label: 'console.app.activity.common.label.name', sortable: true}"
column3="{key: 'state', label: 'console.app.activity.common.label.state', sortable: false}"
column4="{key: 'serviceLevelMonitor', label: 'console.app.activity.common.label.serviceLevelMonitor', sortable: false}"
/>
</div>
</div>
<script>
function removeProcessInstance(){
if (confirm('<fmt:message key="console.monitoring.common.label.removeProcess.confirm"/>')) {
var callback = {
success : function() {
document.location = '${pageContext.request.contextPath}/web/console/monitor/running';
}
}
var request = ConnectionManager.post('${pageContext.request.contextPath}/web/console/monitor/process/delete', callback, 'ids=${wfProcess.instanceId}');
}
}
function viewGraph(){
var url = '${pageContext.request.contextPath}/web/console/monitor/process/viewGraph/${wfProcess.instanceId}';
window.open(url);
}
function abortProcessInstance(){
if (confirm('<fmt:message key="console.monitoring.running.label.abortProcess.confirm"/>')) {
var callback = {
success : function() {
alert("<fmt:message key='console.monitoring.running.label.abortProcess.success'/>");
document.location = '${pageContext.request.contextPath}/web/console/monitor/running';
}
}
var request = ConnectionManager.post('${pageContext.request.contextPath}/web/console/monitor/running/process/abort/${wfProcess.instanceId}', callback, '');
}
}
function reevaluateProcessInstance(){
if (confirm('<fmt:message key="console.monitoring.running.label.reevaluate.confirm"/>')) {
var callback = {
success : function() {
alert("<fmt:message key='console.monitoring.running.label.reevaluate.success'/>");
document.location = document.location;
}
}
var request = ConnectionManager.post('${pageContext.request.contextPath}/web/console/monitor/running/process/reevaluate/${wfProcess.instanceId}', callback, '');
}
}
Template.init("#menu-monitor", "#nav-monitor-running");
</script>
<commons:footer />