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

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


        return retVal;
    }

    private void updateOperation(Operation operation) {
        // Add the transformation chain for the operation.
        final OperationPipeline pipeline = operation.getPipeline();
        if (pipeline != null) {
            DeployPipelineActivityVisitor visitor = new DeployPipelineActivityVisitor();
            List<PipelineActivity> activities = pipeline.getActivities();
            List<IntegrationId> functions = Lists.newArrayList();
            for (PipelineActivity activity : activities) {
                visitor.visit(activity);
                IntegrationId functionId = visitor.getFunctionId();
                if (functionId != null) {
View Full Code Here


        buildPipelineNodes(node);
        return node;
    }
   
    private void buildPipelineNodes(OperationWrapperNode parent) {
        OperationPipeline pipeline = parent.getDataObject().getPipeline();
        PipelineActivityNode prev = null;
        for (PipelineActivity activity : pipeline.getActivities()) {
            PipelineActivityNode node = NodeFactory.createNode(activity, parent);
            if (prev != null) {
                prev.addOutgoingRoute(new PipelineActivityEdge(prev, node));
            }
            prev = node;
View Full Code Here

            }
            checkDeployAndRun(tx, op);
        }

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

    public void process(IntegrationProject project, IntegrationEntity entity) {
        Operation op = (Operation) entity;
        if (!op.hasPipeline()) {
            OperationType type = DefaultOperationTypePreference.get();
            op.setOperationType(type);
            OperationPipeline pipeline = type.createNewTemplate();
            op.setPipeline(pipeline);
        }
        SchedulePolicy sp = DefaultSchedulePolicyPreference.get();
        op.setSchedulePolicy(sp);
        SourceHistoryOption sourceHistoryOption = new SourceHistoryOption(DefaultSourceHistorySettingPreference.INSTANCE.get());
View Full Code Here

        super(source, parent);
    }

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

        setOperationTypeImpl(d.opNode, d.type);
    }

    private boolean setOperationTypeImpl(OperationWrapperNode opNode, OperationType type) {
        if (opNode.getPipeline().getType() != type && controller.isChangeAllowed(opNode)) {
            OperationPipeline pipeline = activityCache.getPipeline(opNode, type);
            opNode.getDataObject().setPipeline(pipeline);
            return true;
        }
        return false;
    }
View Full Code Here

    private Folder getTransformationParent() {
        return folders.getTransformationParent(true);
    }

    private void configureOperation() {
        OperationPipeline pipeline = createPipeline();
        operation.setOperationType(pipeline.getType());
        operation.setPipeline(pipeline);
        operation.setConnectType(connectType);
    }
View Full Code Here

        operation.setPipeline(pipeline);
        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);
View Full Code Here

            this.opNode = opNode;
            pipelines = Maps.newHashMap();
        }
       
        public OperationPipeline getPipelineFor(OperationType type) {
            OperationPipeline current = opNode.getPipeline();
            if (type == current.getType()) {
                return current;
            }
            pipelines.put(current.getType(), current);
            OperationPipeline newPipeline = pipelines.get(type);
            if (newPipeline == null) {
                newPipeline = type.createNewTemplate();
                pipelines.put(type, newPipeline);
            }
            return newPipeline;
View Full Code Here

        addContentProviderActions(popup, activity, p);
    }

    @Override
    public void visit(SourceActivity activity) {
        OperationPipeline pipeline = opNode.getPipeline();
        EntityFilterProvider<SourceActivity> filter = pipeline.getType().getSourceActivityFilterProvider(pipeline);
        Receiver<Source> receiver = ActivityContentAcceptor.create(controller, opNode, activity);
        SourceContentProvider p = new SourceContentProvider(controller.getProject(), filter, receiver);
        configure(p);
        addContentProviderActions(popup, activity, p);
        SourceActivityNode sourceNode = (SourceActivityNode) activityNode;
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.