Skip to content

Instantly share code, notes, and snippets.

@ashutoshmeher-r3
Created October 25, 2021 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashutoshmeher-r3/7397e452e91ac6a22b37408ccccb938d to your computer and use it in GitHub Desktop.
Save ashutoshmeher-r3/7397e452e91ac6a22b37408ccccb938d to your computer and use it in GitHub Desktop.
@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