Created
October 25, 2021 10:01
-
-
Save ashutoshmeher-r3/7397e452e91ac6a22b37408ccccb938d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@InitiatingFlow | |
@StartableByRPC | |
public class IssueLandTitleFlow implements Flow<SignedTransactionDigest>{ | |
@JsonConstructor | |
public IssueLandTitleFlow(RpcStartFlowRequestParameters params) { | |
this.params = params; | |
} | |
@CordaInject | |
private JsonMarshallingService jsonMarshallingService; | |
// Inject More Services Here | |
@Override | |
@Suspendable | |
public SignedTransactionDigest call() { | |
Map<String, String> parametersMap = jsonMarshallingService.parseJson(params.getParametersInJson(), Map.class); | |
String owner = parametersMap.get("owner") ; | |
// Get Other Parameters from the map. | |
// Flow code logic here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment