Package org.jitterbit.integration.data.entity

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


    @Before
    public void setup() {
        OperationType type = TransformationOperationType.TYPE;
        OperationType.load(type);
        project = IntegrationProject.createNewProject("Test");
        op = new Operation("Op");
        project.insertEntityUnderRoot(op);
        op.setOperationType(type);
        op.setPipeline(type.createNewTemplate());
        ((SourceActivity) op.getPipeline().getFirstActivity()).setContent(createSource());
        ((TargetActivity) op.getPipeline().getLastActivity()).setContent(createTarget());
View Full Code Here


    private Source source;

    @Before
    public void setup() {
        project = IntegrationProject.createNewProject("Test");
        op = new Operation("Op");
        op.setOperationType(TransformationOperationType.TYPE);
        project.insertEntityUnderRoot(op);
        source = new Source("Source");
        project.insertEntityUnderRoot(source);
        op.setSource(source);
View Full Code Here

   
    private SimpleValidatorMessageCollector collector;
   
    @Before
    public void setup() {
        Operation op = new Operation("Test");
        pipeline = ArchiveOperationType.TYPE.createNewTemplate();
        op.setPipeline(pipeline);
        collector = new SimpleValidatorMessageCollector();
        validator = new ArchivePipelineValidator(op, pipeline, collector);
    }
View Full Code Here

   
    private SimpleValidatorMessageCollector collector;
   
    @Before
    public void setup() {
        Operation op = new Operation("Test");
        pipeline = ScriptOperationType.TYPE.createNewTemplate();
        op.setPipeline(pipeline);
        collector = new SimpleValidatorMessageCollector();
        validator = new ScriptPipelineValidator(op, pipeline, collector);
    }
View Full Code Here

        }

        private void restoreOperation(Persistor p, Folder parent) {
            String name = restoreName(p);
            OperationId id = restoreId(p, OperationId.class);
            Operation op = new Operation(id, name);
            String scheduleId = p.getString(SCHEDULE_ID);
            if (scheduleId != null) {
                op.setScheduleId(new ScheduleId(scheduleId));
                op.setScheduleEnabled(p.getBoolean(SCHEDULE_ENABLED));
            }
            parent.addItem(op);
        }
View Full Code Here

    }

    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);
            }
View Full Code Here

            build(sibling, built);
        }
    }

    private void buildSuccessChain(OperationWrapper from, Set<Operation> built) {
        Operation successOp = getSuccessOp(from);
        if (successOp != null) {
            link(from, successOp, RouteType.SUCCESS);
            build(successOp, built);
        }
    }
View Full Code Here

            build(successOp, built);
        }
    }

    private void buildFailureChain(OperationWrapper from, Set<Operation> built) {
        Operation failureOp = getFailureOp(from);
        if (failureOp != null) {
            link(from, failureOp, RouteType.FAILURE);
            build(failureOp, built);
        }
    }
View Full Code Here

        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

    }

    private List<FlowChange> rebuildSiblingsFrom(OperationWrapper op) {
        Set<Operation> siblings = Sets.newHashSet();
        for (OperationId opId : op.getSiblingIds()) {
            Operation sibling = entityLookup.getEntity(opId, Operation.class);
            if (sibling != null) {
                siblings.add(sibling);
            }
        }
        return rebuildLinksFrom(op, RouteType.SIBLING, siblings);
View Full Code Here

TOP

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

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.