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

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


        super(script, parent);
    }

    @Override
    public void selectActivity(OperationGraphController controller, OperationWrapperNode opNode) {
        ScriptActivity activity = getDataObject();
        ScriptContentProvider p = new ScriptContentProvider(
                        controller.getProject(),
                        ActivityContentAcceptor.create(controller, opNode, activity));
        controller.configureContentProvider(p, activity, opNode);
        p.selectExisting(activity);
View Full Code Here


    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

    @Test
    public void run() {
        OperationPipeline archive = ArchiveOperationType.TYPE.createNewTemplate();
        PipelineActivity source = archive.getFirstActivity();
        PipelineActivity target = archive.getNextActivity(source);
        PipelineActivity script = new ScriptActivity("Send Email");
        archive.insertLast(script);
        try {
            archive.removeActivity(source);
            fail();
        } catch (RemoveActivityVetoException ex) {
View Full Code Here

        collector.verify(ValidationStatus.INVALID);
    }
   
    @Test
    public void ensurePopulatedActivityIsConsideredValid() {
        ScriptActivity a = (ScriptActivity) pipeline.getFirstActivity();
        a.setContent(new Script("Script"));
        validator.validate();
        collector.verify(ValidationStatus.VALID);
    }
View Full Code Here

    }

    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

TOP

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

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.