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

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


*/
public class ScriptRemovingPolicyJUnitTest {

    @Test
    public void test() {
        OperationPipeline pipeline = createPipelineWithSeveralScripts();
        removeAllButOneScript(pipeline);
        ensureLastScriptIsProtected(pipeline);
    }
View Full Code Here


        removeAllButOneScript(pipeline);
        ensureLastScriptIsProtected(pipeline);
    }

    private OperationPipeline createPipelineWithSeveralScripts() {
        OperationPipeline pipeline = ScriptOperationType.TYPE.createNewTemplate();
        for (int n = 2; n < 5; ++n) {
            pipeline.insertLast(new ScriptActivity("Script " + n));
        }
        return pipeline;
    }
View Full Code Here

        checkSuccessEmail(from);
        checkFailureEmail(from);
    }

    private void buildScriptedRoutes(OperationWrapper from, Set<Operation> built) {
        OperationPipeline pipeline = from.getPipeline();
        for (ScriptedLink link : pipeline.getScriptedOperationLinks(entityLookup)) {
            Operation linkedOp = (Operation) link.getMainObject();
            link(from, linkedOp, RouteType.SCRIPTED);
            for (PipelineActivity activity : pipeline.getActivitiesFor(link.getDependantObject())) {
                Route route = Route.fromScriptSource(activity, from, operations.get(linkedOp));
                from.addOutgoingRoute(route);
            }
            build(linkedOp, built);
        }
View Full Code Here

            op.removeOutgoingRoute(r);
        }
        List<FlowChange> changes = rebuildLinksFrom(
                op, RouteType.SCRIPTED, op.getPipeline().getScriptedOperations(entityLookup).getOperations());
        Set<Route> newScriptSourceRoutes = Sets.newHashSet();
        OperationPipeline pipeline = op.getPipeline();
        for (ScriptedLink link : pipeline.getScriptedOperationLinks(entityLookup)) {
            Operation linkedOp = (Operation) link.getMainObject();
            for (PipelineActivity activity : pipeline.getActivitiesFor(link.getDependantObject())) {
                Route route = Route.fromScriptSource(activity, op, operations.get(linkedOp));
                newScriptSourceRoutes.add(route);
                op.addOutgoingRoute(route);
            }
        }
View Full Code Here

                HostedWebServiceCallTemplate.SECOND_TRANSFORMATION);
        List<PipelineActivity> activities = Lists.newArrayList();
        activities.add(hws);
        activities.add(first_trans);
        activities.add(second_trans);
        return new OperationPipeline(HostedWebServiceOperationType.TYPE, activities);
    }
View Full Code Here

    // Listens to pipelineChanged() events on the original pipeline, triggered by
    // the operation being saved through some other OperationWrapper.
    private final OriginalPipelineListener originalPipelineListener;

    public OperationWrapper(Operation op) {
        this(op, new OperationPipeline(op.getPipeline()));
    }
View Full Code Here

                siblings = siblingsMemento;
                siblingsMemento = null;
            }
            siblingsMemento = null;
        }
        OperationPipeline old = this.pipeline;
        for (OperationPipelineListener lst : old.getAllPipelineListeners()) {
            old.removePipelineListener(lst);
            pipeline.addPipelineListener(lst);
        }
        this.pipeline = pipeline;
        fireChange(PIPELINE_PROPERTY, old, pipeline);
    }
View Full Code Here

            (tx.getOutputStructure() instanceof WebServiceResponseStructure);
    }

    @Override
    protected void configureDestination(Transformation tx, Operation operation) {
        OperationPipeline pipeline = createPipeline(tx);
        operation.setPipeline(pipeline);
    }
View Full Code Here

                        TransformationTemplate.TARGET);
        List<PipelineActivity> activities = Lists.newArrayList();
        activities.add(trans_source);
        activities.add(trans);
        activities.add(trans_target);
        return new OperationPipeline(TransformationOperationType.TYPE, activities);
    }
View Full Code Here

        }
        op.setSiblingOperations(newIds.toArray(new OperationId[newIds.size()]));
    }

    private void replacePipeline() {
        OperationPipeline original = op.getPipeline();
        OperationPipeline newPipeline = new OperationPipeline(original);
        for (PipelineActivity a : newPipeline.getActivities()) {
            visit(a);
        }
        op.setPipeline(newPipeline);
    }
View Full Code Here

TOP

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

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.