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

Examples of org.jitterbit.integration.data.entity.operation.pipeline.transformation.TransformationPipelineBrowser


    private static class TransformationConfiguration implements Configuration {

        @Override
        public void configure(Transformation tx, ContentProviderContext context) {
            TransformationPipelineBrowser browser = new TransformationPipelineBrowser(context.getPipeline());
            checkSource(tx, browser);
            checkTarget(tx, browser);
        }
View Full Code Here


            checkWebServiceCall(pipeline);
        }
    }

    private void checkTransformation(OperationPipeline pipeline) {
        TransformationPipelineBrowser browser = new TransformationPipelineBrowser(pipeline);
        Transformation tx = browser.getTransformation();
        if (tx != null) {
            if (tx.isXmlSourceEdi()) {
                Source s = browser.getSource();
                applyPluginToSourceOrTarget(s);
            }
            if (tx.isXmlTargetEdi()) {
                Target t = browser.getTarget();
                applyPluginToSourceOrTarget(t);
            }
        }
    }
View Full Code Here

        private Transformation getTransformationToTest(Operation op) {
            OperationPipeline pipeline = op.getPipeline();
            OperationType type = pipeline.getType();
            if (type == TransformationOperationType.TYPE) {
                return new TransformationPipelineBrowser(pipeline).getTransformation();
            } else if (type == WebServiceOperationType.TYPE) {
                return new WebServicePipelineBrowser(pipeline).getResponse();
            }
            throw new RuntimeException("An unexpected condition in the OperationTester.");
        }
View Full Code Here

     * wizard before this call).
     */
    public void doAdditionalConfiguration(OperationPipeline pipeline) {
        SourcePages sourcePages = (SourcePages) getSourcePages();
        Source source = sourcePages.getSource();
        TransformationPipelineBrowser browser = new TransformationPipelineBrowser(pipeline);
        browser.setSource(source);
    }
View Full Code Here

        operation.setConnectType(connectType);
    }

    private OperationPipeline createPipeline() {
        OperationPipeline pipeline = TransformationOperationType.TYPE.createNewTemplate();
        TransformationPipelineBrowser browser = new TransformationPipelineBrowser(pipeline);
        browser.setTransformation(transformation);
        PipelineAutoCompleter completer = new TransformationAutoCompleter(project.getItemLookup());
        completer.complete(pipeline, browser.getTransformationActivity());
        doAdditionalConfiguration(pipeline);
        return pipeline;
    }
View Full Code Here

     */
    @SuppressWarnings("unchecked")
    public void doAdditionalConfiguration(OperationPipeline pipeline) {
        XmlPageChain<Source> sourcePages = (XmlPageChain<Source>) getSourcePages();
        Source source = sourcePages.getLocation();
        TransformationPipelineBrowser browser = new TransformationPipelineBrowser(pipeline);
        browser.setSource(source);
    }
View Full Code Here

    private ScriptActivity script;

    @Before
    public void setUp() {
        pipeline = TransformationOperationType.TYPE.createNewTemplate();
        browser = new TransformationPipelineBrowser(pipeline);
        source = browser.getSourceActivity();
        tf = browser.getTransformationActivity();
        target = browser.getTargetActivity();
        script = new ScriptActivity("Script");
    }
View Full Code Here

     * wizard before this call).
     */
    public void doAdditionalConfiguration(OperationPipeline pipeline) {
        TargetPages targetPages = (TargetPages) getTargetPages();
        Target target = targetPages.getTarget();
        TransformationPipelineBrowser browser = new TransformationPipelineBrowser(pipeline);
        browser.setTarget(target);
    }
View Full Code Here

    @Test
    public void ensureSettingThePipelineWorks() {
        Operation op = new Operation("Op");
        op.setOperationType(ArchiveOperationType.TYPE);
        OperationPipeline pipeline = TransformationOperationType.TYPE.createNewTemplate();
        TransformationPipelineBrowser browser = new TransformationPipelineBrowser(pipeline);
        Source source = new Source("S");
        browser.getSourceActivity().setContent(source);
        Transformation tf = new Transformation("TF");
        browser.getTransformationActivity().setContent(tf);
        Target target = new Target("T");
        browser.getTargetActivity().setContent(target);
        op.setPipeline(pipeline);
        assertSame(pipeline.getType(), op.getOperationType());
        assertEquals(source.getID(), op.getSourceId());
        assertEquals(target.getID(), op.getTargetId());
        assertEquals(Arrays.asList(tf.getID()), op.getFunctionIDs());
View Full Code Here

    @Test
    public void ensureGetActivityForContentWorks() {
        OperationPipeline pipeline = TransformationOperationType.TYPE.createNewTemplate();
        assertSame(pipeline.getFirstActivity(), pipeline.getActivityWithContent(null));
        TransformationPipelineBrowser browser = new TransformationPipelineBrowser(pipeline);
        Target target = new Target("Target");
        assertNull(pipeline.getActivityWithContent(target));
        browser.getTargetActivity().setContent(target);
        assertSame(browser.getTargetActivity(), pipeline.getActivityWithContent(target));
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.operation.pipeline.transformation.TransformationPipelineBrowser

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.