Package org.jitterbit.integration.data.entity.id

Examples of org.jitterbit.integration.data.entity.id.OperationId


    @Test
    public void testValidEntry() {
        SourceHistoryEntryLineParser parser = new SourceHistoryEntryLineParser();
        SourceHistoryEntry e = parser.parse(VALID_ENTRY);
        assertEquals(28, e.getID());
        assertEquals(new OperationId("1520ead5-2a7a-43b3-93f2-5aa8b9c1832f"), e.getOperationId());
        assertEquals("Text > Text", e.getOperationName());
        assertEquals("\\\\linuxdoc\\source\\torgil\\tsc_1.txt", e.getSourceFiles());
        assertEquals(12, e.getFileSizeInBytes());
        assertEquals(ServerConversionUtils.fromServerDateFormat("2009-07-24 15:03:58"), e.getFileTimestamp());
        assertNull(parser.getNextSql());
View Full Code Here


                        ServerInfo serverInfo) {
            Map<Key, DefaultDataFilesInfo> map = Maps.newHashMap();
            WsDataFilesInfo wsFilesInfo = wsResult.getDataFileInfo();
            KongaGuid guid = KongaGuid.createGuid(wsFilesInfo.getGuid());
            for (WsDataFileInfo wsFile : wsFilesInfo.getDataFiles()) {
                OperationId opId = new OperationId(wsFile.getOperationGuid());
                TransformationId txId = new TransformationId(wsFile.getTransformationGuid());
                Key key = new Key(opId, txId);
                DefaultDataFilesInfo collection = map.get(key);
                if (collection == null) {
                    collection = new DefaultDataFilesInfo(guid, serverInfo, opId, txId);
View Full Code Here

        }
        return false;
    }

    private boolean doChange(OperationWrapperNode from, Operation to, RouteType routeType) {
        OperationId currentId = (routeType == RouteType.SUCCESS) ? from.getDataObject().getSuccessOperationId() :
            from.getDataObject().getFailureOperationId();
        OperationId newId = (to != null ? to.getID() : null);
        return differs(currentId, newId) && controller.isChangeAllowed(from);
    }
View Full Code Here

    private UndoableEdit createEdit(OperationWrapperNode from, Operation to, RouteType routeType) {
        return new NextOperationEdit(controller, from.getDataObject(), routeType, to);
    }

    private void updateFlow(OperationWrapperNode from, Operation to, RouteType routeType) {
        OperationId opId = (to != null ? to.getID() : null);
        if (routeType == RouteType.SUCCESS) {
            from.getDataObject().setSuccessOperationId(opId);
        } else {
            from.getDataObject().setFailureOperationId(opId);
        }
View Full Code Here

            }
        }
    }
   
    private void sendUndoableEdit(PipelineActivityNode node, IntegrationEntity previousContent) {
        OperationId opId = node.getParent().getOperationId();
        PipelineActivityPosition pos = node.getParent().getPipeline().getPosition(node.getDataObject());
        ActivityContentChangedEdit edit = new ActivityContentChangedEdit(
                        controller, opId, pos, null, previousContent.getID());
        controller.fireGraphDataEdit(edit);
    }
View Full Code Here

        private boolean confirmDisplayOfLargeTestFiles;

        public TestFileOpener(DataFilesInfo info, boolean startWithSourceFile) {
            this.startWithSourceFile = startWithSourceFile;
            OperationId opId = info.getOperationId();
            TransformationId txId = page.getObject().getID();
            sourceFileId = new DataFileIdentifier(opId, txId, DataFileType.SOURCE, 1, 1);
            linkFileId = new DataFileIdentifier(opId, txId, DataFileType.LINK, 1, 1);
            targetFileId = new DataFileIdentifier(opId, txId, DataFileType.TARGET, 1, 1);
        }
View Full Code Here

    private Date statusTime;
   
    @Override
    public synchronized void getOperationLog(OperationLogRequest request, GetOperationLogCallback callback) {
        if (where == 0) {
            opId = new OperationId();
        }
        long opInstanceId = (request.opInstanceId == null) ? 100L : request.opInstanceId;
        updateTimeStamps();
        LogStatus status = progression[where];
        OperationLogEntry entry;
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

    private EmailMessageId emailId;

    @Before
    public void setup() {
        opId = new OperationId();
        expression = createFunctionCall("RunOperation", opId);
        expression += ";";
        sourceId = new SourceId();
        expression += createFunctionCall("ReadFile", sourceId);
        expression += ";";
View Full Code Here

        ops.addOperation(createAsynchOp());
        return ops;
    }

    private TriggeredOperation createAsynchOp() {
        return new TriggeredOperation(new OperationId(), null, OperationRunMode.ASYNCHRONOUS, false);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.id.OperationId

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.