Package org.jitterbit.integration.data.entity

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


        verifyAllIdsWereDetected(GrammarUtils.getAllIdsFromTransformation(lookup, tf.getID()));
    }

    @Test
    public void ensureGetIdsFromTransformationWorks() {
        Transformation tf = new Transformation("Test");
        tf.setMapList(Arrays.asList("A\t" + ScriptConstants.wrapInTags(expression + ";1")));
        IntegrationEntityMapLookup lookup = new IntegrationEntityMapLookup();
        lookup.addItem(tf);
        Set<SourceId> readFileIds = GrammarUtils.getIdsFromTransformation(lookup, tf.getID(), "ReadFile(", SourceId.class);
        assertEquals(1, readFileIds.size());
        assertTrue(readFileIds.contains(sourceId));
    }
View Full Code Here


   
    @Before
    public void setup() {
        op = new Operation("op");
        source = new Source("source");
        tf = new Transformation("tf");
        target = new Target("target");
        script = new Script("script");
        opCalledFromScript = new Operation("opCalledFromScript");
        deps = new Dependencies();
        addLinks(op, script, source, tf, target);
View Full Code Here

    @Override
    public boolean isDropAllowed(DropTargetDragEvent evt) {
        IntegrationEntity entity = getDraggedEntity(evt);
        if (entity instanceof Transformation) {
            Transformation tf = (Transformation) entity;
            TransformationActivityNode node = (TransformationActivityNode) getNode();
            if (browser.getRequestActivity() == node.getDataObject()) {
                return tf.getOutputStructure() instanceof WebServiceRequestStructure;
            }
            if (browser.getResponseActivity() == node.getDataObject()) {
                return tf.getInputStructure() instanceof WebServiceResponseStructure;
            }
        }
        return false;
    }
View Full Code Here

        this.wsCall = wsCall;
    }

    @Override
    public final void preProjectInsertion(IntegrationEntity e) {
        Transformation tx = (Transformation) e;
        setSuggestedName(tx);
        setStructure(wsCall, tx);
    }
View Full Code Here

        sourceTarget = st;
        pages = createPages(wizard, st);
    }

    private DatabaseStructureWizardPageChain createPages(TransformationWizard wizard, SourceTarget st) {
        Transformation tx = wizard.getTransformation();
        IntegrationEntityLookup lookup = wizard.getItemLookup();
        switch (st) {
        case Source:
            Source source = lookup.getEntity(tx.getSourceId(), Source.class);
            if (source != null) {
                return new DatabaseStructureWizardPageChain(wizard, source);
            }
            break;
        case Target:
            Target target = lookup.getEntity(tx.getTargetId(), Target.class);
            if (target != null) {
                return new DatabaseStructureWizardPageChain(wizard, target);
            }
            break;
        default:
View Full Code Here

*/
public final class TransformationSearchValuesCollector implements SearchValuesCollector {

    @Override
    public List<String> getValues(IntegrationEntity object) {
        Transformation tx = (Transformation) object;
        List<String> values = Lists.newArrayList();
        collect(tx.getInputStructure(), values);
        collect(tx.getOutputStructure(), values);
        return values;
    }
View Full Code Here

   
    private SourceBatchParams currentParams;
   
    @Before
    public void setUp() {
        tf = new Transformation("Test");
        originalParams = new SourceBatchParams(ORIGINAL_PATH, ORIGINAL_SIZE);
        tf.setSourceBatchParams(originalParams);
    }
View Full Code Here

        this.callback = callback;
    }

    @Override
    public void testTransformation() {
        Transformation tf = getTransformation();
        if (needsSourceData(tf) && loadSourceService.getSourceDataToken() == null) {
            promptForSourceData();
        } else {
            testWithExistingSourceData(tf);
        }
View Full Code Here

        MappingTreeDataService dataService = page.getTreeDataService();
        dataService.removeTargetData();
    }

    private void submitTestTransformationJob(SourceDataIdentifier sourceDataToken, ServerTestCallback callback) {
        Transformation tx = page.getObject();
        TestTransformationJob job = new TestTransformationJob(tx, sourceDataToken, page.getView()
                        .getPlatformDebugService(), callback);
        job.submit(page.getWaitService(), 0);
    }
View Full Code Here

        }
        return root;
    }

    private boolean isTargetComplexText(TreeMapper mapper) {
        Transformation tx = mapper.getTransformation();
        return tx.getOutputStructure() instanceof ComplexTextStructure;
    }
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.