Examples of XmlTooling


Examples of org.intalio.tempo.workflow.task.xml.XmlTooling

    return writer.toString();
  }

  public Document createMessageAsDocument(HashMap map, String template)
      throws Exception {
    return new XmlTooling().parseXML(createMessage(map, template));
  }
View Full Code Here

Examples of org.intalio.tempo.workflow.task.xml.XmlTooling

                throw new RuntimeException("TMP did not return a correct message while calling init");
            OMElement response = new TMSResponseMarshaller(OM_FACTORY) {
                public OMElement marshalResponse(Document userProcessResponse) {
                    OMElement response = createElement("initProcessResponse");
                    OMElement userProcessResponseWrapper = createElement(response, "userProcessResponse");
                    userProcessResponseWrapper.addChild(new XmlTooling().convertDOMToOM(userProcessResponse, this.getOMFactory()));
                    return response;
                }
            }.marshalResponse(userProcessResponse);
            return response;
        } catch (Exception e) {
View Full Code Here

Examples of org.intalio.tempo.workflow.task.xml.XmlTooling

        OMElement omFormUrl = omFactory.createOMElement("formUrl", omNamespace, omInitProcessRequest);
        omFormUrl.setText(formUrl);

        OMElement omTaskOutput = omFactory.createOMElement("taskOutput", omNamespace, omInitProcessRequest);

        XmlTooling xmlTooling = new XmlTooling();
        if (input != null)
            omTaskOutput.addChild(xmlTooling.convertDOMToOM(input, omFactory));

        Options options = new Options();
        EndpointReference endpointReference = new EndpointReference(task.getProcessEndpoint().toString());
        options.setTo(endpointReference);
        options.setAction(task.getInitOperationSOAPAction());

        if (_logger.isDebugEnabled()) {
            _logger.debug(task + " was used to start the process with endpoint:" + task.getProcessEndpoint());
            _logger.debug("Request to Ode:\n" + omInitProcessRequest.toString());
        }

        ServiceClient client = getServiceClient();
        client.setOptions(options);
        try {
            options.setTimeOutInMilliSeconds(_httpTimeout);
            OMElement response = client.sendReceive(omInitProcessRequest);
            return xmlTooling.convertOMToDOM(response);
        } catch (Exception e) {
            _logger.error("Error while sending initProcessRequest:" + e.getClass(), e);
            throw AxisFault.makeFault(e);
        }
View Full Code Here

Examples of org.intalio.tempo.workflow.task.xml.XmlTooling

        OMElement request = new TMSMarshaller() {
            public OMElement marshalRequest() {
                OMElement request = createElement(complete ? "setOutputAndCompleteRequest" : "setOutputRequest");
                createElement(request, "taskId", taskID);
                OMElement data = createElement(request, "data");
                OMElement omOutput = new XmlTooling().convertDOMToOM(output, getOMFactory());
                data.addChild(omOutput);
                createElement(request, "participantToken", _participantToken);

                return request;
            }
View Full Code Here

Examples of org.intalio.tempo.workflow.task.xml.XmlTooling

        }
        if (input == null) {
            throw new RequiredArgumentException("input");
        }

        final XmlTooling xmlTooling = new XmlTooling();
        OMElement request = new TMSMarshaller() {
            public OMElement marshalRequest() {
                OMElement request = createElement("initRequest");
                createElement(request, "taskId", taskID);
                OMElement data = createElement(request, "input");
                OMElement omOutput = xmlTooling.convertDOMToOM(input, getOMFactory());
                data.addChild(omOutput);
                createElement(request, "participantToken", _participantToken);

                return request;
            }
        }.marshalRequest();

        OMElement response = sendRequest(request, TaskXMLConstants.TASK_NAMESPACE + "initProcess");
        OMElement userProcessResponseWrapper = response.getFirstElement();
        OMElement userProcessResponse = userProcessResponseWrapper.getFirstElement();

        return xmlTooling.convertOMToDOM(userProcessResponse);
    }
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.