Package com.founder.fix.fixflow.core.impl.flowgraphics.svg.to

Examples of com.founder.fix.fixflow.core.impl.flowgraphics.svg.to.SvgTerminateEndEventTo


    if (getBaseElement(bpmnShape.getBpmnElement()) instanceof EndEvent) {
      EndEvent endEvent=(EndEvent)getBaseElement(bpmnShape.getBpmnElement());
     
      for (EventDefinition eventDefinition : endEvent.getEventDefinitions()) {
        if(eventDefinition instanceof TerminateEventDefinition){
          return CommonNodeToSVG(bpmnShape, new SvgTerminateEndEventTo());
        }
        if(eventDefinition instanceof ErrorEventDefinition){
          return CommonNodeToSVG(bpmnShape, new SvgEndErrorEventTo());
        }
      }
View Full Code Here


  private static String comPath = "/svgcomponent/terminateEndEvent.xml";
 
  public String createComponent(SvgBaseTo svgTo) {
    String result = null;
    try {
      SvgTerminateEndEventTo steevent = (SvgTerminateEndEventTo)svgTo;
      InputStream in = SvgBench.class.getResourceAsStream(comPath);
      Document doc = XmlUtil.read(in);
      String str = doc.getRootElement().asXML();
      str = FlowSvgUtil.replaceAll(str, local_x, StringUtil.getString(steevent.getX()));
      str = FlowSvgUtil.replaceAll(str, local_y, StringUtil.getString(steevent.getY()));
      str = FlowSvgUtil.replaceAll(str, id, steevent.getId());
      str = FlowSvgUtil.replaceAll(str, text, steevent.getLabel());
      result = str;
    } catch (DocumentException e) {
      throw new FixFlowException("",e);
    }
    return result;
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.impl.flowgraphics.svg.to.SvgTerminateEndEventTo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.