Examples of YSpecification


Examples of au.edu.qut.yawl.elements.YSpecification

        try {
            _userList.checkConnection(sessionHandle);
        } catch (YAuthenticationException e) {
            return OPEN_FAILURE + e.getMessage() + CLOSE_FAILURE;
        }
        YSpecification spec = _engine.getProcessDefinition(specID);
        if (spec == null) {
            return
                    OPEN_FAILURE + "Specification with ID (" +
                    specID +
                    ") not found.<failure><reason>";
View Full Code Here

Examples of au.edu.qut.yawl.elements.YSpecification

        }
        Set specIDs = _engine.getSpecIDs();
        Set specs = new HashSet();
        for (Iterator iterator = specIDs.iterator(); iterator.hasNext();) {
            String specID = (String) iterator.next();
            YSpecification spec = _engine.getSpecification(specID);
            specs.add(spec);
        }
        return getDataForSpecifications(specs);
    }
View Full Code Here

Examples of au.edu.qut.yawl.elements.YSpecification

    private String getDataForSpecifications(Set specSet) {
        StringBuffer specs = new StringBuffer();
        for (Iterator iterator = specSet.iterator(); iterator.hasNext();) {
            specs.append("<specificationData>");
            YSpecification spec = (YSpecification) iterator.next();
            specs.append("<id>").
                    append(spec.getID()).
                    append("</id>");
            if (spec.getName() != null) {
                specs.append("<name>").
                        append(spec.getName()).
                        append("</name>");
            }
            if (spec.getDocumentation() != null) {
                specs.append("<documentation>").
                        append(spec.getDocumentation()).
                        append("</documentation>");
            }
            Iterator inputParams = spec.getRootNet().getInputParameters().values().iterator();
            if (inputParams.hasNext()) {
                specs.append("<params>");
                while (inputParams.hasNext()) {
                    YParameter inputParam = (YParameter) inputParams.next();
                    specs.append(inputParam.toSummaryXML());
                }
                specs.append("</params>");
            }
            specs.append("<rootNetID>").
                    append(spec.getRootNet().getID()).
                    append("</rootNetID>");
            specs.append("<version>").
                    append(spec.getBetaVersion()).
                    append("</version>");

            specs.append("<status>").
                    append(_engine.getLoadStatus(spec.getID())).
                    append("</status>");
            specs.append("</specificationData>");
        }
        return specs.toString();
    }
View Full Code Here

Examples of au.edu.qut.yawl.elements.YSpecification

        List specificationElemList = specificationSetElem.getChildren();
        for (int i = 0; i < specificationElemList.size(); i++) {
            Element xmlSpecification = (Element) specificationElemList.get(i);

            YSpecificationParser specParse = new YSpecificationParser(xmlSpecification, version);
            YSpecification spec = specParse.getSpecification();
            specifications.add(spec);
        }
        return specifications;
    }
View Full Code Here

Examples of au.edu.qut.yawl.elements.YSpecification

                "xmlns=\"http://www.citi.qut.edu.au/yawl\" " +
                "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " +
                "xsi:schemaLocation=\"http://www.citi.qut.edu.au/yawl " +
                "d:/yawl/schema/YAWL_SchemaBeta7.1.xsd\">");
        for (int i = 0; i < specificationList.size(); i++) {
            YSpecification specification = (YSpecification) specificationList.get(i);
            xml.append(specification.toXML());
        }
        xml.append("</specificationSet>");

        SAXBuilder builder = new SAXBuilder();
        Document finalDoc = null;
View Full Code Here

Examples of au.edu.qut.yawl.elements.YSpecification

                String decompType = type.getValue();
                _decompAndTypeMap.put(decompID, decompType);
            }
        }
        String uriString = specificationElem.getAttributeValue("uri");
        _specification = new YSpecification(uriString);
        _specification.setBetaVersion(version);
        _specification.setMetaData(parseMetaData(specificationElem));
        String name = specificationElem.getChildText("name", _yawlNS);
        String documentation = specificationElem.getChildText("documentation", _yawlNS);
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.