@Test public void testProcessInstanceImageHTML() { when(uiServicesClient.getProcessInstanceImageCustomColor("", null, "", "", "")) .thenReturn(SVG_WITH_ACTIONS, SVG_WITHOUT_ACTIONS); validateHTMLContent(service.getProcessInstanceDiagram("", "", null, "", "", "")); validateHTMLContent(service.getProcessInstanceDiagram("", "", null, "", "", "")); }
@Override public String getProcessInstanceDiagram(String serverTemplateId, String containerId, Long processInstanceId, String completedNodeColor, String completedNodeBorderColor, String activeNodeBorderColor) { UIServicesClient uiServicesClient = getClient(serverTemplateId, containerId, UIServicesClient.class); try { return removeActionsFromSVG(uiServicesClient.getProcessInstanceImageCustomColor(containerId, processInstanceId, completedNodeColor, completedNodeBorderColor, activeNodeBorderColor)); } catch (KieServicesHttpException ex) { LOGGER.warn("Failed to retrieve process instance image: {}", ex.getMessage()); if (ex.getHttpCode() == 404) { return null; } else { throw ex; } } }
RemoteProcessImageServiceImpl extends AbstractKieServerService implements ProcessImageService { @Override public String getProcessInstanceDiagram(String serverTemplateId, String containerId, Long processInstanceId, String completedNodeColor, String completedNodeBorderColor, String activeNodeBorderColor) { UIServicesClient uiServicesClient = getClient(serverTemplateId, containerId, UIServicesClient.class); try { return removeActionsFromSVG(uiServicesClient.getProcessInstanceImageCustomColor(containerId, processInstanceId, completedNodeColor, completedNodeBorderColor, activeNodeBorderColor)); } catch (KieServicesHttpException ex) { LOGGER.warn("Failed to retrieve process instance image: {}", ex.getMessage()); if (ex.getHttpCode() == 404) { return null; } else { throw ex; } } } }
RemoteProcessImageServiceImpl extends AbstractKieServerService implements ProcessImageService { @Override public String getProcessInstanceDiagram(String serverTemplateId, String containerId, Long processInstanceId, String completedNodeColor, String completedNodeBorderColor, String activeNodeBorderColor) { UIServicesClient uiServicesClient = getClient(serverTemplateId, containerId, UIServicesClient.class); try { return removeActionsFromSVG(uiServicesClient.getProcessInstanceImageCustomColor(containerId, processInstanceId, completedNodeColor, completedNodeBorderColor, activeNodeBorderColor)); } catch (KieServicesHttpException ex) { LOGGER.warn("Failed to retrieve process instance image: {}", ex.getMessage()); if (ex.getHttpCode() == 404) { return null; } else { throw ex; } } }  }
RemoteProcessImageServiceImpl extends AbstractKieServerService implements ProcessImageService { @Override public String getProcessInstanceDiagram(String serverTemplateId, String containerId, Long processInstanceId, String completedNodeColor, String completedNodeBorderColor, String activeNodeBorderColor) { UIServicesClient uiServicesClient = getClient(serverTemplateId, containerId, UIServicesClient.class); try { return removeActionsFromSVG(uiServicesClient.getProcessInstanceImageCustomColor(containerId, processInstanceId, completedNodeColor, completedNodeBorderColor, activeNodeBorderColor)); } catch (KieServicesHttpException ex) { LOGGER.warn("Failed to retrieve process instance image: {}", ex.getMessage()); if (ex.getHttpCode() == 404) { return null; } else { throw ex; } } }  @Override String getProcessInstanceDiagram(String serverTemplateId,
                                            String containerId,
                                            Long processInstanceId,
                                            String completedNodeColor,
                                            String completedNodeBorderColor,
                                            String activeNodeBorderColor); @Override String getProcessDiagram(String serverTemplateId,
                                    String containerId,
                                    String processId); }
RemoteProcessImageServiceImpl extends AbstractKieServerService implements ProcessImageService { @Override public String getProcessInstanceDiagram(String serverTemplateId, String containerId, Long processInstanceId, String completedNodeColor, String completedNodeBorderColor, String activeNodeBorderColor) { UIServicesClient uiServicesClient = getClient(serverTemplateId, containerId, UIServicesClient.class); try { return removeActionsFromSVG(uiServicesClient.getProcessInstanceImageCustomColor(containerId, processInstanceId, completedNodeColor, completedNodeBorderColor, activeNodeBorderColor)); } catch (KieServicesHttpException ex) { LOGGER.warn("Failed to retrieve process instance image: {}", ex.getMessage()); if (ex.getHttpCode() == 404) { return null; } else { throw ex; } } }  @Override String getProcessInstanceDiagram(String serverTemplateId,
                                            String containerId,
                                            Long processInstanceId,
                                            String completedNodeColor,
                                            String completedNodeBorderColor,
                                            String activeNodeBorderColor); @Override String getProcessDiagram(String serverTemplateId,
                                    String containerId,
                                    String processId);  }