Update MyFirstFlow.java

This commit is contained in:
Niamh25 2022-12-06 16:09:54 +00:00 committed by GitHub
parent d4c4f8d007
commit 4e6c74989f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,13 +28,13 @@ public class MyFirstFlow implements RPCStartableFlow {
@CordaInject @CordaInject
public JsonMarshallingService jsonMarshallingService; public JsonMarshallingService jsonMarshallingService;
// FlowMessaging establishes flow sessions between virtual nodes // FlowMessaging provides a service that establishes flow sessions between virtual nodes
// that send and receive payloads between them. // that send and receive payloads between them.
@CordaInject @CordaInject
public FlowMessaging flowMessaging; public FlowMessaging flowMessaging;
// MemberLookup looks for information about members of the virtual network // MemberLookup provides a service for looking up information about members of the virtual network which
// which this CorDapp operates in. // this CorDapp operates in.
@CordaInject @CordaInject
public MemberLookup memberLookup; public MemberLookup memberLookup;
@ -79,7 +79,7 @@ public class MyFirstFlow implements RPCStartableFlow {
// Receive a response from the responder flow. // Receive a response from the responder flow.
Message response = session.receive(Message.class); Message response = session.receive(Message.class);
// The return value of a RPCStartableFlow must always be a string. This string will pass // The return value of a RPCStartableFlow must always be a String. This will be passed
// back as the REST RPC response when the status of the flow is queried on Corda, or as the return // back as the REST RPC response when the status of the flow is queried on Corda, or as the return
// value from the flow when testing using the simulator. // value from the flow when testing using the simulator.
return response.message; return response.message;
@ -96,4 +96,4 @@ RequestBody for triggering the flow via http-rpc:
"otherMember":"CN=Bob, OU=Test Dept, O=R3, L=London, C=GB" "otherMember":"CN=Bob, OU=Test Dept, O=R3, L=London, C=GB"
} }
} }
*/ */