Package org.xmlpull.infoset

Examples of org.xmlpull.infoset.XmlElement.attributeValue()


        String workflowID;
        switch (type) {
        case WORKFLOW_INITIALIZED:
        case WORKFLOW_TERMINATED:
            // Special cases
            workflowID = idElement.attributeValue(WOR_NS, SERVICE_ID_ATTRIBUTE);
            break;
        default:
            // Default
            workflowID = idElement.attributeValue(WOR_NS, WORKFLOW_ID_ATTRIBUTE);
            break;
View Full Code Here


            // Special cases
            workflowID = idElement.attributeValue(WOR_NS, SERVICE_ID_ATTRIBUTE);
            break;
        default:
            // Default
            workflowID = idElement.attributeValue(WOR_NS, WORKFLOW_ID_ATTRIBUTE);
            break;
        }
        if (workflowID == null || workflowID.length() == 0) {
            return null;
        }
View Full Code Here

        }
        XmlElement notificationSource = event.element(WOR_NS, NOTIFICATION_SOURCE_TAG);
        if (notificationSource == null) {
            throw new WorkflowRuntimeException("The notification should have " + NOTIFICATION_SOURCE_TAG + " element.");
        }
        String workflowInstanceID = notificationSource.attributeValue(WOR_NS, SERVICE_ID_ATTRIBUTE);
        if (workflowInstanceID == null) {
            throw new WorkflowRuntimeException("The notification should have " + SERVICE_ID_ATTRIBUTE + " attribute.");
        }
        try {
            return new URI(workflowInstanceID);
View Full Code Here

    public void generateODEBPEL(GpelProcess gpelProcess, String workflowName, WsdlDefinitions workflowWSDL,
            Map<String, WsdlDefinitions> wsdls) {

        XmlElement bpelXml = gpelProcess.xml();
        if (null != bpelXml.attributeValue(NAME)) {
            // already done
            return;
        }

        gpelProcess.xml().setAttributeValue(NAME, StringUtil.convertToJavaIdentifier(workflowName));
View Full Code Here

                try {
                    clonedElementElement = XMLUtil.deepClone(elementElement);
                } catch (UtilsException e) {
                    e.printStackTrace();
                }
                String typeString = clonedElementElement.attributeValue(WSConstants.TYPE_ATTRIBUTE);
                if (typeString == null) {
                    for (Object child : clonedElementElement.children()) {
                        if (child instanceof XmlElement) {
                            ((XmlElement) child).setParent(null);
                        }
View Full Code Here

        }

        if (elementElement == null) {
            throw new ComponentException("No element is defined for " + typeName);
        }
        String typesTargetNamespace = schemaElement.attributeValue(WSConstants.TARGET_NAMESPACE_ATTRIBUTE);
        String elementType = elementElement.attributeValue(WSConstants.TYPE_ATTRIBUTE);

        XmlElement sequenceElement;
        if (elementType == null) {
            // anonymous type
View Full Code Here

            throw new IllegalArgumentException("null");
        }
        XmlElement idElement = getIDElement(event);
        String nodeID = null;
        if (idElement != null) {
            nodeID = idElement.attributeValue(WOR_NS, WORKFLOW_NODE_ID_ATTRIBUTE);
        }
        if(nodeID == null){
           nodeID = event.element(NOTIFICATION_SOURCE_TAG).attributeValue(WOR_NS, WORKFLOW_NODE_ID_ATTRIBUTE);
        }
        if (nodeID == null) {
View Full Code Here

            throw new IllegalArgumentException("null");
        }
        XmlElement idElement = event.element(WOR_NS,NOTIFICATION_SOURCE_TAG);
        String nodeID = null;
        if (idElement != null) {
            nodeID = idElement.attributeValue(WOR_NS, WORKFLOW_EXPERIMENT_ID);
        }if(nodeID == null){
           nodeID = event.element(NOTIFICATION_SOURCE_TAG).attributeValue(WOR_NS, WORKFLOW_EXPERIMENT_ID);
        }
        if (nodeID == null) {
            nodeID = "";
View Full Code Here

        String workflowID;
        switch (type) {
        case WORKFLOW_INITIALIZED:
        case WORKFLOW_TERMINATED:
            // Special cases
            workflowID = idElement.attributeValue(WOR_NS, SERVICE_ID_ATTRIBUTE);
            break;
        default:
            // Default
            workflowID = idElement.attributeValue(WOR_NS, WORKFLOW_ID_ATTRIBUTE);
            break;
View Full Code Here

            // Special cases
            workflowID = idElement.attributeValue(WOR_NS, SERVICE_ID_ATTRIBUTE);
            break;
        default:
            // Default
            workflowID = idElement.attributeValue(WOR_NS, WORKFLOW_ID_ATTRIBUTE);
            break;
        }
        if (workflowID == null || workflowID.length() == 0) {
            return null;
        }
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.