Examples of OperationId


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

        lst.verify();
    }

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

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

    }
   

    @Test
    public void testRemoveSuccessRoute() {
        OperationId id = insertSuccessOp();
        flow.getStartPoint().setFailureOperationId(id);
        Listener lst = new RemoveSuccessRouteListener();
        model.addModelListener(lst);
        flow.getStartPoint().setSuccessOperationId(null);
        lst.verify();
View Full Code Here

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

    }

   
    @Test
    public void testReplaceSuccessOperation() {
        OperationId firstId = insertSuccessOp();
        ReplaceSuccessOperationListener lst = new ReplaceSuccessOperationListener();
        model.addModelListener(lst);
        OperationId secondId = insertSuccessOp();
        lst.verify();
        assertEquals(firstId, lst.removedOpId);
        assertEquals(secondId, lst.insertedOpId);
    }
View Full Code Here

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

    }

    private SourceHistoryEntry buildEntryFromParts(String[] parts) {
        SourceHistoryEntryBuilder builder = new SourceHistoryEntryBuilder();
        // parts[0] is the project ID, which we are not interested in
        builder.setOperationId(new OperationId(parts[1]));
        builder.setOperationName(parts[2]);
        builder.setEntryId(Integer.parseInt(parts[3]));
        builder.setSourceFiles(parts[4]);
        builder.setFileSizeInBytes(Integer.parseInt(parts[5]));
        try {
View Full Code Here

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

            return;
    }
        lineNumber = wsBreakLocation.getLineNumber();
        String opGuid = wsBreakLocation.getOperationGuid();
        if (isNotEmpty(opGuid)) {
            integrationEntityId = new OperationId(opGuid);
        }
        String tranGuid = wsBreakLocation.getTransformationGuid();
        if (isNotEmpty(tranGuid)) {
            integrationEntityId = new TransformationId(tranGuid);
        }
View Full Code Here

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

        private final Function<WsOperationMessage, OperationLogMessage> messageFunction = new LogMessage();

        @Override
        public OperationLogEntry apply(WsOperationLogInstance ws) {
            OperationLogEntry e = new OperationLogEntry(
                        new OperationId(ws.getOperationGuid()),
                        ws.getOperationName(),
                        ws.getOperationInstanceId(),
                        LogStatus.fromServerId(ws.getStatus()),
                        fromServerDateFormat(ws.getStartTimeStamp()),
                        fromServerDateFormat(ws.getStatusTimeStamp()),
View Full Code Here

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

    public static final class QueueEntry implements Function<WsOperationLogInstance, OperationLogEntry> {

        @Override
        public OperationLogEntry apply(WsOperationLogInstance ws) {
            OperationLogEntry e = new OperationLogEntry(
                            new OperationId(ws.getOperationGuid()),
                            ws.getOperationName(),
                            ws.getOperationInstanceId(),
                            getStatus(ws).toLogStatus(),
                            null,
                            null,
View Full Code Here

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

    public static final class Progress implements Function<WsOperationProgress, OperationProgressMessage> {

        @Override
        public OperationProgressMessage apply(WsOperationProgress ws) {
            ProgressSnapshot snapshot = new ProgressSnapshot(ws.getSection(), ws.getMessage(), ws.getPercentageDone(), getEndTime(ws));
            return new OperationProgressMessage(new OperationId(ws.getOperationGuid()), ws.getOperationInstanceId(), snapshot);
        }
View Full Code Here

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

  public static OperationFactory getFactory() {
      return INSTANCE;
  }

    public Operation getInstance(String sName, String sId) {
        return new Operation(new OperationId(sId), sName);
    }
View Full Code Here

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

  public Operation getInstance(String sName, IntegrationEntityId id) {
    return new Operation((OperationId)id, sName);
  }

  public IntegrationEntity getInstance(StringKeyValuePairs keyValues) {
    OperationId opId = getOperationId( keyValues.get(Operation.OPERATION_ID) );
    String sName = keyValues.get(Operation.OPERATION_NAME);
    String sDesc = keyValues.get(Operation.DESCRIPTION);
    Operation operation = getInstance(sName, opId);
    operation.setDescription(sDesc);
    operation.setPropertyValues(keyValues);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.