Package org.kie.remote.services.rest.graph.jaxb

Examples of org.kie.remote.services.rest.graph.jaxb.DiagramInfo


    }
    if (!nodeInstances.isEmpty()) {
      List<ActiveNodeInfo> result = new ArrayList<ActiveNodeInfo>();
      for (NodeInstanceLog nodeInstance: nodeInstances.values()) {
        boolean found = false;
        DiagramInfo diagramInfo = getDiagramInfo(processInstance.getProcessId());
        if (diagramInfo != null) {
            for (DiagramNodeInfo nodeInfo: diagramInfo.getNodeList()) {
              if (nodeInfo.getName().equals("id=" + nodeInstance.getNodeId())) {
                result.add(new ActiveNodeInfo(diagramInfo.getWidth(), diagramInfo.getHeight(), nodeInfo));
                found = true;
                break;
              }
            }
        } else {
View Full Code Here


       
        return null;
       
    }

    DiagramInfo result = new DiagramInfo();
    // TODO: diagram width and height?
    result.setWidth(932);
    result.setHeight(541);
    List<DiagramNodeInfo> nodeList = new ArrayList<DiagramNodeInfo>();
    if (process instanceof WorkflowProcess) {
      addNodesInfo(nodeList, ((WorkflowProcess) process).getNodes(), "id=");
    }
    result.setNodeList(nodeList);
    return result;
  }
View Full Code Here

TOP

Related Classes of org.kie.remote.services.rest.graph.jaxb.DiagramInfo

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.