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

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


        super(wsCall, parent);
    }

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


        super(target, parent);
    }

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

        super(tf, parent);
    }

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

            config.configure(tx, context);
        }
    }

    private Configuration getConfiguration(ContentProviderContext context) {
        OperationPipeline pipeline = context.getPipeline();
        OperationType type = pipeline.getType();
        if (type == TransformationOperationType.TYPE) {
            return new TransformationConfiguration();
        }
        if (type == WebServiceOperationType.TYPE) {
            return new WebServiceCallConfiguration();
View Full Code Here

        }
    }
   
    private boolean isInsertionPoint(PipelineActivityEdge edge) {
        OperationWrapperNode opNode = edge.from().getParent();
        OperationPipeline pipeline = opNode.getPipeline();
        ActivityInsertionPolicy policy = pipeline.getInsertionPolicy();
        return !policy.getAllowedActivities(edge.asConnectionPoint()).isEmpty();
    }
View Full Code Here

        }
        return menu;
    }
   
    private JPopupMenu createMenuForPipelineActivityEdge(PipelineActivityEdge edge) {
        OperationPipeline pipeline = getPipeline(edge);
        return connectionFactory.createPopupMenu(pipeline, edge.asConnectionPoint());
    }
View Full Code Here

    private boolean isPipelineEmpty(Operation op) {
        // Operations that are created through some form of wizard may have pipeline
        // content set before they are displayed.
        if (op.hasPipeline()) {
            OperationPipeline pipeline = op.getPipeline();
            for (PipelineActivity a : pipeline.getActivities()) {
                if (!a.isEmpty()) {
                    return false;
                }
            }
        }
View Full Code Here

    protected boolean isEnabledFor(OperationWrapperNode node) {
        return getWebServiceCall(node) != null;
    }

    private WebServiceCall getWebServiceCall(OperationWrapperNode node) {
        OperationPipeline pipeline = node.getPipeline();
        if (pipeline.getType() == HostedWebServiceOperationType.TYPE) {
            PipelineActivity a = pipeline.getFirstActivityOfType(PipelineActivityType.WEBSERVICECALL);
            return (WebServiceCall) a.getContent();
        }
        return null;
    }
View Full Code Here

    public void ensureSimpleScriptProcessWorks() {
        IntegrationProject project = IntegrationProject.createNewProject("Test");
        Operation op = new Operation("Op");
        project.insertEntityUnderRoot(op);
        op.setOperationType(ScriptOperationType.TYPE);
        OperationPipeline pipeline = ScriptOperationType.TYPE.createNewTemplate();
        Script script = new Script("S");
        project.insertEntityUnderRoot(script);
        ((ScriptActivity) pipeline.getFirstActivity()).setContent(script);
        op.setPipeline(pipeline);
        ProcessFilter filter = new ProcessFilter(op);
        assertTrue(filter.apply(op));
        assertTrue(filter.apply(script));
    }
View Full Code Here

   
   
    @Test
    public void insertPipelineActivity() {
        OperationWrapperNode opNode = model.getStartNode();
        OperationPipeline pipeline = opNode.getPipeline();
        Listener lst = new PipelineActivityInsertedListener();
        model.addModelListener(lst);
        pipeline.insertAfter(new ScriptActivity("S"), pipeline.getFirstActivity());
        lst.verify();
    }
View Full Code Here

TOP

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

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.