Package org.jitterbit.integration.data.entity

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


                @Override
                public void run() {
                    ExpressionArea area = new ExpressionArea();
                    IntegrationProject project = IntegrationProject.createNewProject("Test");
                    Operation op = new Operation("Op");
                    project.insertEntityUnderRoot(op);
                    String oldPath = new EntityPath(op).toString();
                    String expression = getRunOperationCall(op);
                    area.setText(ScriptConstants.wrapInTags(expression));
                    op.setName("$Op");
                    String newPath = new EntityPath(op).toString();
                    PathChangeHandler changeHandler = new PathChangeHandler(area);
                    changeHandler.pathsHaveChanged(Arrays.asList(new PathChange(op, oldPath, newPath)));
                    String newExpression = area.getText();
                    assertTrue(newExpression.contains(getRunOperationCall(op)));
View Full Code Here


            if (project == null) {
                return;
            }
            DependencyStore dependencies = project.getCurrentDependencies();
            try {
                Operation op = getOperationToTest(dependencies, tx);
                if (op != null && isOperationTestable(op)) {
                    checkDeployAndRun(tx, op);
                }
            } finally {
                dependencies.dispose();
View Full Code Here

        private List<Operation> getAvailableOperations(ProjectDependencies dependencies, Transformation tx) {
            return dependencies.getDependingObjects(tx).transform(cast(Operation.class));
        }

        private Operation selectOperation(List<Operation> availableOps) {
            Operation op = null;
            if (availableOps.size() == 1) {
                op = availableOps.get(0);
            } else {
                EntitySelector<Operation> selector = new EntityListSelector<Operation>(availableOps, Operation.class);
                op = EntitySelectorDialog.selectOne(selector, UiUtils.getActiveWindow(), "Select an operation",
View Full Code Here

*/
public final class ActivityUtilsJUnitTest {

    @Test
    public void ensureIsValidTypeWorksForItems() {
        IntegrationEntity operation = new Operation("Test");
        assertTrue(isValidType(operation));
        IntegrationEntity schedule = new Schedule("Test");
        assertFalse(isValidType(schedule));
    }
View Full Code Here

*/
public final class PostCreationProcessorImpl implements PostCreationProcessor {

    @Override
    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());
        sourceHistoryOption.applyTo(op);
    }
View Full Code Here

    }

    @Override
    public final Wizard<?> createWizard(IntegrationEntity entity, Folder parent) {
        setShowInDialog(true);
        Operation operation = (Operation) entity;
        Wizard<Operation> wizard = createWizardImpl(operation, explorerSupport);
        Completer completer = new Completer(wizard, getProject(), getProjectPersistor(), parent, getPageDisplayer());
        completer.setWaitService(getWindow());
        wizard.addWizardListener(completer);
        createWizardDisplayer(wizard, ClientIcons.JITTERBIT_CONNECT_16);
View Full Code Here

        dlg.manageLocation();
        dlg.setVisible(true);
    }
   
    private void createContentPane(KongaDialog dlg) {
        Operation op = opNode.getDataObject().getActivity();
        HostedWebServiceUrlWidget w = new HostedWebServiceUrlWidget(op.getID());
        BoxBuilder bottom = BoxBuilder.horizontal();
        bottom.add(w.getCopyToClipboardButton()).glue().add(dlg.createCloseButton()).withEmptyBorder(20, 0, 0, 0);
        BorderLayoutBuilder cp = new BorderLayoutBuilder();
        cp.north(w).south(bottom);
        cp.setBorder(Empty.border(10));
View Full Code Here

            showInDialog();
        }
    }

    private OverlayContainer getOverlayContainer() {
        Operation mainOp = controller.getGraph().getModel().getStartNode().getDataObject().getActivity();
        OperationPage page = (OperationPage) controller.getView().getEditorForEntity(mainOp);
        OverlayContainer container = page.getOverlayContainer();
        return container;
    }
View Full Code Here

    private final GraphLayoutStore layoutStore;
   
    public DeleteLayoutFileAction(OperationGraphController controller) {
        super("Delete Layout File...", CommonIcons.DELETE_16);
        OperationId opId = controller.getGraph().getModel().getStartNode().getOperationId();
        Operation operation = controller.getEntityLookup().getEntity(opId, Operation.class);
        this.layoutStore = new GraphLayoutFileStore(operation);
    }
View Full Code Here

*/
public class SchedulePolicyJUnitTest {

    @Test
    public void run() {
        Operation op = new Operation("Test");
        Listener lst = new Listener();
        op.addPropertyChangeListener(Operation.SCHEDULE_POLICY, lst);
        assertEquals(op.getSchedulePolicy(), SchedulePolicy.getDefault());
        SchedulePolicy p = SchedulePolicy.STRICT;
        op.setSchedulePolicy(p);
        assertEquals(op.getSchedulePolicy(), p);
        p = SchedulePolicy.YIELD_IF_STILL_RUNNING;
        op.setSchedulePolicy(p);
        assertEquals(op.getSchedulePolicy(), p);
        lst.assertNumberOfNotifications(2);
    }
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.