Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\admin\workflow\graph.jsp
<%/****************************************************************************** * Copyright (c) 2000-2004 e-Deal * * e-Deal S.A. * 55 rue Brillat Savarin * 75013 Paris * France * * T: +33 (0)1 53 80 80 30 * F: +33 (0)1 73 01 69 77 * http://www.e-deal.com * * La diffusion de ce code source sous quelque forme que ce soit sans * l'autorisation de E-DEAL est interdite. * * Vous êtes autorisés à modifier ce code source uniquement pour votre usage * propre et sous réserve que les mentions de copyright demeurent intactes. * * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour * responsable des dommages pouvant résulter de l'utilisation de ce code * source. * * ******************************************************************************/%> <%@page session="true"%> <%@ page import="java.util.ArrayList" %> <%@ page import="java.util.Vector" %> <%@ page import="java.util.Hashtable" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.AttachmentBean"%> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.FrontlineException" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.helper.GraphVizHelper" %> <%@ page import="com.edeal.frontline.helper.custom.WorkflowHelper" %> <%@ page import="org.apache.axis.encoding.Base64" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); DataDictionary dico = context.getDataDictionary(); String workflowGraph = (String)flRequest.getAttribute("WkfGraph"); workflowGraph = workflowGraph.substring(0, workflowGraph.trim().length()-1); StringBuilder graphSource = new StringBuilder(); graphSource.append(workflowGraph); GraphVizHelper gv = new GraphVizHelper(); gv.setDotSource(graphSource); String field = flRequest.getRequestParameterOrAttribute("field"); Vector<Hashtable> statusCodes = (Vector)flRequest.getAttribute("statusCodes"); int i = 1; for(Hashtable codeHash : statusCodes){ String codeDisp = ""; String code = (String)codeHash.get("Ref.RefVal"); try { String codeID = dico.getRefIdByCode(field, code); codeDisp = (String) dico.getRefDisp(field, codeID); } catch (FrontlineException e1) { logger.error(e1); } gv.addln("\""+codeDisp+"\\n("+code+")\\n\\n\\n\\n\" [shape=none, color=\"#55B1F1\", fontsize=8, fontcolor=\"#444444\", fontname=\"Arial, Verdana, sans-serif\", fillcolor=\"#BBEAFF\", image=\"__selected_status_icon__\"];"); if(i==statusCodes.size()){ gv.addln("\""+codeDisp+"\\n("+code+")\\n\\n\\n\\n\" [shape=none, color=\"#55B1F1\", fontsize=8, fontcolor=\"#444444\", fontname=\"Arial, Verdana, sans-serif\", fillcolor=\"#BBEAFF\", image=\"__current_status_icon__\"];"); } i++; } gv.addln(gv.end_graph()); AttachmentBean img = new AttachmentBean(context); String serviceError = ""; String img64 = ""; try{ img = WorkflowHelper.getGraphAsAnImg(context, gv.getDotSource(), "png"); Base64 base64 = new Base64(); img64 = base64.encode(img.getAttFile()); }catch(FrontlineException e){ serviceError = e.getMessage(); } %> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/checkFields.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/utils.js"></script> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/common_css.jsp"> <style type="text/css"> .button { border-style: solid; border-width: 1px; border-color: rgb(132, 166, 174); font-weight: bold; font-size: 11px; padding: 3px; } .popup-div { /*width: 800px;*/ } .popup-header { height : 25px; } .popup-title { float : left; font-family : Arial,Verdana,sans-serif; font-size : 12px; color : #000000; font-weight : bold; padding-left: 4px; padding-right: 4px; padding-top : 2px; vertical-align: middle; letter-spacing: 1px; } .popup-header .close-link { float : right; } .popup-body { height: 100%; margin-right:210px; } .popup-content { height: 99%; margin-top: 5px; margin-bottom: 5px; } </style> <script type="text/javascript" language="javascript"> function doClosePopUp(){ $.closePopupLayer('GraphPopup'); } </script> <table cellspacing="0" border="0"> <tr class="tooltip" height="10px"> <td class="corner" id="topleft" width="19px"><img src="<fl:webapp/>/icons/tooltip/bubble-1.png"/></td> <td class="top" style="background-image:url('<fl:webapp/>/icons/tooltip/bubble-2.png'); align: center"></td> <td class="corner" id="topright"><img src="<fl:webapp/>/icons/tooltip/bubble-3.png"/></td> </tr> <tr class="tooltip"> <td class="left" style="background-image:url('<fl:webapp/>/icons/tooltip/bubble-4.png');"></td> <td style="vertical-align: top;"> <table class="data_column, innerPopup" cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td nowrap="nowrap"> <div class="popup-div"> <div class="popup-content"> <table cellspacing="0" cellpadding="0" border="0" style="width: 500px; height: 200px"> <tr style="height: 43px;"> <td><img width="10" height="10" src="<fl:webapp/>/icons/spacer.gif"></td> <td width="98%" valign="top" colspan="3"> <table cellpadding="0" class="container" id="BTabs"> <tr> <td style="text-align: right; width: 15px;"><img style="width: 15px; height: 43px;" src="<fl:webapp/>/icons/nav/principal_onglet/ong_blanc_pos_1.gif"></td> <td class="ongletblanc"> <fl:getMessage code="FXXX" alt="Graphe du workflow"/> </td> <td class="actif-fin"></td> <td style="width: 90%; text-align: right; background: url("<fl:webapp/>/icons/nav/principal_onglet/fd_cell.gif") repeat scroll 0% 0% transparent;" class="tabRightSpace"></td> <td class="finTab"> </td> </tr> </table> </td> <td width="10"><img width="10" height="10" src="<fl:webapp/>/icons/spacer.gif"></td> </tr> <tr style="height: 100%;"> <td width="10"><img width="10" height="10" src="<fl:webapp/>/icons/spacer.gif"></td> <td width="15" background="<fl:webapp/>/icons/nav/principal_cadre/fd_cell_g.gif"><img width="15" height="42" src="<fl:webapp/>/icons/spacer.gif"></td> <td valign="top"> <div align="center"> <%if("".equals(serviceError)){ %> <img src="data:<%=img.getAttContentType()%>;base64,<%=img64 %>"/> <%}else{ %> <img src="<fl:webapp/>/js/progressbar/images/failure.png" title="<%=serviceError %>"/> <%} %> </div> </td> <td width="15" background="<fl:webapp/>/icons/nav/principal_cadre/fd_cell_d.gif"><img width="15" height="42" src="<fl:webapp/>/icons/spacer.gif"></td> <td width="10"><img width="10" height="10" src="<fl:webapp/>/icons/spacer.gif"></td> </tr> <tr style="height: 15px;"> <td width="10"><img width="10" height="10" src="<fl:webapp/>/icons/spacer.gif"></td> <td width="15"><img width="15" height="15" src="<fl:webapp/>/icons/nav/principal_cadre/cell_bas_g.gif"></td> <td width="98%" background="<fl:webapp/>/icons/nav/principal_cadre/fd_cell_bas_m.gif"><img width="15" height="15" src="<fl:webapp/>/icons/spacer.gif"></td> <td width="15"><img width="15" height="15" src="<fl:webapp/>/icons/nav/principal_cadre/cell_bas_d.gif"></td> <td width="10"><img width="10" height="10" src="<fl:webapp/>/icons/spacer.gif"></td> </tr> <tr style="height: 20px;"> <td colspan="5" style="text-align: center;"> <div id="popup_closer"><a title="<fl:getMessage code="A3035" alt="Fermer"/>" href="javascript:doClosePopUp();"><img src="<fl:webapp/>/icons/ico/fermer_red_long.gif" /></a></div> </td> </tr> </table> </div> </div> </td> </tr> </table> </td> <td class="right" style="background-image:url('<fl:webapp/>/icons/tooltip/bubble-5.png')" width="19px"></td> </tr> <tr class="tooltip"> <td class="corner" id="bottomleft" style="background-image:url('<fl:webapp/>/icons/tooltip/bubble-6.png')" ></td> <td class="bottom" style="background-image:url('<fl:webapp/>/icons/tooltip/bubble-7.png')" width="30" height="20"></td> <td class="corner" id="bottomright" style="background-image:url('<fl:webapp/>/icons/tooltip/bubble-8.png')"></td> </tr> </table>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de