Finished tweaking comments
This commit is contained in:
parent
8e6081875b
commit
7062445a2e
@ -4,7 +4,7 @@ plugins {
|
|||||||
id 'org.jetbrains.kotlin.jvm'
|
id 'org.jetbrains.kotlin.jvm'
|
||||||
|
|
||||||
// Include the cordapp-cpb plugin. This automatically includes the cordapp-cpk plugin as well.
|
// Include the cordapp-cpb plugin. This automatically includes the cordapp-cpk plugin as well.
|
||||||
// These extend existing build environment so that CPB and CPK files can be built.
|
// These extend the existing build environment so that CPB and CPK files can be built.
|
||||||
// This includes a CorDapp DSL that allows the developer to supply metadata for the CorDapp
|
// This includes a CorDapp DSL that allows the developer to supply metadata for the CorDapp
|
||||||
// required by Corda.
|
// required by Corda.
|
||||||
id 'net.corda.plugins.cordapp-cpb2'
|
id 'net.corda.plugins.cordapp-cpb2'
|
||||||
@ -67,7 +67,7 @@ dependencies {
|
|||||||
// Corda API specified.
|
// Corda API specified.
|
||||||
cordaProvided platform("net.corda:corda-api:$cordaApiVersion")
|
cordaProvided platform("net.corda:corda-api:$cordaApiVersion")
|
||||||
|
|
||||||
// If using transistive dependencies this will provide most of Corda-API:
|
// If using transistive dependencies this will provide most of the Corda-API:
|
||||||
// cordaProvided 'net.corda:corda-application'
|
// cordaProvided 'net.corda:corda-application'
|
||||||
|
|
||||||
// Alternatively we can explicitly specify all our Corda-API dependencies:
|
// Alternatively we can explicitly specify all our Corda-API dependencies:
|
||||||
|
@ -11,7 +11,7 @@ import org.slf4j.Logger;
|
|||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
|
||||||
// MyFirstFlowResponder is a responder flow, it's corresponding initiating flow is called MyFirstFlow (defined in MyFirstFlow.java)
|
// MyFirstFlowResponder is a responder flow, its corresponding initiating flow is called MyFirstFlow (defined in MyFirstFlow.java)
|
||||||
// to link the two sides of the flow together they need to have the same protocol.
|
// to link the two sides of the flow together they need to have the same protocol.
|
||||||
@InitiatedBy(protocol = "my-first-flow")
|
@InitiatedBy(protocol = "my-first-flow")
|
||||||
// Responder flows must inherit from ResponderFlow
|
// Responder flows must inherit from ResponderFlow
|
||||||
|
@ -10,6 +10,6 @@ public class MyFirstFlowStartArgs {
|
|||||||
this.otherMember = otherMember;
|
this.otherMember = otherMember;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The JSON Marshalling Service, that handles serialisation, needs this constructor.
|
// The JSON Marshalling Service, which handles serialisation, needs this constructor.
|
||||||
public MyFirstFlowStartArgs() {}
|
public MyFirstFlowStartArgs() {}
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ class MyFirstFlowTest {
|
|||||||
HoldingIdentity bobHoldingID = HoldingIdentity.Companion.create(bobX500);
|
HoldingIdentity bobHoldingID = HoldingIdentity.Companion.create(bobX500);
|
||||||
|
|
||||||
// Create Alice and Bob's virtual nodes, including the Class's of the flows which will be registered on each node.
|
// Create Alice and Bob's virtual nodes, including the Class's of the flows which will be registered on each node.
|
||||||
// We don't assign Bob's virtual node to a val because we don't need it for this particular test.
|
// We don't assign Bob's virtual node to a variable because we don't need it for this particular test.
|
||||||
SimulatedVirtualNode aliceVN = simulator.createVirtualNode(aliceHoldingID, MyFirstFlow.class);
|
SimulatedVirtualNode aliceVN = simulator.createVirtualNode(aliceHoldingID, MyFirstFlow.class);
|
||||||
simulator.createVirtualNode(bobHoldingID, MyFirstFlowResponder.class);
|
simulator.createVirtualNode(bobHoldingID, MyFirstFlowResponder.class);
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ class MyFirstFlowTest {
|
|||||||
// Create a requestData object
|
// Create a requestData object
|
||||||
RequestData requestData = RequestData.Companion.create(
|
RequestData requestData = RequestData.Companion.create(
|
||||||
"request no 1", // A unique reference for the instance of the flow request
|
"request no 1", // A unique reference for the instance of the flow request
|
||||||
MyFirstFlow.class, // The name of the flow class which is to be started
|
MyFirstFlow.class, // The name of the flow class which is to be started
|
||||||
myFirstFlowStartArgs // The object which contains the start arguments of the flow
|
myFirstFlowStartArgs // The object which contains the start arguments of the flow
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user