Package org.jitterbit.integration.data.entity.operation.pipeline

Examples of org.jitterbit.integration.data.entity.operation.pipeline.TransformationActivity


    }

    @Override
    public void selectActivity(OperationGraphController controller, OperationWrapperNode opNode) {
        OperationPipeline pipeline = opNode.getPipeline();
        TransformationActivity activity = getDataObject();
        TransformationContentProvider p = new TransformationContentProvider(
                        controller.getProject(),
                        pipeline.getType().getTransformationActivityFilterProvider(pipeline),
                        ActivityContentAcceptor.create(controller,opNode, activity));
        controller.configureContentProvider(p, activity, opNode);
View Full Code Here


public class HostedWebServicePipelineFactory implements OperationPipelineFactory {

    @Override
    public OperationPipeline createPipeline(Operation op, IntegrationEntityLookup lookup) {
        HostedWebServiceCallChain hostedChain = new HostedWebServiceCallChain(op, lookup);
        TransformationActivity first_trans = TransformationActivity.newInstance(hostedChain.getFirstTransformation(),
                HostedWebServiceCallTemplate.FIRST_TRANSFORMATION);
        WebServiceCallActivity hws = WebServiceCallActivity.newInstance(hostedChain.getWebServiceCall(),
                HostedWebServiceCallTemplate.WEBSERVICECALL);
        TransformationActivity second_trans = TransformationActivity.newInstance(hostedChain.getSecondTransformation(),
                HostedWebServiceCallTemplate.SECOND_TRANSFORMATION);
        List<PipelineActivity> activities = Lists.newArrayList();
        activities.add(hws);
        activities.add(first_trans);
        activities.add(second_trans);
View Full Code Here

    private boolean isTransformationSelfContained(Transformation tf, WebServiceCall wsCall) {
        return wsCall.getOutputStructure().equals(tf.getOutputStructure());
    }

    private void removeSecondTransformation(OperationPipeline pipeline, HostedWebServicePipelineBrowser browser) {
        TransformationActivity second = browser.getSecondTransformationActivity();
        if (second != null) {
            pipeline.removeActivity(second);
        }
    }
View Full Code Here

            checkTransformation(activity);
        }
    }

    private void checkTransformation(PipelineActivity activity) throws RemoveActivityVetoException {
        TransformationActivity tf = (TransformationActivity) activity;
        if (isRequestTransformation(tf)) {
            throw new RemoveActivityVetoException(
                            "The request transformation cannot be removed from a web service operation");
        } else if (isResponseTransformation(tf)) {
            throw new RemoveActivityVetoException(
View Full Code Here

    @Override
    public OperationPipeline createPipeline(Operation op, IntegrationEntityLookup lookup) {
        SourceActivity trans_source = SourceActivity.newInstance(lookup.getEntity(op.getSourceId(), Source.class),
                        TransformationTemplate.SOURCE);
        TransformationActivity trans = TransformationActivity.newInstance(lookup.getEntity(op.getTransformationId(),
                        Transformation.class), TransformationTemplate.TRANSFORMATION);
        TargetActivity trans_target = TargetActivity.newInstance(lookup.getEntity(op.getTargetId(), Target.class),
                        TransformationTemplate.TARGET);
        List<PipelineActivity> activities = Lists.newArrayList();
        activities.add(trans_source);
View Full Code Here

    public Transformation getTransformation() {
        return getFirstContent(PipelineActivityType.TRANSFORMATION, Transformation.class);
    }
   
    public void setTransformation(Transformation tf) {
        TransformationActivity a = (TransformationActivity) getPipeline().getFirstActivityOfType(
                        PipelineActivityType.TRANSFORMATION);
        a.setContent(tf);
    }
View Full Code Here

        SourceActivity ws_source = SourceActivity.newInstance(lookup.getEntity(op.getSourceId(), Source.class),
                        WebServiceCallTemplate.SOURCE);
        TargetActivity ws_target = TargetActivity.newInstance(lookup.getEntity(op.getTargetId(), Target.class),
                        WebServiceCallTemplate.TARGET);
        WebServiceCallChain chain = new WebServiceCallChain(op, lookup);
        TransformationActivity request = TransformationActivity.newInstance(chain.getRequestTransformation(),
                        WebServiceCallTemplate.REQUEST);
        WebServiceCallActivity ws = WebServiceCallActivity.newInstance(chain.getWebServiceCall(),
                        WebServiceCallTemplate.WEBSERVICECALL);
        TransformationActivity response = TransformationActivity.newInstance(chain.getResponseTransformation(),
                        WebServiceCallTemplate.RESPONSE);
        List<PipelineActivity> activities = Lists.newArrayList();
        activities.add(ws_source);
        activities.add(request);
        activities.add(ws);
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.operation.pipeline.TransformationActivity

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.