Examples of XMLComplexElement


Examples of org.enhydra.shark.xpdl.XMLComplexElement

            parameters.add(param);
         }
         ApplicationMappingManager mm=SharkEngineManager.getInstance().getApplicationMapPersistenceManager();
         ApplicationMap tad=null;
         if (mm!=null) {
            XMLComplexElement cOwn=(XMLComplexElement)app.getParent().getParent();
            boolean isProcessApp=(cOwn instanceof WorkflowProcess);
            ApplicationMappingTransaction t=null;
            try {
               t = SharkUtilities.createApplicationMappingTransaction();
               tad= mm.getApplicationMap(
                                    t,
                                    XMLUtil.getPackage(app).getId(),
                                       ((isProcessApp)? cOwn.get("Id").toValue() : null),
                                    applicationId
                                   );
               SharkUtilities.commitMappingTransaction(t);
            } catch (RootException e) {
               SharkUtilities.rollbackMappingTransaction(t,e);
View Full Code Here

Examples of org.enhydra.shark.xpdl.XMLComplexElement

            parameters.add(param);
         }
         ApplicationMappingManager mm=SharkEngineManager.getInstance().getApplicationMapPersistenceManager();
         ApplicationMap tad=null;
         if (mm!=null) {
            XMLComplexElement cOwn=(XMLComplexElement)app.getParent().getParent();
            boolean isProcessApp=(cOwn instanceof WorkflowProcess);
            ApplicationMappingTransaction t=null;
            try {
               t = SharkUtilities.createApplicationMappingTransaction();
               tad= mm.getApplicationMap(
                                    t,
                                    XMLUtil.getPackage(app).getId(),
                                       ((isProcessApp)? cOwn.get("Id").toValue() : null),
                                    applicationId
                                  );
               SharkUtilities.commitMappingTransaction(t);
            } catch (RootException e) {
               SharkUtilities.rollbackMappingTransaction(t,e);
View Full Code Here

Examples of org.enhydra.shark.xpdl.XMLComplexElement

            parameters.add(param);
         }
         ApplicationMappingManager mm=SharkEngineManager.getInstance().getApplicationMapPersistenceManager();
         ApplicationMap tad=null;
         if (mm!=null) {
            XMLComplexElement cOwn=(XMLComplexElement)app.getParent().getParent();
            boolean isProcessApp=(cOwn instanceof WorkflowProcess);
            ApplicationMappingTransaction t=null;
            try {
               t = SharkUtilities.createApplicationMappingTransaction();
               tad= mm.getApplicationMap(
                                    t,
                                    XMLUtil.getPackage(app).getId(),
                                       ((isProcessApp)? cOwn.get("Id").toValue() : null),
                                    applicationId
                                   );
               SharkUtilities.commitMappingTransaction(t);
            } catch (RootException e) {
               SharkUtilities.rollbackMappingTransaction(t,e);
View Full Code Here

Examples of org.enhydra.shark.xpdl.XMLComplexElement

        }
        return true;
    }

    protected boolean validateId(XMLPanel pnl, XMLElement el) {
        XMLComplexElement cel = null;
        String newId = null;
        XMLPanel idPanel = null;
        if (el instanceof XMLAttribute) {
            XMLElement parent = el.getParent();
            if (parent instanceof XMLCollectionElement) {
                cel = (XMLCollectionElement) parent;
                newId = cel.get("Id").toValue();
                if (pnl.getValue() instanceof String) {
                    newId = ((String) pnl.getValue()).trim();
                    idPanel = pnl;
                }
            } else if (parent instanceof Package) {
                cel = (Package) parent;
                newId = cel.get("Id").toValue();
                if (pnl.getValue() instanceof String) {
                    newId = ((String) pnl.getValue()).trim();
                    idPanel = pnl;
                }
            }
        } else if (el instanceof XMLComplexElement) {
            cel = (XMLComplexElement) el;
            newId = cel.get("Id").toValue();
            idPanel = findPanel(pnl, cel.get("Id"));
            if (idPanel != null) {
                if (idPanel.getValue() instanceof String) {
                    newId = ((String) idPanel.getValue()).trim();
                }
            }
View Full Code Here

Examples of org.enhydra.shark.xpdl.XMLComplexElement

        }
        return true;
    }

    protected boolean validateName(XMLPanel pnl, XMLElement el) {
        XMLComplexElement cel = null;
        String newName = null;
        XMLPanel namePanel = null;
        if (el instanceof XMLAttribute) {
            XMLElement parent = el.getParent();
            if (parent instanceof XMLCollectionElement) {
                cel = (XMLCollectionElement) parent;
                newName = cel.get("Name").toValue();
                if (pnl.getValue() instanceof String) {
                    newName = ((String) pnl.getValue()).trim();
                    namePanel = pnl;
                }
            } else if (parent instanceof Package) {
                cel = (Package) parent;
                newName = cel.get("Name").toValue();
                if (pnl.getValue() instanceof String) {
                    newName = ((String) pnl.getValue()).trim();
                    namePanel = pnl;
                }
            }
        } else if (el instanceof XMLComplexElement) {
            cel = (XMLComplexElement) el;
            newName = cel.get("Name") != null ? cel.get("Name").toValue() : "";
            namePanel = findPanel(pnl, cel.get("Name"));
            if (namePanel != null) {
                if (namePanel.getValue() instanceof String) {
                    newName = ((String) namePanel.getValue()).trim();
                }
            }
View Full Code Here

Examples of org.enhydra.shark.xpdl.XMLComplexElement

                }
            } else if (el instanceof XMLComplexElement) {
                if (!tmplEl.toValue().equals("") && !tmplEl.toValue().equals(el.toValue())) {
                    ret = false;
                } else {
                    XMLComplexElement cmplxEl = (XMLComplexElement) el;
                    Iterator it = ((XMLComplexElement) tmplEl).toElementMap().entrySet().iterator();
                    while (it.hasNext()) {
                        Map.Entry me = (Map.Entry) it.next();
                        String subElName = (String) me.getKey();
                        XMLElement subEl = (XMLElement) me.getValue();
                        if (!subEl.isEmpty()) {
                            if (!compareToTemplate(topEl, cmplxEl.get(subElName), subEl)) {
                                ret = false;
                                break;
                            }
                        }
                    }
View Full Code Here

Examples of org.enhydra.shark.xpdl.XMLComplexElement

                            (String) info.getOldValue()),
                            (String) info.getNewValue());
                    updateSpecialInProgress = false;
                } else if (parent instanceof DataField || (parent instanceof FormalParameter && parent.getParent().getParent() instanceof WorkflowProcess)) {
                    updateSpecialInProgress = true;
                    XMLComplexElement pkgOrWp = (XMLComplexElement) parent.getParent().getParent();
                    List refs = null;
                    if (parent instanceof DataField) {
                        refs = JaWEManager.getInstance().getXPDLUtils().getDataFieldReferences(pkgOrWp, (String) info.getOldValue());
                    } else {
                        refs = JaWEManager.getInstance().getXPDLUtils().getFormalParameterReferences((WorkflowProcess) pkgOrWp,
View Full Code Here

Examples of org.enhydra.shark.xpdl.XMLComplexElement

                XPDLElementChangeInfo.SELECTED);
        return selectionEvent;
    }

    public boolean confirmDelete(List sel, XMLElement firstSelected) {
        XMLComplexElement pkgOrWP = getMainPackage();
        WorkflowProcess wp = XMLUtil.getWorkflowProcess(firstSelected);
        if (wp != null && wp != firstSelected) {
            pkgOrWP = wp;
        }
View Full Code Here

Examples of org.enhydra.shark.xpdl.XMLComplexElement

   protected Vector getRow(XMLElement elem) {
      Vector v = new Vector();
      if (elem instanceof XMLComplexElement) {
         Iterator itAllElems = columnsToShow.iterator();
         v = new Vector();
         XMLComplexElement cmel=(XMLComplexElement) elem;
         while (itAllElems.hasNext()) {
            String elName=(String)itAllElems.next();
            XMLElement el = cmel.get(elName);
            if (el!=null) {
               v.add(new XMLElementView(ipc,el, XMLElementView.TOVALUE));
            }
         }
      } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.