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

Examples of org.jitterbit.integration.data.entity.operation.flow.OperationWrapper


        }
        return false;
    }

    private void updateFlow() {
        OperationWrapper op = nodeToDelete.getDataObject();
        getFlow().deleteOperation(op);
    }
View Full Code Here


        OperationWrapper op = nodeToDelete.getDataObject();
        getFlow().deleteOperation(op);
    }
   
    private boolean isDeleteable() {
        OperationWrapper op = nodeToDelete.getDataObject();
        if (op == getFlow().getStartPoint()) {
            Alert.info("The selected operation is the main operation in this graph. " +
                    "It cannot be deleted.", "Cannot delete this node");
            return false;
        } else if (op.findIncomingRoute(RouteType.SCRIPTED) != null) {
            Alert.info("The selected operation is triggered through a RunOperation() " +
                    "call in a script. It cannot be deleted.", "Cannot delete this node");
            return false;
        } else {
            return true;
View Full Code Here

    private boolean isPotentialConflict() {
        if (!controller.isChangeAllowed(nodeToDelete)) {
            return true;
        }
        OperationWrapper op = nodeToDelete.getDataObject();
        Predicate<Route> condition = getRoutePredicate();
        for (Route r : op.findAllIncomingRoutes(condition)) {
            if (!controller.isChangeAllowed(r.getFrom())) {
                return true;
            }
        }
        for (Route r : op.findAllOutgoingRoutes(condition)) {
            OperationActivityWrapper to = r.getTo();
            if (to instanceof OperationWrapper && !controller.isChangeAllowed((OperationWrapper) to)) {
                return true;
            }
        }
View Full Code Here

            evt.dispatchTo(this);
        }

        @Override
        public void process(NewOperationPipelineChange c) {
            OperationWrapper op = c.getOperationWrapper();
            OperationWrapperNode node = operationNodes.get(op);
            List<PipelineActivityNode> oldChildren = node.getChildren();
            node.removeAllChildren();
            for (PipelineActivityNode child : oldChildren) {
                pipelineActivityNodes.remove(child.getDataObject());
View Full Code Here

        insertSuccessOp();
        lst.verify();
    }

    private OperationId insertSuccessOp() {
        OperationWrapper startWrapper = flow.getStartPoint();
        OperationId id = TestData.createSuccessOperation().getID();
        startWrapper.setSuccessOperationId(id);
        return id;
    }
View Full Code Here

        }

        private void update() {
            ProjectDependencies deps = project.getDependencyStore();
            for (OperationWrapperNode opNode : page.getGraph().getModel().getOperationNodes()) {
                OperationWrapper op = opNode.getDataObject();
                List<HttpEndpoint> endpoints = deps.getDependingObjects(op.getActivity())
                    .keepAll(EntityFilters.allOfType(EntityType.HttpEndpoint))
                    .transform(KongaFunctions.cast(HttpEndpoint.class));
                op.setHttpEndpointTriggers(endpoints);
            }
        }
View Full Code Here

   
    private void rebuildScriptSourceEdges(OperationWrapperNode opNode) {
        for (PipelineActivityNode child : opNode.getChildren()) {
            child.removeScriptSourceEdges();
        }
        OperationWrapper op = opNode.getDataObject();
        for (Route route : op.getOutgoingRoutes().keepAll(RoutePredicates.FROM_SCRIPT_SOURCE)) {
            PipelineActivityNode sourceNode = opNode.getChildFor(route.getSourceActivity());
            // When an scripted activity is deleted from the pipeline, there are two
            // separate events: one activityRemoved event, and then a FlowChanged event
            // from the OperationFlow. When we reach this point, the second event has not
            // have been processed yet, so the operation wrapper still has its
            // scripted routes, even though the scripted activity itself (and its node)
            // has been removed.
            if (sourceNode != null && op.getPipeline().contains(sourceNode.getDataObject())) {
                OperationWrapperNode linkedOpNode = operationNodes.get(route.getTo());
                ScriptSourceEdge edge = new ScriptSourceEdge(sourceNode, linkedOpNode);
                sourceNode.addOutgoingRoute(edge);
            }
        }
View Full Code Here

    public ExpandedOptionsPanel(OperationGraphController controller, OperationWrapperNode opNode) {
        this.controller = controller;
        this.opNode = opNode;
        panel = new InputPanel();
        OperationWrapper op = opNode.getDataObject();
        nameField = createNameField(op);
        typeSelector = createTypeSelector(op);
        optionsPanel = createOptionsPanel(op);
        onSuccessPanel = createSuccessPanel(controller.getExplorerSupport(), op);
        onFailurePanel = createFailurePanel(controller.getExplorerSupport(), op);
        schedulePanel = createSchedulePanel(controller.getExplorerSupport(), op);
        applyOperationTypeSpecificSettings(op.getPipeline().getType());
        doLayout();
        panel.setSendInputChangeEvents(true);
        panel.setSendUndoEvents(true);
    }
View Full Code Here

    public OperationNameSetter(OperationGraphController controller) {
        this.controller = controller;
    }
   
    public void setName(OperationWrapperNode opNode, String name) {
        OperationWrapper op = opNode.getDataObject();
        String oldName = op.getName();
        if (!oldName.equals(name) && controller.isChangeAllowed(op)) {
            UndoableEdit edit = new OperationWrapperRenameEdit(controller, op, name);
            op.setName(name);
            controller.fireGraphDataEdit(edit);
        }
    }
View Full Code Here

    public String getPresentationName() {
        return GraphResources.getString("OptionsEdit");
    }

    private void setOptions(OperationOptions options) {
        OperationWrapper op = locateOperation();
        if (op != null) {
            if (controller.isChangeAllowed(op)) {
                op.setOptions(options);
            }
        } else {
            Alert.error("This change cannot be undone/redone.", "Not Undoable/Redoable");
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.operation.flow.OperationWrapper

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.