Package xsul5.wsdl

Examples of xsul5.wsdl.WsdlDocumentation


        NodeImpl c = graph.getNode("c");
        NodeImpl d = graph.getNode("d");
        NodeImpl adder = graph.getNode(adder1ID);
        NodeImpl adder2 = graph.getNode(adder2ID);

        WsdlDefinitions workflowWSDL = workflow.getWorkflowWSDL();
        DSCUtil.convertToCWSDL(workflowWSDL, URI.create("http://example.com"));
        HashMap<String, String> inputMap = new HashMap<String, String>();
        inputMap.put("a", "2");
        inputMap.put("b", "3");
        inputMap.put("c", "4");
        inputMap.put("d", "5");
        sendNotification(workflowWSDL, null,
            WSDLUtil.getFirstOperation(workflowWSDL).getName(), inputMap, null, notifier);

        WsdlDefinitions adderWSDL = WsdlResolver.getInstance().loadWsdl(
                new File(XBayaPathConstants.WSDL_DIRECTORY + File.separator
                        + Adder.WSDL_PATH).toURI());

        HashMap<String, String> inputMap1 = new HashMap<String, String>();
        inputMap1.put("x", "2");
View Full Code Here


   */
  public void invoke(Workflow workflow, List<WSComponentPort> inputs, GSSCredential credentials,
      URI dscUrl, String odeEprEndingWithPort,
      LeadContextHeader leadContext) {
    try {
      WsdlDefinitions wsdl = workflow.getOdeInvokableWSDL(dscUrl,
          odeEprEndingWithPort);
      for (WSComponentPort componentPort : inputs) {
        if (null == componentPort.getValue()) {
          if (null != componentPort.getDefaultValue()) {
            componentPort.setValue(componentPort.getDefaultValue());
View Full Code Here

     * For debugging
     *
     * @param args
     */
    public static void main(String[] args) {
        WsdlDefinitions awsdl = WsdlResolver.getInstance().loadWsdl(
                DSCUtil.class, "wsdls/math/adder-awsdl.xml");
        WsdlDefinitions cwsdl = convertToCWSDL(awsdl, URI
                .create("http://localhost"));
        System.out.println(cwsdl.xmlStringPretty());
    }
View Full Code Here

        Map<String, WsdlDefinitions> WSDLMap = new HashMap<String, WsdlDefinitions>();
        Graph graph = workflow.getGraph();
        for (WSNode node : GraphUtil.getWSNodes(graph)) {
            String partnerLinkName = BPELScript.createPartnerLinkName(node
                    .getID());
            WsdlDefinitions wsdl = node.getComponent().getWSDL();
            if (WSDLUtil.isAWSDL(wsdl)) {
                wsdl = convertToCWSDL(WSDLUtil.deepClone(wsdl), dscURL);
            }
            WSDLMap.put(partnerLinkName, wsdl);
        }
View Full Code Here

            processResource.setXmlContent(process.xml());
        }

        // WSDL for the process
        workflowWSDLresource = wsdlResourceMap.remove(PROCESS_WSDL_TYTLE);
        WsdlDefinitions workflowWSDL = workflow.getWorkflowWSDL();
        logger.finest(workflowWSDL.xmlString());
        if (workflowWSDLresource == null) {
            workflowWSDLresource = new GcWsdlResource(PROCESS_WSDL_TYTLE,
                    workflowWSDL);
            links.add(workflowWSDLresource);
        } else {
            workflowWSDLresource.setXmlContent(workflowWSDL.xml());
        }

        Map<String, WsdlDefinitions> wsdlMap = workflow.getWSDLs();
        for (String id : wsdlMap.keySet()) {
            WsdlDefinitions wsdl = wsdlMap.get(id);
            GcWsdlResource wsdlResource = wsdlResourceMap.remove(id);
            if (wsdlResource == null) {
                wsdlResource = new GcWsdlResource(id, wsdl);
                links.add(wsdlResource);
            } else {
                wsdlResource.setXmlContent(wsdl.xml());
            }
        }

        // Remove the rest of unused WSDL from the links.
        for (GcWsdlResource resource : wsdlResourceMap.values()) {
View Full Code Here

        GpelProcess process = new GpelProcess(processResource.getXmlContent());
        workflow.setGpelProcess(process);

        // WSDL for the process
        workflowWSDLresource = wsdlResourceMap.remove(PROCESS_WSDL_TYTLE);
        WsdlDefinitions workflowWSDL = new WsdlDefinitions(workflowWSDLresource
                .getXmlContent());
        workflow.setWorkflowWSDL(workflowWSDL);

        // WSDLs for services.
        for (String wsdlID : wsdlResourceMap.keySet()) {
            GcWsdlResource wsdlResource = wsdlResourceMap.get(wsdlID);
            WsdlDefinitions definition = new WsdlDefinitions(wsdlResource
                    .getXmlContent());
            workflow.addWSDL(wsdlID, definition);
        }

        // Graph
View Full Code Here

            Graph graph = workflow.getGraph();
            for (WSNode node : GraphUtil.getNodes(graph, WSNode.class)) {
                String partnerLinkName = BPELScript.createPartnerLinkName(node
                        .getID());
                logger.finest("partnerLinkName: " + partnerLinkName);
                WsdlDefinitions wsdl = node.getComponent().getWSDL();
                logger.finest("WSDL QName: " + WSDLUtil.getWSDLQName(wsdl));

                if (WSDLUtil.isAWSDL(wsdl)) {
                    URI subWorkflowTemplateID = WorkflowComponent
                            .getWorkflowTemplateID(wsdl);
View Full Code Here

            URI instanceID = instance.getInstanceId();
            logger.info("instanceID: " + instanceID);
            workflow.setGPELInstanceID(instanceID);

            for (String partnerLinkName : wsdlMap.keySet()) {
                WsdlDefinitions wsdl = wsdlMap.get(partnerLinkName);
                logger.info("partnerLinkName: " + partnerLinkName);
                logger.info("WSDL QName: " + WSDLUtil.getWSDLQName(wsdl));

                GcUsesWsdlResource wsdlResource = new GcUsesWsdlResource(
                        partnerLinkName, wsdl);
View Full Code Here

            String workflowPartnerLinkName = BPELScript.WORKFLOW_PARTNER_LINK;
            GcProvidesWsdlResource workflowPublicWsdl = (GcProvidesWsdlResource) instance
                    .getLinkWithTitleAndRel(workflowPartnerLinkName,
                            GcProvidesWsdlResource.REL);

            WsdlDefinitions workflowCWSDL = new WsdlDefinitions(
                    workflowPublicWsdl.getXmlContent());
            return workflowCWSDL;
        } catch (RuntimeException e) {
            String message = "Error while starting a workflow instance. instance ID: "
                    + instanceID;
View Full Code Here

        }

        MonitorConfiguration monitorConfiguration = this.engine.getMonitor()
                .getConfiguration();
        XBayaConfiguration xbayaConfiguration = this.engine.getConfiguration();
        WsdlDefinitions wsdl;
        try {
            GcInstance instance = client.instantiate(workflow,
                    xbayaConfiguration.getDSCURL(), monitorConfiguration
                            .getTopic());
            wsdl = client.start(instance);
View Full Code Here

TOP

Related Classes of xsul5.wsdl.WsdlDocumentation

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.