details) {
Long.parseLong(processId));
}
+ protected String mapSlaCompliance(ProcessInstanceSummary process) {
+ String slaComplianceStr = constants.Unknown();
+ switch (process.getSlaCompliance()) {
+ case ProcessInstance.SLA_NA:
+ slaComplianceStr = constants.SlaNA();
+ break;
+ case ProcessInstance.SLA_PENDING:
+ slaComplianceStr = constants.SlaPending();
+ break;
+ case ProcessInstance.SLA_MET:
+ slaComplianceStr = constants.SlaMet();
+ break;
+ case ProcessInstance.SLA_ABORTED:
+ slaComplianceStr = constants.SlaAborted();
+ break;
+ case ProcessInstance.SLA_VIOLATED:
+ slaComplianceStr = constants.SlaViolated();
+ break;
+ default:
+ break;
+ }
+ return slaComplianceStr;
+ }
+
public interface ProcessInstanceDetailsView extends IsWidget {
// TODO Review interface to not expose GWT components
@@ -167,5 +195,7 @@ public interface ProcessInstanceDetailsView extends IsWidget {
HTML getCorrelationKeyText();
HTML getParentProcessInstanceIdText();
+
+ void setSlaComplianceText(String value);
}
}
\ No newline at end of file
diff --git a/jbpm-wb-process-runtime/jbpm-wb-process-runtime-client/src/main/java/org/jbpm/workbench/pr/client/editors/instance/details/ProcessInstanceDetailsViewImpl.html b/jbpm-wb-process-runtime/jbpm-wb-process-runtime-client/src/main/java/org/jbpm/workbench/pr/client/editors/instance/details/ProcessInstanceDetailsViewImpl.html
index c541b6410d..9d5a6b914b 100644
--- a/jbpm-wb-process-runtime/jbpm-wb-process-runtime-client/src/main/java/org/jbpm/workbench/pr/client/editors/instance/details/ProcessInstanceDetailsViewImpl.html
+++ b/jbpm-wb-process-runtime/jbpm-wb-process-runtime-client/src/main/java/org/jbpm/workbench/pr/client/editors/instance/details/ProcessInstanceDetailsViewImpl.html
@@ -31,6 +31,13 @@
+