Package org.jitterbit.integration.data.entity

Examples of org.jitterbit.integration.data.entity.Transformation


            fatal("No web service call specified");
        }
    }
   
    private void validateTransformations() {
        Transformation first = browser.getFirstTransformation();
        Transformation second = browser.getSecondTransformation();
        if (first != null) {
            if (second == null || second == first) {
                validateSingleTransformation(first);
            } else {
                validateDoubleTransformation(first, second);
View Full Code Here


    @Override
    public OperationFunctions collect(OperationPipeline pipeline) {
        List<Function> funcs = Lists.newArrayList();
        TransformationId tfId = null;
        HostedWebServicePipelineBrowser browser = new HostedWebServicePipelineBrowser(pipeline);
        Transformation first = browser.getFirstTransformation();
        if (first != null) {
            funcs.add(first);
            tfId = first.getID();
            // For backwards compatibility: do not add the second transformation to the list if the
            // first transformation is null
            Transformation second = browser.getSecondTransformation();
            if (second != null) {
                funcs.add(second);
            }
        }
        return new OperationFunctions(funcs, tfId);
View Full Code Here

        private boolean evaluate(Transformation tf) {
            if (wsCall != null && !wsCall.getInputStructure().equals(tf.getInputStructure())) {
                return false;
            }
            Transformation second = getSecondTransformation();
            if (second != null && !second.acceptsOutputFrom(tf)) {
                return false;
            }
            return tf.getInputStructure().getStructureType() == DataStructureType.WebServiceRequest;
        }
View Full Code Here

        private boolean evaluate(Transformation tf) {
            if (wsCall != null && !wsCall.getOutputStructure().equals(tf.getOutputStructure())) {
                return false;
            }
            Transformation first = getFirstTransformation();
            if (first != null && !tf.acceptsOutputFrom(first)) {
                return false;
            }
            return tf.getOutputStructure().getStructureType() == DataStructureType.WebServiceResponse;
        }
View Full Code Here

    public void complete(OperationPipeline pipeline, PipelineActivity a) {
        HostedWebServicePipelineBrowser browser = new HostedWebServicePipelineBrowser(pipeline);
        if (a != browser.getFirstTransformationActivity()) {
            return;
        }
        Transformation tf = (Transformation) a.getContent();
        if (tf == null) {
            return;
        }
        DataStructure input = tf.getInputStructure();
        if (!(input instanceof WebServiceRequestStructure)) {
            return;
        }
        WebServiceCall wsCall = lookupWsCall(((WebServiceRequestStructure) input).getWebServiceCallId());
        if (browser.getWebServiceCall() == null) {
View Full Code Here

            pages = LdapStructurePageChain.newSourceChain(wizard, explorer);
            setPreselectedSource(wizard);
        }

        private void setPreselectedSource(TransformationWizard wizard) {
            Transformation tx = wizard.getTransformation();
            SourceId sourceId = tx.getSourceId();
            if (sourceId != null) {
                IntegrationEntityLookup itemLookup = wizard.getItemLookup();
                Source src = itemLookup.getEntity(sourceId, Source.class);
                if (src != null) {
                    DataLocation location = src.getLocation();
View Full Code Here

    @Override
    public OperationFunctions collect(OperationPipeline pipeline) {
        List<Function> funcs = Lists.newArrayList();
        TransformationId tfId = null;
        TransformationPipelineBrowser browser = new TransformationPipelineBrowser(pipeline);
        Transformation tf = browser.getTransformation();
        if (tf != null) {
            funcs.add(tf);
            tfId = tf.getID();
        }
        return new OperationFunctions(funcs, tfId);
    }
View Full Code Here

    public void validate() {
        validateWsCall();
        if (wsCall == null) {
            return;
        }
        Transformation request = getRequest();
        if (request != null) {
            validateRequest(request);
        }
        Transformation response = getResponse();
        if (response != null) {
            validateResponse(response);
        }
    }
View Full Code Here

            fatal("No web service call specified");
        }
    }
   
    private Transformation getRequest() {
        Transformation request = browser.getRequest();
        if (request == null) {
            fatal("No request transformation selected");
        }
        return request;
    }
View Full Code Here

            fatal("The request transformation is not compatible with the selected web service call");
        }
    }
   
    private Transformation getResponse() {
        Transformation response = browser.getResponse();
        if (response == null) {
            fatal("No response transformation selected");
        }
        return response;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.Transformation

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.