Readme Update
Updating the client code to break when the transfer is completed and adding "start agent" part
diff --git a/README.md b/README.md
index ee92cac..e82505d 100755
--- a/README.md
+++ b/README.md
@@ -7,6 +7,7 @@
* Start SecretServiceApplication
* Start MftController
* Start ApiServiceApplication
+* Start the agent
## Building from the script
@@ -73,6 +74,9 @@
try {
TransferStateApiResponse transferState = client.getTransferState(TransferStateApiRequest.newBuilder().setTransferId(transferApiResponse.getTransferId()).build());
System.out.println("Latest Transfer State " + transferState.getState());
+ if (transferState.getState().equals("COMPLETED")) {
+ break;
+ }
} catch (Exception e) {
System.out.println("Errored " + e.getMessage());
@@ -81,4 +85,4 @@
}
}
}
-```
\ No newline at end of file
+```