private static JobLifeCycle deriveFinalJobStatus(boolean success) {
    return JobLifeCycle.builder()
      .setState(JobLifeCycle.State.ENDED)
      .setEndReason(success ? EndReason.SUCCESSFULLY_COMPLETED : EndReason.PARTIALLY_COMPLETED)
      .build();
  }
Process our job, whose metadata is available via {@link JobMetadata}.
portability-transfer/src/main/java/org/datatransferproject/transfer/JobProcessor.java