Package org.xmlpull.infoset

Examples of org.xmlpull.infoset.XmlNamespace


     */
    public static EventType getType(XmlElement event) {
        if (event == null) {
            throw new IllegalArgumentException("null");
        }
        XmlNamespace ns = event.getNamespace();
        String name = event.getName();
        if (XBAYA_EVENTS_NS.equals(ns)) {
            if (GOT_RESULT_EVENT_TAG.equals(name)) {
                return EventType.WORKFLOW_TERMINATED;
            } else {
View Full Code Here


     * @return
     */
    private String findNamespacePrefix(GpelProcess gpelProcess, QName messageQname) {
        Iterator<XmlNamespace> iterator = gpelProcess.xml().namespaces().iterator();
        while (iterator.hasNext()) {
            XmlNamespace xmlNamespace = (XmlNamespace) iterator.next();
            if (xmlNamespace.getName().equals(messageQname.getNamespaceURI())) {
                return xmlNamespace.getPrefix();
            }
        }

        throw new XBayaRuntimeException("Cannot locate the Namespace  for Qname:" + messageQname + " in the BPEL");
    }
View Full Code Here

                    throw new XBayaRuntimeException("Assign activity not found for the Invoke "
                            + next.xmlStringPretty());
                }

                GpelAssign assign = (GpelAssign) last;
                XmlNamespace ns = assign.xml().getNamespace();

                XmlElement container = XmlConstants.BUILDER.parseFragmentFromString("<dummyelement></dummyelement>");

                String portTypeattr = next.xml().attributeValue(PORT_TYPE_STR);
                String operation = next.xml().attributeValue(OPERATION_STR);
View Full Code Here

                if (last == null || !isAssign(last)) {
                    throw new XBayaRuntimeException("Assign activity not found for the Invoke" + next.xmlStringPretty());
                }

                // we are good and should add the header copy.
                XmlNamespace ns = last.xml().getNamespace();
                GpelAssignCopyFrom headerFrom = new GpelAssignCopyFrom(ns);
                headerFrom.xml().setAttributeValue(PART_STR, LEAD_HEADER_STR);
                headerFrom.xml().setAttributeValue(VARIABLE_STR, WORKFLOW_INPUT_STR);

                GpelAssignCopyTo headerTo = new GpelAssignCopyTo(ns);
View Full Code Here

    }

    private void addInitialReceive(GpelSequence sequence) {
        // Create a partner link
        String partnerLinkName = WORKFLOW_PARTNER_LINK;
        XmlNamespace partnerLinkTypeNS = this.workflowWSDL.getTargetNamespace();
        String partnerLinkTypeName = this.workflowPrefix + PARTNER_LINK_TYPE_SUFFIX;
        String myRollName = this.workflowPrefix + MY_ROLE_SUFFIX;

        this.process.addPartnerLink(partnerLinkName, partnerLinkTypeNS, partnerLinkTypeName, myRollName, null);
        this.workflowWSDL.addPartnerLinkTypeAndRoll(partnerLinkTypeName, myRollName,
View Full Code Here

TOP

Related Classes of org.xmlpull.infoset.XmlNamespace

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.